API reference · Auth & profile
Sign one device out
delete
/auth/sessions/{id}| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
| Rate limit | 20/1min |
Revokes one of the account's own sessions (an id from GET /auth/sessions); the current one too, which signs this device out. Throttle 20/min.
Parameters
| Name | In | Type |
|---|---|---|
id* | path | integer |
Responses
204 — No content
401 — Missing/invalid token
| Field | Type |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
404 — No such session on this account
| Field | Type |
|---|---|
message* | string |
json
{
"message": ""
}
429 — Too many requests
| Field | Type | Description |
|---|---|---|
message* | string | |
resend_in | integer | Seconds until a new login code may be requested (login-code cooldown only). |
json
{
"message": "Too Many Attempts.",
"resend_in": 0
}
curl example
bash
curl -X DELETE 'http://127.0.0.1:8010/api/auth/sessions/{id}' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"