Send a message
Stores the user turn. Then open the stream to get the reply.
Needs the chat:write scope. A key without it gets 403 insufficient_scope. Routes not in this reference cannot be called with a key at all (403 not_available_to_api_keys).
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
id
The conversation id.
Request
This endpoint expects an object.
content
Response
OK
id
A UUID.
conversationId
A UUID.
role
Allowed values:
content
createdAt
tokensIn
tokensOut
parts
Errors
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error