AnswerLoopsAnswerLoops Docs
ReferenceAgent API

Open a new support ticket on behalf of a user

Runs through the same AI triage/answer pipeline as every other channel (Discord, Slack, email) — the ticket may get auto-answered if confidence is high, otherwise it queues for human review.

POST
/api/agent/tickets

Authorization

bearerAuth
AuthorizationBearer <token>

Org-scoped API key generated in Settings → API Keys (al_live_ prefix). Shared with the MCP server — the same key authenticates both surfaces.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/agent/tickets" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{  "ticket_id": 0,  "duplicate": true}
{  "error": {    "message": "string"  }}
{  "error": {    "message": "string"  }}