Skip to main content
GET
/
agents
/
{id}
Get an agent
curl --request GET \
  --url https://origami.chat/api/v2/agents/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "apiKeyOwned": true,
  "lastRun": {
    "id": "<string>",
    "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "prompt": "<string>",
    "steps": {
      "completed": 1,
      "max": 2
    },
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Response

The agent and its last run summary

id
string<uuid>
required
name
string
required
workspaceId
string<uuid>
required
createdAt
string<date-time>
required
apiKeyOwned
boolean
required

True iff this agent's chat_session row has a non-null created_by_api_key_id — i.e. it was created by the API and is owned by the caller's org. Always true on v2 read paths today; surfaced for forward compatibility.

lastRun
object
required