Skip to content

End an agent session

POST/api/v1/sessions/{id}/stop

Its work is kept the way Stop on the screen keeps it.

Needs an API key in the Authorization header.

On this page

Parameters

FieldInTypeDescription
idrequiredpathstring
A session id
  • format: uuid

Example request

curl -X POST "https://polaris.example.com/api/v1/sessions/{id}/stop" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Responses

StatusMeaning
200OK

Can also answer the common errors 400, 401, 403, 404, 429. See common errors