---
title: "Revoke embedded editor session"
method: DELETE
path: "/v2/organizations/{organizationId}/embed-sessions/{sessionId}"
tags: ["Embedded editor"]
---

# Revoke embedded editor session

`DELETE /v2/organizations/{organizationId}/embed-sessions/{sessionId}`

## Request

- Base URL: `https://api.pdfs.build`
- URL: `https://api.pdfs.build/v2/organizations/{organizationId}/embed-sessions/{sessionId}`
- Auth: HTTP bearer

Ends a session before it expires, e.g. when the end user signs out of your product.

## Response `200`

Done.

- Ok
  - `ok` true, required

## Other responses

- `401`: Missing, invalid or expired API key.
- `403`: The organization in the URL does not match the API key's organization.
- `404`: Unknown or already expired session.
- `502`: The service that owns this resource could not be reached. Safe to retry.

---

[API](https://skmtc.dev/pdfs/apis/pdfs-build-api.md) · [All operations](https://skmtc.dev/pdfs/apis/pdfs-build-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pdfs/apis/pdfs-build-api/revisions/1c7340b9521d?raw)
