# Create an account token

Creates a single-use token that wraps a user’s legal entity information. Use this when creating or updating a Connect account. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens.md).

In live mode, you can only create account tokens with your application’s publishable key. In test mode, you can only create account tokens with your secret key or publishable key.

## Request

```curl
curl https://api.stripe.com/v1/tokens \
  -u "<<YOUR_SECRET_KEY>>" \
  -d "account[business_type]=individual" \
  -d "account[individual][first_name]=Jane" \
  -d "account[individual][last_name]=Doe" \
  -d "account[tos_shown_and_accepted]=true"
```

### Response

```json
{
  "id": "ct_1BZ6xr2eZvKYlo2CsSOhuTfi",
  "object": "token",
  "client_ip": "104.198.25.169",
  "created": 1513297331,
  "livemode": false,
  "redaction": null,
  "type": "account",
  "used": false
}
```

## Returns

Returns the created account token if it’s successful. Otherwise, this call raises [an error](https://docs.stripe.com/api/tokens/create_account.md#errors).

## Parameters

- [`account`](https://docs.stripe.com/api/tokens/create_account.md?query=account) (object, required)
  Information for the account this token represents.
