POST Requests
Endpoints usage
Learn how to make Search filters or Elasticsearch DSL requests for data in bulk.
Prepare your request using the template below:
Enter
{entity}
of the used endpointInsert your API Key instead of
{API Key}
Input required search filters in the
"filters": {}
section or Elasticsearch DSL filters in the"es_dsl_query": {}
sectionInput your webhook URL instead of
{optional_webhook_url}
Input the required number of records instead of
{optional_integer}
by limit parameter
Keep in mind that parameters webhook_url
and limit
are optional.
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/data_requests/{entity}/filter' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"webhook_url": "{optional_webhook_url}",
"limit": {optional_integer},
"filters": {}
}'
Import the cURL to any API-compatible application.
Send the request.
Retrieve the request ID from the response body:
{
"request_id": "433869ec-0a98-4dcd-9b13-db4df58260f5"
}
Location
response header provides a URL where the results can be retrieved.
Location: /v2/data_requests/e000b0ec-0f00-0b00-0a0a-0b00fa0000d0/files
IDs request
Part of entities support endpoint /v2/data_requests/{entity}/ids
, when you must submit a list of IDs to the request to receive data in bulk. Please review the API information to see the supported endpoint.
Prepare your request using the template below:
Enter
{entity}
of the used endpointEnter your API Key instead of
{Api Key}
and, optionally, webhook URL in the cURL request template
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/data_requests/{entity}/ids' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: multipart/form-data' \
-F 'webhook_url={optional_webhook_url}' \
-F 'ids={list of ids}'
Import the edited cURL request to Postman or any other API-compatible application.
Send the request.
Retrieve the
request_id
from the response body:
{
"request_id": "433869ec-0a98-4dcd-9b13-db4df58260f5"
}
Location
response header provides a URL where the results can be retrieved.
Location: /v2/data_requests/e000b0ec-0f00-0b00-0a0a-0b00fa0000d0/files
ID File requests
Part of entities support endpoint /v2/data_requests/{entity}/id_file
, when you must submit a list of IDs in a .csv or .txt file to request data in bulk. Please review the API information to see the supported endpoint.
Example for the ID list formatting:
Prepare the IDs file in a .csv or .txt format. Make sure the list only contains numeric IDs.
Avoid any additional headings in the file. The request will fail if non-numeric data is present in the file.
Prepare your request using the template below:
Enter
{entity}
of the used endpointEnter your API Key instead of
{Api Key}
and, optionally, webhook URL in the cURL request template
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/data_requests/{entity}/id_file' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: multipart/form-data' \
-F 'ids_file=@id_list_example.csv;type=text/csv' \
-F 'webhook_url={optional_webhook_url}'
Import the edited cURL request to Postman or any other API-compatible application.
Further instructions are for the POST requests using Postman.
Open Body tab and upload the IDs file by clicking the Select Files button in the Value column:

Send the request.
Retrieve the
request_id
from the response body:
{
"request_id": "433869ec-0a98-4dcd-9b13-db4df58260f5"
}
Location
response header provides a URL where the results can be retrieved.
Location: /v2/data_requests/e000b0ec-0f00-0b00-0a0a-0b00fa0000d0/files
Shorthand names and URLs requests
This section is used for Clean Employee API and Base Employee API indexes
You can send up to 10,000 shorthand_names
or URLs
per request.
Requirements for shorthand_names
are listed below:
Must not be an empty string (
""
)Must not contain capital letters
Must not have leading or trailing spaces (
" john-doe "
)Most special characters are not allowed
Length must be between 3 and 100 characters
Endpoint usage
Prepare your request using the template below:
Enter
{entity}
of the used endpointInput the required data in the
"shorthand_names": []
or"urls": []
sectionInsert your API Key instead of
{API Key}
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/data_requests/{entity}/shorthand_names' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"webhook_url": "{optional_webhook_url}",
"shorthand_names": []
}'
Import the cURL to any API-compatible application.
Send the request.
Last updated
Was this helpful?