Jobs
Get the next jobs
Jobs
Get the next jobs
GET
/
v1
/
job-agents
/
{agentId}
/
queue
/
next
curl --request GET \
--url https://api.ctrlplane.dev/api/v1/job-agents/{agentId}/queue/next
{
"jobs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "successful",
"externalId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"jobAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobAgentConfig": {},
"message": "<string>",
"reason": "<string>"
}
]
}
Path Parameters
The agent ID
Response
200 - application/json
OK
The response is of type object
.
curl --request GET \
--url https://api.ctrlplane.dev/api/v1/job-agents/{agentId}/queue/next
{
"jobs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "successful",
"externalId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"jobAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobAgentConfig": {},
"message": "<string>",
"reason": "<string>"
}
]
}