curl --request POST \
--url https://sapi.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>"
}
]
}
'{
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued"
}Sends a user message to the assistant, which will process it asynchronously and may trigger changes to the application. The user message is stored in the conversation history. The response includes a job ID for tracking the processing status. 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://sapi.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>"
}
]
}
'{
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued"
}Documentation Index
Fetch the complete documentation index at: https://docs.withsutro.com/llms.txt
Use this file to discover all available pages before exploring further.
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?