EndpointsCreate support ticket

Create support ticket

Creates a support ticket: request body contains type, reply address (e.g. email), and message. The backend enriches with current user id, subscription plan, and token balance; persists the ticket in the database (support_tickets); and sends the same content to the support address (SUPPORT_EMAIL). Email backend is chosen by SUPPORT_EMAIL_SENDER: "sendgrid" (default) or "google" (Gmail/Workspace SMTP). If no backend is configured, only DB persistence is performed.

curl -X POST "//v1/support/tickets" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (API Key)" \
  -d '{
  "type": "example_string",
  "reply_address": "123 Main St",
  "message": "example_string"
}'
{
  "id": "example_string",
  "created_at": "2024-12-25T10:00:00Z",
  "status": "sent",
  "sent_at": "2024-12-25T10:00:00Z"
}
POST
/v1/support/tickets
POST
Bearer Token (API Key)
Bearer Tokenstring
Required

User API Key. Create in the Ctxfy dashboard or via POST /v1/api-keys. Use Bearer <api_key> in Authorization header.

User API Key. Create in the Ctxfy dashboard or via POST /v1/api-keys. Use Bearer <api_key> in Authorization header.
Content-Typestring
Required

The media type of the request body

Options: application/json
typestring
Required

Ticket type (e.g. billing, technical, feedback)

reply_addressstring
Required

Email or address for support reply

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (API Key). User API Key. Create in the Ctxfy dashboard or via POST /v1/api-keys. Use Bearer <api_key> in Authorization header.

Body

application/json
typestring
Required

Ticket type (e.g. billing, technical, feedback)

reply_addressstring
Required

Email or address for support reply

Responses