Skip to content

Validate Invite Token

Deprecated
GET
/auth/invites/validate
curl --request GET \
--url 'https://example.com/auth/invites/validate?token=example'

Deprecated: use POST /auth/invites/validate, which keeps the token out of the URL.

Kept for one release so old clients keep working; every call logs a warning.

token
required
Token
string

Successful Response

Media typeapplication/json
TokenValidityResponse

Response for a public, side-effect-free “is this token still usable” check — lets a link-landing page (reset-password, accept-invite) show an error state immediately instead of rendering a form that is doomed to fail at submit. Never reveals why a token is invalid (unknown vs expired vs already used vs revoked) — that distinction isn’t needed by the caller and would leak more than the caller asked for.

object
valid
required
Valid
boolean

Example generated

{
"valid": true
}

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

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}