Workflows

Background job status

Returns the status of a workflow run in the background, and its result once it finishes.

GEThttps://app.getera.io/api/jobs/{jobId}
API key

This is the statusUrl you get back when you send Run a workflow with X-Execution-Mode: async. Poll it every few seconds until the job finishes.

Authentication

An API key in the x-api-key header. The key's owner must have access to the workflow the job belongs to.

Path parameter

NameTypeRequiredDescription
jobIdstringYesThe jobId from the run response.

Example

curl https://app.getera.io/api/jobs/job_7f3c \
  -H "x-api-key: ERA_API_KEY"

Response

status is one of queued, processing, completed, failed.

While running:

{
  "success": true,
  "taskId": "job_7f3c",
  "status": "processing",
  "metadata": { "startedAt": "2026-10-14T09:30:00.000Z" },
  "estimatedDuration": 300000
}

Once finished:

{
  "success": true,
  "taskId": "job_7f3c",
  "status": "completed",
  "metadata": {
    "startedAt": "2026-10-14T09:30:00.000Z",
    "completedAt": "2026-10-14T09:30:04.500Z",
    "duration": 4500
  },
  "output": { "content": "Quote prepared." }
}

On failure you get status: "failed" and an error field.

Errors

Error bodies look like {"error": "...", "code": "..."}.

StatusWhen
401Missing or invalid key.
403You have no access to this job.
404Job not found.
500The status could not be read.
© 2026 Era. Era documentation. Something missing or wrong? Write to us: [email protected]