curl --request POST \
--url https://local.withsutro.com/projects/{projectId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"content": [
{
"type": "text",
"text": "<string>"
}
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z"
}Sends a user message to the assistant, which will process it and may trigger changes to the application. The user message is stored in the conversation history, and the assistant’s response is returned. The components that can be modified (frontend, backend, or both) are determined by the project’s components configuration set at project creation. This cannot be overridden.
curl --request POST \
--url https://local.withsutro.com/projects/{projectId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"content": [
{
"type": "text",
"text": "<string>"
}
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z"
}Builder authentication and authorization
A unique identifier for the API Client making a request
The user message to send
Array of message parts containing the user's message
Show child attributes
Was this page helpful?