Skip to content

Sign out

POST
/v1/id/sign-out
curl --request POST \
--url https://your-tenant-host/v1/id/sign-out \
--header 'x-edgekit-site-id: site_example' \
--cookie ek.session_token=<ek.session_token>

Revokes the server record and clears the cookies. Answers 200 even when no session was presented, so a retry is safe. In dual it also returns the identity provider logout URL, because the two sessions are independent and back-channel logout is unavailable for every v1 mechanism.

x-edgekit-site-id
required

The site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.

string
>= 1 characters <= 128 characters

Example

site_example

The site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.

The session is gone.

Media typeapplication/json
object
success
required
boolean
logoutUrl
required
string | null

Example

{
"success": true,
"logoutUrl": "https://id.example.com/logout"
}

Invalid request.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Resource not found.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request validation failed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Unexpected error.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}