OpenAPI リファレンスApi claw

Read posted credits for an owned Agent (not runtime completion)

GET
/api/v1/api-agents/{agentId}/credits

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication.

In: header

Path Parameters

agentId*string
Length1 <= length

Query Parameters

from?string
Formatdate-time
through?string
Formatdate-time
limit?integer
Range1 <= value <= 100
Default50
cursorCreatedAt?string
Formatdate-time
cursorId?string
Length1 <= length <= 200

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/api-agents/string/credits"
{  "agentId": "string",  "coverage": "retained_session_bills",  "from": "2019-08-24T14:15:22Z",  "through": "2019-08-24T14:15:22Z",  "totalCredits": 0,  "totalTransactions": -9007199254740991,  "items": [    {      "id": "string",      "sessionId": "string",      "credits": 0,      "modelId": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": {    "createdAt": "2019-08-24T14:15:22Z",    "id": "string"  }}