---
title: "POST /projects/{project_id}/sandboxes/{sandbox_id}/service-grants/approve"
method: POST
path: "/projects/{project_id}/sandboxes/{sandbox_id}/service-grants/approve"
tags: ["Sandbox service access"]
---

# POST /projects/{project_id}/sandboxes/{sandbox_id}/service-grants/approve

`POST /projects/{project_id}/sandboxes/{sandbox_id}/service-grants/approve`

## 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}/sandboxes/{sandbox_id}/service-grants/approve`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `sandbox_id` string, required

## Request body

- ApproveServiceGrant: Explicit operator approval, separate from a saved request. Reuse request_id only when retrying this exact approval; it never extends an existing grant.
  - `request_id` string, uuid, required
  - `service_id` string, required
  - `service_version` integer, required
  - `ttl_seconds` integer, required

## Response `202`

Fresh approval persisted; worker enforcement is asynchronous

- ServiceGrantApproval: Durable approval receipt. HTTP 202 does not mean the worker is connected.
  - `expires_at` string, date-time, required
  - `grant_id` string, required
  - `sandbox_id` string, required

## Other responses

- `400`: Invalid consent
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Scoped resource not found
- `409`: Policy or sandbox changed
- `500`: Approval storage failed
- `503`: Worker unavailable

## Changes

- **2026-11-10** `25defd2aafb8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/sandboxes/:sandbox_id/service-grants/approve/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)
