API ReferenceApi claw

Send API Agent session message

API documentation for Send API Agent session message

POST
/api/v1/api-agents/{agentId}/sessions/{sessionId}/messages

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication.

In: header

Path Parameters

agentId*string
sessionId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/api-agents/string/sessions/string/messages" \  -H "Content-Type: application/json" \  -d '{    "message": "string"  }'
{  "session": {    "id": "string",    "agentId": "string",    "spaceId": "string",    "title": "string",    "status": "pending",    "promptMode": "agent",    "createdAt": "string",    "updatedAt": "string",    "completedAt": "string"  },  "run": {    "started": true,    "statusUrl": "string"  }}