Skip to content
AI Support / Dev Center

10 results · Esc to close

Documentation/API Reference

BUILD

API Reference

Platform endpoints, bodies, and responses.

URL and authentication

Base: https://support-ai.pontes.uk. Use Content-Type: application/json in JSON bodies. The sik_ credential is unique to the issuer; conversation routes use Bearer with the temporary JWT.

The application's bootstrap/context paths are defined by your team. The platform receives push context; it does not require the four pull routes from the old contract.

POST /api/widget/sessions

The backend can send up to eight servers in mcpServers. Omit the list for context-only chat.

JSON
{ "userId": "usr_exemplo", "userEmail": "", "userRoles": ["member"], "plan": "standard" }

mcpServers

JSON
{
  "mcpServers": [
    {
      "id": "billing",
      "url": "https://billing.example/mcp",
      "accessToken": "TOKEN_BILLING"
    }
  ]
}

Conversations and messages

All routes below check tenant and owner. Identifiers are opaque. Successful creation must contain aiMessage and snapshot; confirm the actual response in staging.

Method / routeCorpo / resultado
POST /api/cases{message, context, clientTurnId?, locale?} → {case, snapshot:{id}, aiMessage}
GET /api/cases/:caseId→ {case, messages, snapshot}
POST /api/cases/:caseId/messages{content, replyToMessageId?, clientTurnId?, locale?} → {message}
POST /api/cases/:caseId/feedback{feedback:"positive"|"negative"} → {ok:true}
POST /api/cases/:caseId/close{resolution:"resolved"|"unresolved", rating?:1…10} → {ok:true}

message/content: 1–5,000 characters. locale directs the language and alphabet of the response. Reuse the same clientTurnId (UUID) when repeating the same turn. To close without a note, send {resolution:"resolved"}. replyToMessageId links a confirmation to the presented message and is required to confirm writing.

Product ideas

Submit ideas from the widget. Workspace members can view them by environment, and the owner can update their status.

Method / routeCorpo / resultado
POST /api/cases/:caseId/suggestions{content} → HTTP 201 {id}
GET /api/workspace/suggestions?env=production&before=idea_…→ {suggestions, next}
PATCH /api/workspace/suggestions/:id{env, status} → {ok:true}
JSON
{ "env": "production", "status": "planned" }

Optional integrations

POST /api/cases/:caseId/escalate receives {reason?}. Escalation or actions without a connector/executor may return 501. Do not announce a created ticket or completed change without verifiable results.

CONTINUE HEREContext and schemas