Passer au contenu principal
GET
/
agent
/
{domain}
/
jobs
Get all agent jobs
curl --request GET \
  --url https://api-dsc.mintlify.com/v1/agent/{domain}/jobs \
  --header 'Authorization: Bearer <token>'
{
  "allSessions": [
    {
      "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"
    }
  ]
}

Utilisation

Cet endpoint récupère tous les jobs d’agent pour le domain spécifié, offrant une vue d’ensemble de toutes les activités des agents et de leur état actuel. C’est utile pour surveiller et gérer plusieurs jobs d’agent simultanés ou historiques.

Réponse

Utilisez cet endpoint pour obtenir une vue d’ensemble de toutes les sessions d’agent précédentes.

Authorizations

Authorization
string
header
required

The Authorization header expects a Bearer token. See the Assistant API Key documentation for details on how to get your API key.

Path Parameters

domain
string
required

The domain identifier from your domain.mintlify.app URL. Can be found in the top left of your dashboard.

Response

200 - application/json

All agent jobs retrieved successfully

allSessions
object[]

Array of all agent sessions for the domain.

I