End a session
This page needs your own installation with an Embed license.
DELETE/
Signs the frame’s session out. The SDK calls it when the frame goes away.
Needs the frame’s session: Authorization: Bearer gri_…. The SDK calls it; you rarely do.
Request
It takes no parameters and no body.
Responses
- 204No Content
Ended.
- 401
UNAUTHORIZEDNo session token.
The session ended.
details.reasonsays why, such asaccess_removed,role_changedorworkspace_deleted.Embed isn’t licensed here, or sign-in is off (
details.reason:not_licensedorsign_in_off).Something failed on the installation’s side. Try again.
Any call can also answer: 429 RATE_LIMITED · 503 BUSY. See Errors.
Request
GORUNNER="https://automations.example.com"
GORUNNER_SESSION="gri_…" # the frame’s session
curl -X DELETE "$GORUNNER/api/embed/v1/sessions/current" \
-H "Authorization: Bearer $GORUNNER_SESSION"const GORUNNER = "https://automations.example.com";
const SESSION = process.env.GORUNNER_SESSION; // gri_…
const res = await fetch(
`${GORUNNER}/api/embed/v1/sessions/current`,
{
method: "DELETE",
headers: {
Authorization: `Bearer ${SESSION}`,
},
},
);
console.log(res.status); // 204import os, requests
GORUNNER = "https://automations.example.com"
SESSION = os.environ["GORUNNER_SESSION"] # gri_…
res = requests.delete(
f"{GORUNNER}/api/embed/v1/sessions/current",
headers={"Authorization": f"Bearer {SESSION}"},
)
print(res.status_code) # 204Response · 204 No Content
HTTP/1.1 204 No ContentEvery field
It takes no body.
204 No Content: no body.