Saltar al contenido principal
GET
/
agent
/
{projectId}
/
job
/
{id}
Get agent job by ID
curl --request GET \
  --url https://api.mintlify.com/v1/agent/{projectId}/job/{id} \
  --header 'Authorization: Bearer <token>'
{
  "sessionId": "<string>",
  "subdomain": "<string>",
  "branch": "<string>",
  "haulted": true,
  "haultReason": "completed",
  "pullRequestLink": "<string>",
  "messageToUser": "<string>",
  "todos": [
    {
      "content": "<string>",
      "status": "pending",
      "priority": "high",
      "id": "<string>"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z"
}

Uso

Este endpoint obtiene los detalles y el estado de un trabajo de agente específico mediante su identificador único. Úsalo para consultar el progreso, el estado y los resultados de un trabajo de agente creado previamente.

Detalles del trabajo

La respuesta incluye información como:
  • Estado de ejecución y de finalización del trabajo
  • Información de la branch y detalles de la solicitud de extracción
  • metadata de la sesión y marcas de tiempo

Authorizations

Authorization
string
header
required

The Authorization header expects a Bearer token. Create an Admin API Key here.

Path Parameters

projectId
string
required

The ID of your project. Can be retrieved from your dashboard.

id
string
required

The unique identifier of the agent job to retrieve.

Response

200 - application/json

Agent job details retrieved successfully

sessionId
string

The subdomain this session belongs to.

subdomain
string

The subdomain this session belongs to.

branch
string | null

Git branch name where changes were made.

haulted
boolean

Whether the session execution was halted.

haultReason
enum<string>

Reason for session halt.

Available options:
completed,
github_missconfigured,
error

Link to the created pull request.

messageToUser
string

Message for the user about the session outcome.

todos
object[]

List of todo items from the session.

createdAt
string<date-time>

Timestamp when the session was created.

I