Prompt an agent session
POST
/api/v1/sessions/{id}/promptOn this page
Parameters
| Field | In | Type | Description |
|---|---|---|---|
idrequired | path | string | A session id
|
Request body
| Field | Type | Description |
|---|---|---|
textrequired | string |
|
JSON schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 20000
}
},
"required": [
"text"
],
"additionalProperties": false
}Example request
curl -X POST "https://polaris.example.com/api/v1/sessions/{id}/prompt" \
-H "Authorization: Bearer $POLARIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "string"
}'Responses
| Status | Meaning |
|---|---|
200 | OK |
Can also answer the common errors 400, 401, 403, 404, 429. See common errors