---
title: "Revoke a grant [write]"
method: DELETE
path: "/traces/{id}/grants/{grant_id}"
tags: ["traces"]
---

# Revoke a grant \[write\]

`DELETE /traces/{id}/grants/{grant_id}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/traces/{id}/grants/{grant_id}`
- Auth: HTTP bearer

Its source can add nothing more; what was admitted stays. Returns 404 when the TASK_TRACES switch is off for the workspace and 503 not_migrated before the tables exist.

## Path parameters

- `id` string, required
- `grant_id` string, required

## Response `200`

OK

- object
  - `grant` TaskTraceGrant, required
    - `id` string, required: tgrant_…
    - `trace_id` string, required
    - `source` string, required: The one source this grant may report as
    - `content_scopes` string[]: The content this grant admits beside metadata; empty admits metadata only
    - `expires_at` string, date-time, required
    - `revoked_at` string, date-time, nullable, required
    - `created_at` string, date-time, required

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/traces/:id/grants/:grant_id/delete.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
