---
title: "Fetch the status of an agent response"
method: GET
path: "/agents/fetchAgentResponse"
---

# Fetch the status of an agent response

`GET /agents/fetchAgentResponse`

Polls for the status and result of a previously sent agent message using the job ID returned by sendMessage. Requires the `api:agent:message:*` scope.

## Query parameters

- `jobId` string, required

## Response `200`

Agent response status

- union
  - object
    - `status` 'RUNNING', required
  - object
    - `status` 'COMPLETED', required
    - `result` object, required
      - `agentResponseText` string, required
  - object
    - `status` 'FAILED', required
    - `errorMessage` string, required

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Job not found
- `500` — Internal server error

---

[API](https://skmtc.net/credal-ai/apis/credal-api.md) · [All operations](https://skmtc.net/credal-ai/apis/credal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/credal-ai/credal-api/versions/b38f2d5165d4/schema)
