---
title: "Sign Session Mount Credentials"
method: POST
path: "/sessions/mounts/sign"
tags: ["Sessions"]
---

# Sign Session Mount Credentials

`POST /sessions/mounts/sign`

## Query parameters

- `session_id` string, required
- `name` string — Which session-scoped mount to sign, e.g. 'cwd' (default) or a per-harness transcript dir mount (e.g. 'claude-projects', 'pi-sessions'). Each name is its own mount row / durable prefix.

## Response `200`

Successful Response

- MountCredentialsResponse
  - `count` integer
  - `mount` Mount
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable
    - `project_id` string, uuid, required
    - `session_id` string, nullable
    - `agent_id` string, nullable
    - `purpose` string, nullable
    - `data` MountData
    - `flags` MountFlags
    - `tags` object, nullable
    - `meta` object, nullable
  - `credentials` MountCredentials — Short-lived, prefix-scoped credentials for a single mount. Signed API-side from the store's STS endpoint; the master key never leaves the API. Scoped to `<bucket>/<project_id>/<mount_id>/*` and expires within minutes, so a leak grants only this mount's prefix for a short window.
    - `endpoint` string, nullable
    - `region` string
    - `bucket` string, required
    - `prefix` string, required
    - `access_key` string, required
    - `secret_key` string, required
    - `session_token` string, nullable
    - `expires_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/d43a05d98a9b/schema)
