# Create the Smart Account

> Coming soon, upon request — this feature is turned on for your tenant by the Aurea team. [Contact us](https://www.aureahub.com/contact)

Create the user's smart account on Gnosis Chain — the last onboarding step.

## Overview

- Check [Smart Account](https://docs.aureahub.com/docs/cards-account-config.md) first: create it only when it does not exist.
- `201` with the card program's answer. Aurea keeps the smart account's `address` for the user (`gnosisAddress` in [Local Status](https://docs.aureahub.com/docs/cards-local-status.md)): the EUR account's authorization link and payouts need it.
- **Illustrative example.** The card program's answer is passed through unchanged and may carry fields not listed here: the example shows only the fields Aurea or its own app reads. Ignore the fields you do not know.

## Endpoint

### `POST /v1/gnosis/safe/deploy`

Authentication: bearer token required.

Creates the user's smart account.

**Request body**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `chainId` | integer | no | Passed on to the card program when sent; leave it out for Gnosis Chain |

**Responses**

`201` Created (illustrative)

```json
{
  "address": "0x7a1c…e3b2"
}
```

**Example request**

```bash
curl -X POST https://api.aureahub.com/v1/gnosis/safe/deploy \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

---

Web version: https://docs.aureahub.com/#cards-account-deploy
