Document toolboxDocument toolbox

Working with the Lookups API

Overview

Check the list of available endpoints and methods in the Lookups API:

Endpoints and methods

Description

Endpoints and methods

Description

1

GET /lookup/{domain} see below

Display information on the lookups existing on a given domain.

2

GET /lookup/{domain}/{name} see below

Return information of a specific lookup.

3

GET /lookup/{domain}/{name}/job see below

Query the job UUIDs of a specific lookup.

4

GET /lookup/{domain}/{name}/job/{id} see below

Query the statuses of a lookup job.

5

Advanced mode

POST lookup/{domain}/{name}/deploy-config see below

Advanced mode

Create a new lookup.

6

POST lookup/{domain}/{name}/deploy-csv see below

Create a new lookup using a CSV (application/json request body)

7

POST lookup/{domain}/{name}/deploy-csv see below

Create a new lookup using a CSV (multipart/form-data request body)

8

POST lookup/{domain}/{name}/deploy-static-query see below

Create a new lookup based on a static query.

9

POST lookup/{domain}/{name}/deploy-periodic-query see” below

Create a new lookup based on a periodic query.

10

POST lookup/{domain}/{name}/deploy-sliding-window-query see below

Create a new lookup based on a sliding window query.

11

Advanced mode

PUT lookup/{domain}/{name}/deploy-config see below

Advanced mode

Update a specific lookup.

12

PUT lookup/{domain}/{name}/deploy-csv see below

Update a CSV lookup (application/json request body)

13

PUT lookup/{domain}/{name}/deploy-csv see below

Update a CSV lookup (multipart/form-data request body)

14

PUT lookup/{domain}/{name}/deploy-static-query see below

Update a lookup based on a static query.

15

PUT lookup/{domain}/{name}/deploy-periodic-query see below

Update a lookup based on a periodic query.

16

PUT lookup/{domain}/{name}/deploy-sliding-window-query see below

Update a lookup based on a sliding window query.

17

DELETe /lookup/{domain}/{name} see below

Send a request to delete a specific lookup.

Endpoints and methods

GET /lookup/{domain}

Display information on the lookups existing on a given domain.

GET /lookup/{domain}/{name}

Return information of a specific lookup.

GET /lookup/{domain}/{name}/job

Query the job UUIDs (Universally Unique IDentifier) of a specific lookup. A new job is created for each create, update or delete process that is initiated. Each job is identified by a unique ID, or UUID.

You will get the last 10 UUIDs for the requested lookup. The list is ordered chronologically being the first job UUID the oldest and the last one the newest.

GET /lookup/{domain}/{name}/job/{id}

Query the statuses of a lookup job given its UUID. You can get a job UUID using the request explained above.

You will get the last 50 statuses for the requested lookup job. The list is ordered chronologically being the first status the oldest and the last one the newest.

These are the possible status codes you may get in your response:

Code

Status

Code

Status

create.start

Lookup creation started.

create.ok

Lookup successfully created.

create.err

Error creating lookup.

push.start

Lookup synchronous upload started.

push.ok

Successful lookup synchronous upload.

push.err

Lookup synchronous upload failed.

deploy.start

Lookup asynchronous upload started.

deploy.ok

Successful lookup asynchronous upload started.

deploy.err

Lookup asynchronous upload failed.

del.start

Lookup deletion started.

del.ok

Lookup successfully deleted.

del.err

Error deleting lookup.

POST /lookup/{domain}/{name}/deploy-config

Create a new lookup.

POST /lookup/{domain}/{name}/deploy-csv

Simplified endpoint to create a new lookup from a CSV file (application/json request body).

POST /lookup/{domain}/{name}/deploy-csv

Simplified endpoint to create a new lookup from a CSV file (multipart/form-data request body).

POST /lookup/{domain}/{name}/deploy-static-query

Simplified endpoint to create a new lookup based on a static query.

POST /lookup/{domain}/{name}/deploy-periodic-query

Simplified endpoint to create a new lookup based on a periodic query.

POST /lookup/{domain}/{name}/deploy-sliding-window-query

Simplified endpoint to create a new lookup based on a sliding window query.

PUT lookup/{domain}/{name}/deploy-config

Update a specific lookup.

PUT lookup/{domain}/{name}/deploy-csv

Update a CSV lookup (application/json request body).

PUT lookup/{domain}/{name}/deploy-csv

Update a CSV lookup (multipart/form-data request body).

PUT lookup/{domain}/{name}/deploy-static-query

Update a lookup based on a static query.

PUT lookup/{domain}/{name}/deploy-periodic-query

Update a lookup based on a periodic query.

PUT lookup/{domain}/{name}/deploy-sliding-window-query

Update a lookup based on a sliding window query.

DELETE /lookup/{domain}/{name}

Send a request to delete a specific lookup.