GET
/
jobs
/
{id}
curl --request GET \
  --url https://cronho.st/api/v1/jobs/{id} \
  --header 'x-api-key: <api-key>'
{
"data": {
"id": "job_456",
"scheduleId": "schedule_123",
"status": "SUCCESS",
"scheduledRunAtUtc": "2024-01-14T14:00:00.000Z",
"attemptNumber": 1,
"httpMethod": "GET",
"endpoint": "https://api.example.com/health",
"body": null,
"headers": "{\"User-Agent\": \"Cronhost-Monitor\"}",
"statusCode": 200,
"response": "{\"status\": \"ok\", \"uptime\": 99.9}",
"startedAtUtc": "2024-01-14T14:00:01.000Z",
"completedAtUtc": "2024-01-14T14:00:02.500Z",
"errorMessage": null,
"createdAt": "2024-01-14T14:00:00.000Z",
"updatedAt": "2024-01-14T14:00:02.500Z"
},
"success": true
}

Authorizations

x-api-key
string
header
required

API key for authentication. Get your API key from the Cronhost dashboard.

Path Parameters

id
string
required

Unique job identifier

Example:

"job_456"

Response

200
application/json

Successfully retrieved job

The response is of type object.