sayintel
Endpoint

Get rewrite job

GET/api/public/v1/campaigns/{campaign_id}/rewrite-jobsread

The outcome of a request_rewrite on one campaign: by job_id (the id request_rewrite returned with status running), or this campaign's rewrites of the last 7 days, newest first. Each has status running, done, failed or stalled (a background slice was cut off), the real counts (total, rewritten, skipped with skip_reasons by code, remaining) and summary: on a finished job it is the rewrite's own summary. A stalled or failed job lists remaining_speaker_ids to rewrite again with request_rewrite speaker_ids. Poll every 10 seconds while running. Reads only.

Request

curl "https://sayintel.com/api/public/v1/campaigns/<campaign_id>/rewrite-jobs" \
  -H "Authorization: Bearer $SAYINTEL_TOKEN"

Try it out

Try it outGET/api/public/v1/campaigns/{campaign_id}/rewrite-jobsread

Sent as a bearer token to this site only, and kept in this tab's session storage. It is never written to disk or sent anywhere else.

Paste an API key to run.

Path parameters

NameInTypeRequiredDescription
campaign_idpathstringyes—

Query parameters

NameInTypeRequiredDescription
job_idquerystringnoOmit for this campaign's recent rewrites.
workspacequerystringnoOptional. Read this call against another account you belong to: pass the workspace_id that list_workspaces returns. Omit to use your own account. Refused for accounts where you hold only a client or conference seat.
acting_accountquerystringnoWhich sayintel login this call acts on: an account_id or email from list_accounts. Required once logins are linked to this connection.

Response

{
  "ok": true,
  "tool": "get_rewrite_job",
  "kind": "read",
  "data": { ... },
  "error": null
}

Notes