For the complete documentation index, see llms.txt. This page is also available as Markdown.

Jobs

List All Jobs

get

Returns a list of jobs, with optional date filtering.

Authorizations
AuthorizationstringRequired

Use your AccountSID as the username and AuthToken as the password.

Path parameters
AccountSIDstringRequired

Your unique Account SID.

Query parameters
CreatedAfterstring · date-timeOptional

Return jobs scheduled after this date and time (ISO 8601).

CreatedBeforestring · date-timeOptional

Return jobs scheduled before this date and time (ISO 8601).

Responses
200

A list of job objects.

application/json
get/Advertisers/{AccountSID}/Jobs
cURL
200

A list of job objects.

Get Job Status

get

Returns an object describing the status of a specific job.

Authorizations
AuthorizationstringRequired

Use your AccountSID as the username and AuthToken as the password.

Path parameters
AccountSIDstringRequired

Your unique Account SID.

JobIdstring · uuidRequired

The unique identifier for the job.

Responses
200

A single job object representing the job's status.

application/json
Idstring · uuidOptional

The unique identifier for the job.

Example: d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f
Typestring · enumOptional

The type of job.

Example: ClickExportPossible values:
ProgramIdstringOptional

The Program ID (CampaignId) this job was scheduled for.

Example: 3629
CreatedBystringOptional

The Account SID of the account that scheduled this job.

Example: <AccountSID>
CreatedDatestring · date-timeOptional

The date and time the job was created.

Example: 2022-06-07T04:33:50-05:00
StartedDatestring · date-time · nullableOptional

The date and time the job started processing.

Example: 2022-06-07T04:33:50-05:00
CompletedDatestring · date-time · nullableOptional

The date and time the job completed successfully.

Example: 2022-06-07T04:33:50-05:00
AbandonedDatestring · date-time · nullableOptional

The date and time the job was abandoned, if applicable.

Example: 2022-06-07T04:33:50-05:00
CancelledDatestring · date-time · nullableOptional

The date and time the job was cancelled, if applicable.

Example: 2022-06-07T04:33:50-05:00
FailedDatestring · date-time · nullableOptional

The date and time the job failed, if applicable.

Example: 2022-06-07T04:33:50-05:00
LastProgressUpdateDatestring · date-time · nullableOptional

The date and time of the most recent progress update.

Example: 2022-06-07T04:33:50-05:00
Statusstring · enumOptional

The current status of job processing.

Example: COMPLETEDPossible values:
StatusMessagestringOptional

A message describing the current job status.

Example: Job processing completed successfully.
RecordsProcessedintegerOptional

The number of records processed.

Example: 250
PercentageCompleteintegerOptional

The percentage of work completed.

Example: 100
ReplayablebooleanOptional

Indicates if this job type can be replayed.

Example: true
ResultUristring · uri-referenceOptional

A URI pointing to the result file of a successfully completed job.

Example: /Advertisers/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/Download
get/Advertisers/{AccountSID}/Jobs/{JobId}
cURL
200

A single job object representing the job's status.

Download Job Result File

get

Downloads the result file for a successfully completed job.

  • Returns a 302 Found to redirect to a temporary signed URL for download.

  • If the job is not yet complete, returns a 202 Accepted with the current job status.

  • If Mode=Stream is used, returns a 200 OK with the file streamed directly.

Authorizations
AuthorizationstringRequired

Use your AccountSID as the username and AuthToken as the password.

Path parameters
AccountSIDstringRequired

Your unique Account SID.

JobIdstring · uuidRequired

The unique identifier for the job whose result you want to download.

Query parameters
Modestring · enumOptional

Set to 'Stream' to get the file directly in the response instead of a redirect.

Possible values:
Responses
200

The job result file is streamed in the response body.

application/octet-stream
string · binaryOptional
get/Advertisers/{AccountSID}/Jobs/{JobId}/Download
cURL

Replay a Job

put

Re-queues a completed, failed, or cancelled job for processing.

Authorizations
AuthorizationstringRequired

Use your AccountSID as the username and AuthToken as the password.

Path parameters
AccountSIDstringRequired

Your unique Account SID.

JobIdstring · uuidRequired

The unique identifier for the job to replay.

Responses
200

The job was successfully re-queued. The response body contains the updated job status.

application/json
Idstring · uuidOptional

The unique identifier for the job.

Example: d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f
Typestring · enumOptional

The type of job.

Example: ClickExportPossible values:
ProgramIdstringOptional

The Program ID (CampaignId) this job was scheduled for.

Example: 3629
CreatedBystringOptional

The Account SID of the account that scheduled this job.

Example: <AccountSID>
CreatedDatestring · date-timeOptional

The date and time the job was created.

Example: 2022-06-07T04:33:50-05:00
StartedDatestring · date-time · nullableOptional

The date and time the job started processing.

Example: 2022-06-07T04:33:50-05:00
CompletedDatestring · date-time · nullableOptional

The date and time the job completed successfully.

Example: 2022-06-07T04:33:50-05:00
AbandonedDatestring · date-time · nullableOptional

The date and time the job was abandoned, if applicable.

Example: 2022-06-07T04:33:50-05:00
CancelledDatestring · date-time · nullableOptional

The date and time the job was cancelled, if applicable.

Example: 2022-06-07T04:33:50-05:00
FailedDatestring · date-time · nullableOptional

The date and time the job failed, if applicable.

Example: 2022-06-07T04:33:50-05:00
LastProgressUpdateDatestring · date-time · nullableOptional

The date and time of the most recent progress update.

Example: 2022-06-07T04:33:50-05:00
Statusstring · enumOptional

The current status of job processing.

Example: COMPLETEDPossible values:
StatusMessagestringOptional

A message describing the current job status.

Example: Job processing completed successfully.
RecordsProcessedintegerOptional

The number of records processed.

Example: 250
PercentageCompleteintegerOptional

The percentage of work completed.

Example: 100
ReplayablebooleanOptional

Indicates if this job type can be replayed.

Example: true
ResultUristring · uri-referenceOptional

A URI pointing to the result file of a successfully completed job.

Example: /Advertisers/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/Download
put/Advertisers/{AccountSID}/Jobs/{JobId}/Replay
cURL

Last updated