Skip to content

Sign an account out everywhere

POST
/console/users/{id}/sign-out
curl --request POST \
--url https://example.com/console/users/example/sign-out \
--header 'Content-Type: application/json' \
--cookie bottle.session_token=<bottle.session_token> \
--data '{ "reason": "example" }'

Ends every session the account has, with the reason recorded. They can sign in again straight away: to keep them out, lock the account. Not on your own account, and on a member of staff only by a console owner.

id
required
string
>= 1 characters
Media typeapplication/json
object
reason
required
string
>= 5 characters <= 500 characters
Examplegenerated
{
"reason": "example"
}

How many sessions were ended

Media typeapplication/json
object
ended
required
integer
Examplegenerated
{
"ended": 1
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not Bottle staff, no two-step sign-in, or a console role too low for this

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

No such person

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not on yourself, or not on staff without a console owner

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}