Cloady Docs
API ReferenceEndpointsApplications

Read a worker's recent runs and failures

Returns the newest job runs with their state, attempt, run time and error text, the jobs that schedules added within the range, the newest failure of each job type, and up to three failed or dead jobs per queue. Requires the developer role, because error texts can carry job data.

GET
/api/workspaces/{workspaceSlug}/apps/{appSlug}/services/{serviceName}/jobs/details
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string
serviceName*string

Query Parameters

env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string
range?string

How far back to look; the answer has 30 to 96 points across it

Default"1h"

Value in

  • "15m"
  • "1h"
  • "6h"
  • "24h"
  • "7d"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/apps/string/services/string/jobs/details"
{  "at": 0,  "runs": [    {      "id": "string",      "name": "string",      "library": "bullmq",      "queue": "string",      "state": "running",      "attempt": 0,      "duration": 0,      "at": 0,      "error": "string",      "retryable": true    }  ],  "fired": [    {      "name": "string",      "library": "bullmq",      "queue": "string",      "at": 0,      "schedule": "string"    }  ],  "failures": [    {      "name": "string",      "library": "bullmq",      "at": 0,      "error": "string"    }  ],  "dead": [    {      "queue": "string",      "library": "bullmq",      "id": "string",      "name": "string",      "error": "string",      "tries": 0,      "at": 0    }  ],  "retry": [    "string"  ],  "notes": [    "string"  ]}