End the session of `bl`
POST
/api/v1/cli/logout
const url = 'https://example.com/api/v1/cli/logout';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/cli/logoutEnds the CLI session that the DPoP-bound access token belongs to; its tokens stop working at once.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The session ended.
No valid token with proof.
Media typeapplication/json
The body of every failed call to a management API.
object
error
required
object
code
required
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
string
message
required
For people; may change between versions.
string
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}