---
title: "Revoke a pending workspace invitation"
method: DELETE
path: "/workspaces/{id}/invitations/{invitation_id}"
tags: ["Workspaces"]
---

# Revoke a pending workspace invitation

`DELETE /workspaces/{id}/invitations/{invitation_id}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/workspaces/{id}/invitations/{invitation_id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `id` string, required: Workspace ID
- `invitation_id` string, required: Invitation ID

## Response `200`

OK

- RevokeWorkspaceInvitationOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `revoked` boolean, required

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
