Skip to content

End a CLI sign-in

DELETE/api/cli/session

Only a key issued by `plr login` can end itself; any other key is answered 409.

Needs an API key in the Authorization header.

On this page

Example request

curl -X DELETE "https://polaris.example.com/api/cli/session" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Responses

StatusMeaning
204Signed out
409This key is not a CLI sign-in

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