Skip to content

Support API

The SendAPI platform provides programmatic access to our AI Support Chatbot and our human support ticketing system.

AI Chat Support

Interact with our AI assistant trained on SendAPI documentation and common troubleshooting flows. This is the fastest way to get code snippets or debug API errors.

POST /v1/support/chat

Request Body

ParameterTypeRequiredDescription
messagestringYesYour question or prompt.
historyarrayNoAn array of previous user and assistant message objects to maintain conversation context.
bash
curl -X POST https://sendapi.co/v1/support/chat \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "How do I send a WhatsApp message in Python?"
  }'

Create a Support Ticket

If the AI cannot resolve your issue, escalate it to a human engineer by opening a support ticket.

POST /v1/support/tickets

Request Body

ParameterTypeRequiredDescription
subjectstringYesA brief summary of the issue.
descriptionstringYesDetailed steps to reproduce the problem.

Response

json
{
  "success": true,
  "data": {
    "id": 102,
    "subject": "Webhooks not firing for WhatsApp",
    "status": "open",
    "created_at": "2026-03-09T14:30:00.000000Z"
  }
}

List Tickets

Retrieve all open and closed support tickets for your team.

GET /v1/support/tickets


View Ticket Details

Fetch the full thread of messages for a specific support ticket.

GET /v1/support/tickets/{id}


Reply to a Ticket

Send a follow-up message to an open support ticket.

POST /v1/support/tickets/{id}/messages

Request Body

ParameterTypeRequiredDescription
messagestringYesYour reply content.

Released under the MIT License.