Skip to content
Open the portal
Developer docs

Revoke By Link

POST
/v1/auth/sessions/revoke-by-link
curl --request POST \
--url https://example.com/v1/auth/sessions/revoke-by-link \
--header 'Content-Type: application/json' \
--data '{ "token": "example" }'

The one click in the new-sign-in email. Needs no session: the link is signed and can only ever sign sessions out.

Media typeapplication/json
RevokeByLinkIn
object
token
required
Token
string
>= 16 characters <= 512 characters
Examplegenerated
{
"token": "example"
}

Successful Response

Media typeapplication/json
Response Revoke By Link V1 Auth Sessions Revoke By Link Post
object
key
additional properties
any
Examplegenerated
{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}