POST/v1/ai/agent

Create ai agent

Not yet documented — no summary in the API source.

RequiresAuthorization: Bearer sk_...tenant_id

Request body application/json

conversationIdstringnullable
userMessagestringnullable
confirmationApprovedbooleannullable
confirmationRejectedbooleannullable

Responses

conversationIdstringnullable
assistantMessagestringnullable
requiresConfirmationboolean
pendingConfirmationSummarystringnullable
createdEntitiesarray of objectCreatedEntitySummarynullable
entityTypestringnullable
entityIdstringnullable
namestringnullable
successboolean
errorMessagestringnullable
curl --request POST \
  --url 'https://api.4comply.io/v1/ai/agent' \
  --header 'Authorization: Bearer sk_...' \
  --header 'tenant_id: your-tenant-id' \
  --header 'Content-Type: application/json' \
  --data '{
  "conversationId": "00000000-0000-0000-0000-000000000000",
  "userMessage": "string",
  "confirmationApproved": true,
  "confirmationRejected": true
}'