All use cases
Sample

Support ticket triage

Assign a category and priority to a ticket.

POST /v1/support-ticket-triage

What it does

Send a support ticket and your list of categories. Get back one category and a priority.

Input

subjectstring
Ticket subject.
bodystring
Ticket body.
categoriesstring[]
The categories to choose from.

Output

categorystring
One of the categories you sent.
prioritystring
One of low, normal or high.

Sample request

Request
curl https://api.focusllm.com/v1/support-ticket-triage \
  -H "Authorization: Bearer $FOCUSLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Charged twice",
    "body": "My card was charged twice for the October invoice.",
    "categories": [
      "billing",
      "bug",
      "account"
    ]
  }'
Response
{
  "category": "billing",
  "priority": "high"
}

Price

$0.008 per successful call

Sample price. Paid from prepaid credits.

Get an API key