End User Accounts

Revoke delegation for end user (deprecated)

Changed on

Deprecation Notice: Prefer Revoke delegation for end user (POST /v2/embedded-wallet-api/end-users/{userId}/delegation/revoke), which takes the same request body. This DELETE path will be removed on 2026-10-22.

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.

delete/v2/embedded-wallet-api/end-users/{userId}/delegation

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

userId, string required
Example:e051beeb-7163-4527-a5b6-35e301529ff2

The ID of the end user.

Query parameters

projectID, string
Example:8e03978e-40d5-43e8-bc93-6894a57f9324

The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).

Headers

X-Wallet-Auth, string

A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.

X-Developer-Auth, string

A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Request body

RevokeDelegationRequest required

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.

Example request

{
  "walletSecretId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}

Response

Delegation revoked successfully.

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    2 more changes in this revision