POST Requests

Endpoints usage

Learn how to make Search filters or Elasticsearch DSL requests for data in bulk.

  1. Prepare your request using the template below:

  • Enter {entity} of the used endpoint

  • Insert your API Key instead of {API Key}

  • Input required search filters in the "filters": {} section or Elasticsearch DSL filters in the "es_dsl_query": {} section

  • Input your webhook URL instead of {optional_webhook_url}

  • Input the required number of records instead of {optional_integer} by limit parameter

Request body template
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": {}
}'
  1. Import the cURL to any API-compatible application.

  2. Send the request.

  3. Retrieve the request ID from the response body:

Request ID example
{
  "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.

  1. Prepare your request using the template below:

  • Enter {entity} of the used endpoint

  • Enter your API Key instead of {Api Key} and, optionally, webhook URL in the cURL request template

cURL request
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}'
  1. Import the edited cURL request to Postman or any other API-compatible application.

  2. Send the request.

  3. Retrieve the request_id from the response body:

Request ID
{
  "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

Notice that in Base Employee API IDs are passed as a list

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:

ID list example

1

2

3

  1. Prepare the IDs file in a .csv or .txt format. Make sure the list only contains numeric IDs.

  1. Prepare your request using the template below:

  • Enter {entity} of the used endpoint

  • Enter your API Key instead of {Api Key} and, optionally, webhook URL in the cURL request template

cURL request
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}'
  1. Import the edited cURL request to Postman or any other API-compatible application.

  1. Open Body tab and upload the IDs file by clicking the Select Files button in the Value column:

  1. Send the request.

  2. Retrieve the request_id from the response body:

Request ID
{
  "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

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

  1. Prepare your request using the template below:

  • Enter {entity} of the used endpoint

  • Input the required data in the "shorthand_names": [] or "urls": [] section

  • Insert your API Key instead of {API Key}

Request body template for shorthand_names
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": []
  }'
  1. Import the cURL to any API-compatible application.

  2. Send the request.

Last updated

Was this helpful?