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

# POST /projects/{project_id}/access-vaults/{vault_id}/sessions

`POST /projects/{project_id}/access-vaults/{vault_id}/sessions`

## 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-vaults/{vault_id}/sessions`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `vault_id` string, required

## Request body

- CreateAccessSession
  - `bundle_id` 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
  - `request_id` string, uuid, required: Stable for retries of this approval. A new session needs a new UUID.
  - `services` SessionServiceVersion[], required: Exact policies the operator reviewed, one per bundle service (maximum 16).
    - `service_id` string, required
    - `version` integer, required
  - `ttl_seconds` integer, required

## Response `202`

Session issued; worker enforcement is asynchronous

- 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-vaults/:vault_id/sessions/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)
