Expire a session
Ends a live session early. The link stops working at once, anything the applicant entered is discarded, and your endpoints receive session.expired. Safe to repeat: a session that had already ended returns changed: false.
Error codes
Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.
Authentication
AuthorizationBearer
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required.
Path parameters
sessionId
The session identifier.
Response
The session has ended.
sessionId
The session identifier.
status
How the session ended.
Allowed values:
changed
False when the session had already ended.
expiresAt
When the session ended.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error