Api reference
POST Sessions Id Goal
POST
/v1/sessions/{id}/goalAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
objective?string|null
status?|null
tokenBudget?number||||null|null
clientActionId?string|null
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/sessions/string/goal" \ -H "Content-Type: application/json" \ -d '{}'{ "objective": "string", "status": "active", "tokenBudget": 0, "tokensUsed": 0, "timeUsedSeconds": 0, "createdAt": "string", "updatedAt": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}