---
title: "POST /projects/{project_id}/access-sessions/{session_id}/revoke"
method: POST
path: "/projects/{project_id}/access-sessions/{session_id}/revoke"
tags: ["Vault sessions"]
---

# POST /projects/{project_id}/access-sessions/{session_id}/revoke

`POST /projects/{project_id}/access-sessions/{session_id}/revoke`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/access-sessions/{session_id}/revoke`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `session_id` string, required

## Response `202`

Revocation requested; inspect worker receipts

- AccessSessionResponse
  - `bundle_id` string, required
  - `bundle_name` string, required
  - `bundle_version` integer, required
  - `consumer` AccessSessionConsumer, required: Extensible consumer identity. Only authenticated sandbox bindings are supported today.
    - `kind` 'sandbox', required
    - `sandbox_id` string, required
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `expires_at` string, date-time, required
  - `id` string, required
  - `project_id` integer, nullable
  - `revoked_at` string, date-time, nullable
  - `service_count` integer, required
  - `status` 'issued' | 'expired' | 'revoked', required: Authorization state only. Inspect grants for acknowledged worker enforcement.
  - `vault_id` string, required

## Other responses

- `400`: Invalid session
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Scoped resource not found
- `409`: Policy changed
- `500`: Session storage failed
- `503`: Worker unavailable

## Changes

- **2026-11-14** `3d5be996525d`: 2 breaking
  - the response property `project_id` became nullable for the status `202`
  - the response property `project_id` became optional for the status `202`
- **2026-11-14** `101ef74660bc`: 1 info
  - the response property `project_id` became required for the status `202`
- **2026-11-13** `9093c4f2c4cd`: 2 breaking
  - the response property `project_id` became nullable for the status `202`
  - the response property `project_id` became optional for the status `202`
- **2026-11-10** `25defd2aafb8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/access-sessions/:session_id/revoke/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
