Skip to main content
POST
/
jobs
/
{jobId}
/
cancel
Cancel a job
curl --request POST \
  --url https://api.galtea.ai/jobs/{jobId}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Path Parameters

jobId
string
required

The ID of the job to cancel

Response

Cancellation accepted. Either the job was queued and has been removed, or an in-flight job has been signalled to stop. Repeated cancels are idempotent and also return 200.

id
string

The job ID

state
enum<string>

Terminal state surfaced to the caller.

Available options:
cancelled