---
title: "Revoke delegation for end user"
method: POST
path: "/v2/embedded-wallet-api/end-users/{userId}/delegation/revoke"
tags: ["End User Accounts"]
---

# Revoke delegation for end user

`POST /v2/embedded-wallet-api/end-users/{userId}/delegation/revoke`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/embedded-wallet-api/end-users/{userId}/delegation/revoke`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key.

## Path parameters

- `userId` string, required

## Query parameters

- `projectID` string

## Headers

- `X-Wallet-Auth` string
- `X-Developer-Auth` string
- `X-Idempotency-Key` string

## Request body

- RevokeDelegationRequest: The request body for revoking a user-scoped or account-scoped delegation.
  - `walletSecretId` string: When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.

## Response `204`

Delegation revoked successfully.

## Other responses

- `401`: Unauthorized.
- `404`: Delegation not found.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 5 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `401`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `502`
  - …1 more
- **2026-10-16** `ff3c1fdef902`: 5 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `401`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `404`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `502`
  - …1 more
- **2026-10-06** `156440e9f8df`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/embedded-wallet-api/end-users/:userId/delegation/revoke/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
