Skip to content

Log out

POST
/v1/logout
curl --request POST \
--url https://app.caprid.com/v1/logout

Ends the calling session and clears its cookie. Works with an expired cookie, or none.

A session that came from WorkOS also has a WorkOS session to end, which only the browser can do. The response says where to send it.

Logged out here. Send the browser to logout_url to end the WorkOS session too.

Media typeapplication/json
object
logout_url
required
string format: uri

Example generated

{
"logout_url": "https://example.com"
}

Logged out.