cloadyDocs
API ReferenceEndpointsWorkspaces

Read the AI gateway's request log

The latest 90 requests, newest first, without their prompts. `status` narrows to `errors` (400 and above but 429) or `limited` (429); `q` matches the model or alias and the key's name. An entry whose prompt was kept says so in `text`; developers read it with readAiLogText.

GET
/api/workspaces/{workspaceSlug}/ai/logs
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Query Parameters

key?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
status?string

Value in

  • "all"
  • "errors"
  • "limited"
q?string
Lengthlength <= 200

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/ai/logs"
{  "entries": [    {      "id": "string",      "at": "string",      "key": "string",      "keyName": "string",      "requested": "string",      "model": "string",      "fallback": true,      "provider": "string",      "status": 0,      "error": "string",      "input": 0,      "output": 0,      "micros": 0,      "free": true,      "ms": 0,      "stream": true,      "text": true    }  ],  "available": true,  "prompts": true,  "retentionDays": 0}