RiskPilot customer API
boolean · requiredinteger · requiredstring · requiredstring | null · enumstring | null
integer · min: 1 · max: 200integer · min: 0integer · requiredintegerinteger
string · pattern: string · enumstring · requiredstring · required
Whether the chat is available, and your monthly quota
GET
/api/v1/customer/chat
Whether the chat is available, and your monthly quota › Responses
OK
availableChatQuota · required
maxInputCharsdisclaimerreasonEnum values:
not_configured
package_disabled
messageYour conversations
GET
/api/v1/customer/chat/conversations
query Parameters
limitPage size.
Default: 50
offsetItems to skip.
Default: 0
Your conversations › Responses
OK
Conversation[] · required
totallimitoffsetA conversation and its messages
GET
/api/v1/customer/chat/conversations/{id}
Ask a question (JSON, or server-sent events with Accept: text/event-stream or ?stream=1)
POST
/api/v1/customer/chat/conversations/{id}/messages
Answers from RiskPilot's own data in your package's scope, with citations. Streaming sends start ({ conversationId, userMessage }), delta ({ text }) pieces, then done (the JSON answer) or error ({ error, code }). A failed answer (502 chat_model_failed) does not count against the quota.
path Parameters
id^\d{1,18}$ · requiredConversation id.
query Parameters
streamServer-sent events.
Enum values:
1
Ask a question (JSON, or server-sent events with Accept: text/event-stream or ?stream=1) › Request Body
messageThe question.
Ask a question (JSON, or server-sent events with Accept: text/event-stream or ?stream=1) › Responses
The answer.
conversationIdChatMessage · required