Skip to main content
GET
https://api.flystack.dev
/
v1
/
jobs
/
:id
curl --location --request GET 'https://api.flystack.dev/v1/jobs/0193443f-fb80-9d19-29ba-82bc77c7cd8c' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <token>'
{
    "id": "0193443f-fb80-9d19-29ba-82bc77c7cd8c",
    "status": "QueuedJob",
    "endpoint": "/v1/flights",
    "created_at": "2024-11-19T11:47:44.127229Z",
    "started_at": "2024-11-19T11:47:44.134374Z",
    "args": {
        "flight_iata": "AF011",
        "date": "2024-11-19"
    }
}
This endpoint is not billed and can be called unlimited times without any cost implications.

Authentication

x-api-key
string
required
Your FlyStack API token. You can create one from the dashboard (see Authentication).

Response

id
string
Unique identifier for the job.
status
string
Current status of the job:
  • QueuedJob: Job is queued or processing
  • CompletedJob: Job finished successfully
  • FailedJob: Job finished with an error
success
boolean
Indicates if the job completed successfully. Only present when status is CompletedJob.
endpoint
string
The API endpoint that initiated this job (e.g., /v1/flights).
created_at
string
ISO 8601 timestamp when the job was created.
started_at
string
ISO 8601 timestamp when the job started processing (if started).
duration_ms
number
Time taken to complete the job in milliseconds. Only present when status is CompletedJob.
args
object
Input parameters used when creating the job (varies by endpoint).
result
object
Output data from the completed job. Only present when status is CompletedJob. The shape of this object matches the response you would receive when calling the original endpoint synchronously.
error
object
Error details. Only present when status is FailedJob.
curl --location --request GET 'https://api.flystack.dev/v1/jobs/0193443f-fb80-9d19-29ba-82bc77c7cd8c' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <token>'
{
    "id": "0193443f-fb80-9d19-29ba-82bc77c7cd8c",
    "status": "QueuedJob",
    "endpoint": "/v1/flights",
    "created_at": "2024-11-19T11:47:44.127229Z",
    "started_at": "2024-11-19T11:47:44.134374Z",
    "args": {
        "flight_iata": "AF011",
        "date": "2024-11-19"
    }
}