Skip to content

Public Copilot Chat

POST
/public/copilot/chat

Send a message to the graph8 copilot using write key auth.

This is a simplified, non-streaming version for the SDK widget. Responses come from the org’s knowledge base (global context docs, brand brief, FAQs, etc.) — no admin tools are available.

Used by g8.copilot.ask().

Authorizations

Parameters

Header Parameters

X-Write-Key
Any of:
string

Request Body required

object
context
Any of:
object
key
additional properties
any
message
required
string
session_id
Any of:
string

Responses

200

Successful Response

object
data
required
object
response
required
string
session_id
Any of:
string
sources
Array<object>
default:
object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string