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

# Create account-scoped delegation for end user

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

## Request

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

Creates an account-scoped delegation that allows a developer to sign on behalf of an end user for a single blockchain account (identified by its address) for the specified duration. The end user must be authenticated to authorize this delegation.
Multiple account-scoped delegations may exist concurrently for a single end user (one per canonical account address). Account-scoped and user-scoped delegations cannot coexist for the same user.
When the address corresponds to an EVM Smart Account, the delegation is scoped to the Smart Account's owner EOA rather than the Smart Account address itself. This means `/address/{smartAccountAddress}/delegation` and `/address/{ownerEoaAddress}/delegation` resolve to the same delegation, and the 409 `account_scoped_delegation_active` error may be returned when creating via either address if one already exists for the canonical owner.

## Path parameters

- `userId` string, required
- `address` string, required: A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).

## Query parameters

- `projectID` string

## Headers

- `X-Wallet-Auth` string, required
- `X-Idempotency-Key` string

## Request body

- object
  - `expiresAt` string, date-time, required: The date until which the delegation is valid.
  - `walletSecretId` string, required: The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.

## Response `201`

Delegation created successfully.

- object
  - `expiresAt` string, date-time, required: The date until which the delegation is valid.

## Other responses

- `400`: Invalid request.
- `401`: Unauthorized.
- `402`: A payment method is required to complete this operation.
- `404`: Account not found.
- `409`: Conflict with an existing delegation.
- `422`: Idempotency key conflict.
- `429`: Rate limit exceeded.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 10 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - 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 `402`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - …6 more
- **2026-10-16** `ff3c1fdef902`: 10 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - 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 `402`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `404`
  - …6 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/embedded-wallet-api/end-users/:userId/address/:address/delegation/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)
