Create account list export job — Guide

First-request guide for Create account list export job.

Export API guide

Export account lists

Start an asynchronous export for all accounts, one list, or multiple account lists.

POST /v1/accountList/job   •   Authentication: Bearer token

Before you start

Authenticate

Send Authorization: Bearer <token> on every request and keep tokens out of logs and source control.

Follow the workflow

Submit the request, save jobId, poll status, then download the result.

Use the code below

The cURL and JSON examples are copy-ready starting points. Replace IDs, dates, and tokens with values from your tenant.

Common workflows

Workflow 1

Export the complete account universe with only jobName when supported for the tenant.

Workflow 2

Export one list with accountListId.

Workflow 3

Export several lists with accountListIds, then poll the returned jobId.

Quickstart

Step 1 — Send the request

curl --request POST \
--url https://uapi.demandbase.com/data/export/v1/accountList/job \
--header "Authorization: Bearer $DB_API_KEY" \
--header "Content-Type: application/json" \
--data '{"jobName":"AccountListExport"}'

Request body

{
"jobName": "AccountListExport"
}

Step 2 — Read the response

{
"jobName": "AccountListExport",
"jobStatus": "accepted",
"entityType": "accountlist",
"jobId": "dcb34525-2baa-4f54-8c11-9e6175ecbc74",
"createdAt": "2024-03-24T16:43:57.378Z"
}

Request anatomy

PartRequiredWhat to send
jobNamerequiredClient-readable name for the asynchronous job.
accountListIdoptionalSingle account-list identifier.
accountListIdsoptionalArray of account-list identifiers for a multi-list export.

Response anatomy

FieldType / stateHow to use it
entityTypeaccountlistIdentifies this as an account-list export.
jobIdstringIdentifier used with the status endpoint.
jobStatusacceptedThe export has been queued.
createdAttimestampCreation time in ISO-8601 format.

Rules and constraints

  • Use the single-list and multi-list properties deliberately; do not send both forms in one request.
  • Keep list IDs available for audit and retry diagnostics.
  • An accepted response starts an asynchronous workflow; it does not contain the file.

Empty results

If the resulting file has no rows, confirm that the list IDs exist, the token can access them, and the lists contain accounts at export time.

Errors and recovery

Handle these responses explicitly so your integration can report an actionable cause and next step.

StatusMeaningRecovery
400The list request is malformed or contains invalid IDs.Send one supported scope form and validate identifiers.
401The bearer token is missing, expired, or invalid.Refresh the token and retry after authentication succeeds.
403The caller cannot access the requested lists.Check tenant membership and list permissions.
429The API rate limit was exceeded.Back off and retry without creating duplicate jobs unnecessarily.

Next steps