# Account

> The account a key belongs to, and its setup.

Source: https://www.onlucra.com/docs/api-account

The account is the brand or partner a key belongs to. `GET /v1/account` is a good first call: it tells you the account's `type` (`brand` or `partner`), its payment method and payout setup, its fees, and how many brands and creators it has.

```ts
const { data: account } = await lucra.account.retrieve()
```

## Payment method

A brand needs a payment method before it can create programs or pay creators. Until it has one, `paymentMethod` is `null` and those writes return `409 requirement_payment_method`. To add one, send a brand member to the URL from `POST /v1/connections` with `provider: "card"`.

## Update it

`PATCH /v1/account` changes the account's `name`, `description` and logo (`profilePicture`, a [file](https://www.onlucra.com/docs/api-files) uploaded with `purpose=profile_picture`). A partner also sets its [take rates](https://www.onlucra.com/docs/api-partners#take-rates) here.

## Endpoints

- `GET /v1/account` (read, SDK `lucra.account.retrieve`): Get the key's own account
- `PATCH /v1/account` (write, SDK `lucra.account.update`): Update the key's own account
