> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateDelegationOptions

```ts theme={null}
type CreateDelegationOptions = {
  expiresAt: string;
  idempotencyKey?: string;
};
```

Options for creating a delegation that allows a developer to sign on behalf of an end user.

## Properties

| Property                                    | Type     | Description                                                     |
| ------------------------------------------- | -------- | --------------------------------------------------------------- |
| <a id="expiresat" /> `expiresAt`            | `string` | The date until which the delegation is valid (ISO 8601 string). |
| <a id="idempotencykey" /> `idempotencyKey?` | `string` | Optional idempotency key for safe retries.                      |
