Read a logged prompt
The prompt and response kept for one request of the log, when prompt logging was on (developer role). `at`, the entry's time from listAiLogs, narrows the search; without it the whole retention period is read.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
^([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)$uuidQuery Parameters
length <= 40Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/ai/logs/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "prompt": "string", "response": "string"}Read the AI gateway's request log GET
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.
Chat with a model POST
Send a conversation to a model through the gateway, as the AI tool's chat does (developer role). It is free while the caller's account is within its AI allowance (60 answers an hour, shared with Ask AI) and the request's worst case costs at most $0.25 (output is capped to fit), and charged to the caller's usage balance otherwise; with `keyId` the key's models, budget and rate limit apply. With `Accept: text/event-stream` the reply streams as a `start` event naming the model and provider that answer (`fallback` when an alias moved on), then `delta` events (`{type, text}`), and ends with a `done` event carrying the usage, or an `error` event; otherwise it answers once with the whole reply.