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

# Users

> Use this endpoint to create and manage resources that represent your individual cardholders.

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-semibold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

The `users` resource represents a person who accesses Marqeta-administered funds via a Marqeta card (whether physical or virtual). This endpoint enables you to create and manage users on the Marqeta platform.

This resource stores user attributes such as name, address, and date of birth, as well as financial information such as balances. By default, every user automatically has a general purpose account (GPA) that is used for the funding of transfers and is therefore an `account holder`. Note that account balances reside at the account holder level — there are no separate `account` or `balance` objects.

You can use the `/users` endpoint to create parent-child relationships between two users (where one user is the parent and the other is the child) or between a business and a user (where the business is the parent and the user is the child). This relationship provides reporting to the parent about how cards of children are used and enables the parent to monitor and even restrict card usage.

<Note>
  **Note**\
  A user can simultaneously be a child of a business and a parent of other users if the user is not configured to use a parent’s account balances and the user’s child is configured to use a parent’s account balances. For more information on account holders, see [About Account Holders](/developer-guides/about-account-holders/).
</Note>

<h2 id="post_users">
  Create user
</h2>

**Action:** `POST`\
**Endpoint:** `/users`

{/* <EndpointCard
title="Creates a user"
path="/users"
method="post"
/> */}

This endpoint enables you to create a user. A new user’s initial status depends on the [Know Your Customer (KYC) requirements](/core-api/kyc-verification/) of the program or associated [account holder group](/core-api/account-holder-groups/).

| KYC Required  | Initial User Status | User Active on Creation | User Limitations                                               |
| ------------- | ------------------- | ----------------------- | -------------------------------------------------------------- |
| Always        | `UNVERIFIED`        | Optional                | Cannot load funds; cannot activate cards.                      |
| Conditionally | `LIMITED`           | Optional                | Restricted by rules in `accountholdergroups.pre_kyc_controls`. |
| Never         | `ACTIVE`            | Required                | None.                                                          |

<Note>
  **Note**\
  Use the `/usertransitions` endpoints to transition user resources between statuses and to view the history of a user’s status. Do not set the value of the `user.active` field directly. For more information on status changes, see [Create User Transition](/core-api/user-transitions/#post_usertransitions).
</Note>

To perform KYC verification on users, the user object must have the following fields configured:

* `first_name` (legal first name only, no prefixes)

* `last_name` (legal last name only, no suffixes)

* `address1` (cannot be a PO Box)

* `city`

* `state`

* `postal_code`

* `country`

* `birth_date`

* `identifications`

* `phone` (required in some cases)

* `email` (required in some cases)

<Note>
  **Note**\
  The `identifications` requirement depends on your program’s configuration. To determine if you should provide a full or abbreviated identification number, contact your Marqeta representative. KYC verification requires the full Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN) of the user.
</Note>

To create a child user, you must identify the parent user or business and determine whether the child user shares an account with the parent.

The parent must be an existing user or business. On the child user, set the `parent_token` field to the value of the parent’s `token` field. If either the parent or the grandparent is a business, a `business_token` field is added to the user. This field’s value is set to the token of either the parent or grandparent (whichever is the business).

The `uses_parent_account` field determines whether the child shares balances with the parent (`true`) or whether the child balances are independent of the parent (`false`). If you do not specify a value for `uses_parent_account`, it is set to `false` by default (the user does not share the parent’s balance) and returned in the response body. This field cannot be updated, so you must decide upon creation whether the child user shares the parent balance.

Sharing an account with a parent user affects how the child user interacts with cards as follows:

* A child user cannot spend funds if its parent is not active.

* An active child user can activate cards, whether the parent is active or not.

<h3 id="_request_body">
  Request body
</h3>

| Fields                                                                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_holder\_group\_token<br /><br />string<br /><br />Optional           | Associates the specified account holder group with the cardholder.<br /><br />Send a `GET` request to `/accountholdergroups` to retrieve account holder group tokens.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                        |
| active<br /><br />boolean<br /><br />Optional                                 | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**NOTE:** Do not set the value of the `user.active` field directly. Instead, use the `/usertransitions` endpoints to transition user resources between statuses. For more information on status changes, see <a href="/core-api/user-transitions/#post_usertransitions">Create User Transition</a>.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                             |
| address1<br /><br />string<br /><br />Optional                                | Cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only). Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                |
| address2<br /><br />string<br /><br />Optional                                | Additional address information for the cardholder.<br /><br />**NOTE:** Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| birth\_date<br /><br />string<br /><br />Optional                             | Cardholder’s date of birth.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| birth\_place<br /><br />string<br /><br />Optional                            | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                     |
| city<br /><br />string<br /><br />Optional                                    | City where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| company<br /><br />string<br /><br />Optional                                 | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| corporate\_card\_holder<br /><br />boolean<br /><br />Optional                | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| country<br /><br />string<br /><br />Optional                                 | Country where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max<br /><br />**NOTE:**<a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">ISO alpha-2 country code</a> required for KYC verification. `US`, for example.                                                                                                                                                                                                                                            |
| email<br /><br />string<br /><br />Optional                                   | Valid email address of the cardholder.<br /><br />This value must be unique among users.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide an email address, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                            |
| first\_name<br /><br />string<br /><br />Optional                             | Cardholder’s first name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| gender<br /><br />string<br /><br />Optional                                  | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| honorific<br /><br />string<br /><br />Optional                               | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| id\_card\_expiration\_date<br /><br />string<br /><br />Optional              | Expiration date of the cardholder’s identification card.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| id\_card\_number<br /><br />string<br /><br />Optional                        | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| identifications<br /><br />array of objects<br /><br />Optional               | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| identifications\[].**expiration\_date**<br /><br />string<br /><br />Optional | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| identifications\[].**type**<br /><br />string<br /><br />Required             | Type of identification.<br /><br />**NOTE:** Full Social Security Number (SSN) is required for US-based user cardholder KYC verification, using the `SSN` type. Full Employer Identification Number (EIN) is required for business cardholder KYC verification, using the `BUSINESS_TAX_ID` or `BUSINESS_NUMBER` type. For business directors, use one of SSN, TIN, SIN, or NIN. Nine digits only, no delimiters. `123456789`, for example.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE` |
| identifications\[].**value**<br /><br />string<br /><br />Optional            | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />**NOTE:** Digits only, do not use separators. For example: 123456789                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ip\_address<br /><br />string<br /><br />Optional                             | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| last\_name<br /><br />string<br /><br />Optional                              | Cardholder’s last name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| metadata<br /><br />object<br /><br />Optional                                | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| middle\_name<br /><br />string<br /><br />Optional                            | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| nationality<br /><br />string<br /><br />Optional                             | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| notes<br /><br />string<br /><br />Optional                                   | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| parent\_token<br /><br />string<br /><br />Optional                           | Unique identifier of the parent user or business resource. Send a `GET` request to `/users` to retrieve user resource tokens or to `/businesses` to retrieve business resource tokens.<br /><br />Required if `uses_parent_account = true`. This user or business is configured as the parent of the current user.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                            |
| passport\_expiration\_date<br /><br />string<br /><br />Optional              | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| passport\_number<br /><br />string<br /><br />Optional                        | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| password<br /><br />string<br /><br />Optional                                | Password to the cardholder’s user account on the Marqeta platform.<br /><br />- Must contain at least one numeral<br /><br />- Must contain at least one lowercase letter<br /><br />- Must contain at least one uppercase letter<br /><br />- Must contain at least one of these symbols:<br />`@``#``$``%``!``^``&``*``(``)`<br />`\\``_``+``~``-``=``[``]``\{``}`<br />`,``;``:``'``"``.``/``<``>``?`<code>\`</code><br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                     |
| phone<br /><br />string<br /><br />Optional                                   | Telephone number of the cardholder (including area code), prepended by the `+` symbol and the 1- to 3-digit country calling code. Do not include hyphens, spaces, or parentheses.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide a phone number, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />Format: +15105551212 or +35552260859                                                                                                                                    |
| postal\_code<br /><br />string<br /><br />Optional                            | Postal code of the cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ssn<br /><br />string<br /><br />Optional                                     | Cardholder’s Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters. `123456789`, for example.                                                                                                                                                                                                                                                                                                                                                                                                                |
| state<br /><br />string<br /><br />Optional                                   | State or province where the cardholder resides.<br /><br />**NOTE:**<a href="/core-api/kyc-verification/#_valid_state_provincial_territorial_and_federal_abbreviations">Valid two-character abbreviation</a> required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />32 char max                                                                                                                                                                                                                                                                                      |
| title<br /><br />string<br /><br />Optional                                   | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**NOTE:** Do not use this field for honorific titles such as Mr., Mrs., Miss, Ms., Mx., Sir, or Dame. Instead, add these to the `honorific` field.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                              |
| token<br /><br />string<br /><br />Optional                                   | Unique identifier of the cardholder. If you do not include a token, the system generates one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                 |
| uses\_parent\_account<br /><br />boolean<br /><br />Optional                  | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />If set to `true`, you must also include a `parent_token` in the request. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                      |

<h3 id="_sample_request_body">
  Sample request body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "first_name": "Jane",
  "last_name": "Doe",
  "token": "my_user_01",
  "email": "jane.doe@company.com",
  "title": "Chief Comptroller",
  "birth_place": "US",
  "password": "P@ssw0rd",
  "identifications": [
    {
      "type": "SSN",
      "value": "111234444"
    }
  ],
  "birth_date": "1991-01-01",
  "address1": "1234 Grove Street",
  "city": "Berkeley",
  "state": "CA",
  "country": "USA",
  "postal_code": "94702",
  "phone": "15105551212",
  "gender": "F",
  "uses_parent_account": false,
  "metadata": {
    "notification_email": "jane.doe@home.com",
    "notification_language": "spa",
    "authentication_question1": "What was your first job?",
    "authentication_question2": "What make was your first car?",
    "authentication_question3": "What is your favorite color?",
    "authentication_answer1": "Cashier",
    "authentication_answer2": "Trabant",
    "authentication_answer3": "Blue"
  }
}
```

<h3 id="_response_body">
  Response body
</h3>

| Fields                                                                                                 | Description                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_holder\_group\_token<br /><br />string<br /><br />Conditionally returned                      | Associates the specified account holder group with the cardholder.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                       |
| active<br /><br />boolean<br /><br />Conditionally returned                                            | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                        |
| address1<br /><br />string<br /><br />Conditionally returned                                           | Cardholder’s address.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                   |
| address2<br /><br />string<br /><br />Conditionally returned                                           | Additional address information for the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                      |
| authentication<br /><br />object<br /><br />Conditionally returned                                     | Contains the cardholder’s email address and password information.<br /><br />**Allowable Values:**<br /><br />`email_verified`, `email_verified_time`, `last_password_update_channel`, `last_password_update_time`                                                                                                                                                               |
| authentication.**email\_verified**<br /><br />boolean<br /><br />Conditionally returned                | Specifies whether the email address has been verified.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                               |
| authentication.**email\_verified\_time**<br /><br />datetime<br /><br />Conditionally returned         | Date and time when the email address was verified.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                         |
| authentication.**last\_password\_update\_channel**<br /><br />string<br /><br />Conditionally returned | Specifies the channel through which the password was last changed.<br /><br />**Allowable Values:**<br /><br />`USER_CHANGE`, `USER_RESET`                                                                                                                                                                                                                                       |
| authentication.**last\_password\_update\_time**<br /><br />datetime<br /><br />Conditionally returned  | Date and time when the password was last changed.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                          |
| birth\_date<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s date of birth.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                       |
| birth\_place<br /><br />string<br /><br />Conditionally returned                                       | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>. |
| business\_token<br /><br />string<br /><br />Conditionally returned                                    | Unique identifier of the business resource.<br /><br />**Allowable Values:**<br /><br />Existing business resource token                                                                                                                                                                                                                                                         |
| city<br /><br />string<br /><br />Conditionally returned                                               | City where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                       |
| company<br /><br />string<br /><br />Conditionally returned                                            | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                           |
| corporate\_card\_holder<br /><br />boolean<br /><br />Conditionally returned                           | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                  |
| country<br /><br />string<br /><br />Conditionally returned                                            | Country where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                    |
| created\_time<br /><br />datetime<br /><br />Returned                                                  | Date and time when the resource was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                       |
| email<br /><br />string<br /><br />Conditionally returned                                              | Valid email address of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                   |
| first\_name<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s first name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                 |
| gender<br /><br />string<br /><br />Conditionally returned                                             | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                   |
| honorific<br /><br />string<br /><br />Conditionally returned                                          | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                            |
| id\_card\_expiration\_date<br /><br />string<br /><br />Conditionally returned                         | Expiration date of the cardholder’s identification.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                               |
| id\_card\_number<br /><br />string<br /><br />Conditionally returned                                   | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                |
| identifications<br /><br />array of objects<br /><br />Conditionally returned                          | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                  |
| identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned            | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                             |
| identifications\[].**type**<br /><br />string<br /><br />Conditionally returned                        | Type of identification.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`                                                                                                                                                                                 |
| identifications\[].**value**<br /><br />string<br /><br />Conditionally returned                       | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                              |
| ip\_address<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                 |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                                           | Date and time when the resource was last updated, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                  |
| last\_name<br /><br />string<br /><br />Conditionally returned                                         | Cardholder’s last name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                  |
| metadata<br /><br />object<br /><br />Conditionally returned                                           | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`                                                                                                                                                                 |
| middle\_name<br /><br />string<br /><br />Conditionally returned                                       | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                |
| nationality<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                               |
| notes<br /><br />string<br /><br />Conditionally returned                                              | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                |
| parent\_token<br /><br />string<br /><br />Conditionally returned                                      | Unique identifier of the parent user or business resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                |
| passport\_expiration\_date<br /><br />string<br /><br />Conditionally returned                         | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                     |
| passport\_number<br /><br />string<br /><br />Conditionally returned                                   | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                            |
| password<br /><br />string<br /><br />Conditionally returned                                           | Password to the cardholder’s user account on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                       |
| phone<br /><br />string<br /><br />Conditionally returned                                              | Cardholder’s telephone number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                          |
| postal\_code<br /><br />string<br /><br />Conditionally returned                                       | Postal code of the cardholder’s address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                 |
| ssn<br /><br />string<br /><br />Conditionally returned                                                | Cardholder’s Social Security Number (SSN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters.                                                                                                                                                                                                                                                          |
| state<br /><br />string<br /><br />Conditionally returned                                              | State or province where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />2 char max                                                                                                                                                                                                                                                                           |
| status<br /><br />string<br /><br />Conditionally returned                                             | Specifies the status of the cardholder on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />`UNVERIFIED`, `LIMITED`, `ACTIVE`, `SUSPENDED`, `CLOSED`                                                                                                                                                                                                             |
| title<br /><br />string<br /><br />Conditionally returned                                              | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                        |
| token<br /><br />string<br /><br />Conditionally returned                                              | Unique identifier of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                      |
| uses\_parent\_account<br /><br />boolean<br /><br />Conditionally returned                             | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                               |
| zip<br /><br />string<br /><br />Conditionally returned                                                | United States ZIP code of the cardholder’s address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                      |

<h3 id="_sample_response_body">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "token": "my_user_01",
  "active": true,
  "gender": "F",
  "first_name": "Jane",
  "last_name": "Doe",
  "email": "jane.doe6@company.com",
  "title": "Chief Comptroller",
  "birth_place": "US",
  "address1": "1234 Grove Street",
  "city": "Berkeley",
  "state": "CA",
  "zip": "94702",
  "country": "USA",
  "phone": "15105551212",
  "uses_parent_account": false,
  "ssn": "5555",
  "corporate_card_holder": false,
  "password": "P@ssw0rd",
  "created_time": "2023-03-26T20:21:24Z",
  "last_modified_time": "2023-03-26T20:21:24Z",
  "metadata": {
    "notification_email": "jane.doe@home.com",
    "notification_language": "spa",
    "authentication_question1": "What was your first job?",
    "authentication_question2": "What make was your first car?",
    "authentication_question3": "What is your favorite color?",
    "authentication_answer1": "Cashier",
    "authentication_answer2": "Trabant",
    "authentication_answer3": "Blue"
  },
  "account_holder_group_token": "DEFAULT_AHG",
  "status": "ACTIVE",
  "birth_date": "1991-01-01"
}
```

<h2 id="get_users">
  List users
</h2>

**Action:** `GET`\
**Endpoint:** `/users`

{/* <EndpointCard
title="Lists all users"
path="/users"
method="get"
/> */}

To return an array of all of a program’s users, send a `GET` request to the `/users` endpoint. This endpoint supports [field filtering](/core-api/field-filtering/) and [pagination](/core-api/sorting-and-pagination/). To narrow your result set to users that match certain criteria, see the [Search users](#post_users_lookup) endpoint.

The `business_token` field is conditionally returned in the response (it cannot be set through the API). You can use this field in conjunction with the `parent_token` field to determine whether the user has a parent or grandparent that is a business:

| parent\_token                              | business\_token                          | Description                                                  |
| ------------------------------------------ | ---------------------------------------- | ------------------------------------------------------------ |
| Not populated                              | Not populated                            | User does not have a parent.                                 |
| Populated                                  | Not populated                            | User’s parent is a user.                                     |
| Populated; matches `business_token`        | Populated; matches `parent_token`        | User’s parent is a business.                                 |
| Populated; does not match `business_token` | Populated; does not match `parent_token` | User’s parent is a user and their grandparent is a business. |

<h3 id="_url_query_parameters">
  URL query parameters
</h3>

| Fields                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional        | Number of user resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1-10<br /><br />**Default value:**<br />5                                                                                                                                                                                                                                                                                               |
| start\_index<br /><br />integer<br /><br />Optional | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer<br /><br />**Default value:**<br />0                                                                                                                                                                                                                                                                |
| search\_type<br /><br />string<br /><br />Optional  | Search type.<br /><br />**Allowable Values:**<br /><br />`query_then_fetch`, `dfs_query_then_fetch`                                                                                                                                                                                                                                                                                                                       |
| fields<br /><br />string<br /><br />Optional        | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank                                                                                                                                                                                                                           |
| sort\_by<br /><br />string<br /><br />Optional      | Field on which to sort. Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, or any field in the resource model<br /><br />**Default value:**<br />`-lastModifiedTime` |

<h3 id="_response_body_2">
  Response body
</h3>

| Fields                                                                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                          | Number of resources to retrieve.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data<br /><br />array of objects<br /><br />Conditionally returned                                  | Array of user objects.<br /><br />Objects are returned as appropriate to your query.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more user objects                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| data\[].**account\_holder\_group\_token**<br /><br />string<br /><br />Conditionally returned       | Associates the specified account holder group with the cardholder.<br /><br />Send a `GET` request to `/accountholdergroups` to retrieve account holder group tokens.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                        |
| data\[].**active**<br /><br />boolean<br /><br />Conditionally returned                             | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**NOTE:** Do not set the value of the `user.active` field directly. Instead, use the `/usertransitions` endpoints to transition user resources between statuses. For more information on status changes, see <a href="/core-api/user-transitions/#post_usertransitions">Create User Transition</a>.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                             |
| data\[].**address1**<br /><br />string<br /><br />Conditionally returned                            | Cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only). Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**address2**<br /><br />string<br /><br />Conditionally returned                            | Additional address information for the cardholder.<br /><br />**NOTE:** Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[].**birth\_date**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s date of birth.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**birth\_place**<br /><br />string<br /><br />Conditionally returned                        | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                     |
| data\[].**city**<br /><br />string<br /><br />Conditionally returned                                | City where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**company**<br /><br />string<br /><br />Conditionally returned                             | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| data\[].**corporate\_card\_holder**<br /><br />boolean<br /><br />Conditionally returned            | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**country**<br /><br />string<br /><br />Conditionally returned                             | Country where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max<br /><br />**NOTE:**<a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">ISO alpha-2 country code</a> required for KYC verification. `US`, for example.                                                                                                                                                                                                                                            |
| data\[].**email**<br /><br />string<br /><br />Conditionally returned                               | Valid email address of the cardholder.<br /><br />This value must be unique among users.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide an email address, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                            |
| data\[].**first\_name**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s first name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**gender**<br /><br />string<br /><br />Conditionally returned                              | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| data\[].**honorific**<br /><br />string<br /><br />Conditionally returned                           | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**id\_card\_expiration\_date**<br /><br />string<br /><br />Conditionally returned          | Expiration date of the cardholder’s identification card.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[].**id\_card\_number**<br /><br />string<br /><br />Conditionally returned                    | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**identifications**<br /><br />array of objects<br /><br />Conditionally returned           | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[].identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| data\[].identifications\[].**type**<br /><br />string<br /><br />Returned                           | Type of identification.<br /><br />**NOTE:** Full Social Security Number (SSN) is required for US-based user cardholder KYC verification, using the `SSN` type. Full Employer Identification Number (EIN) is required for business cardholder KYC verification, using the `BUSINESS_TAX_ID` or `BUSINESS_NUMBER` type. For business directors, use one of SSN, TIN, SIN, or NIN. Nine digits only, no delimiters. `123456789`, for example.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE` |
| data\[].identifications\[].**value**<br /><br />string<br /><br />Conditionally returned            | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />**NOTE:** Digits only, do not use separators. For example: 123456789                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| data\[].**ip\_address**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**last\_name**<br /><br />string<br /><br />Conditionally returned                          | Cardholder’s last name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[].**metadata**<br /><br />object<br /><br />Conditionally returned                            | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**middle\_name**<br /><br />string<br /><br />Conditionally returned                        | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**nationality**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data\[].**notes**<br /><br />string<br /><br />Conditionally returned                               | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**parent\_token**<br /><br />string<br /><br />Conditionally returned                       | Unique identifier of the parent user or business resource. Send a `GET` request to `/users` to retrieve user resource tokens or to `/businesses` to retrieve business resource tokens.<br /><br />Required if `uses_parent_account = true`. This user or business is configured as the parent of the current user.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                            |
| data\[].**passport\_expiration\_date**<br /><br />string<br /><br />Conditionally returned          | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| data\[].**passport\_number**<br /><br />string<br /><br />Conditionally returned                    | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**password**<br /><br />string<br /><br />Conditionally returned                            | Password to the cardholder’s user account on the Marqeta platform.<br /><br />- Must contain at least one numeral<br /><br />- Must contain at least one lowercase letter<br /><br />- Must contain at least one uppercase letter<br /><br />- Must contain at least one of these symbols:<br />`@``#``$``%``!``^``&``*``(``)`<br />`\\``_``+``~``-``=``[``]``\{``}`<br />`,``;``:``'``"``.``/``<``>``?`<code>\`</code><br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                     |
| data\[].**phone**<br /><br />string<br /><br />Conditionally returned                               | Telephone number of the cardholder (including area code), prepended by the `+` symbol and the 1- to 3-digit country calling code. Do not include hyphens, spaces, or parentheses.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide a phone number, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />Format: +15105551212 or +35552260859                                                                                                                                    |
| data\[].**postal\_code**<br /><br />string<br /><br />Conditionally returned                        | Postal code of the cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**ssn**<br /><br />string<br /><br />Conditionally returned                                 | Cardholder’s Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters. `123456789`, for example.                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**state**<br /><br />string<br /><br />Conditionally returned                               | State or province where the cardholder resides.<br /><br />**NOTE:**<a href="/core-api/kyc-verification/#_valid_state_provincial_territorial_and_federal_abbreviations">Valid two-character abbreviation</a> required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />32 char max                                                                                                                                                                                                                                                                                      |
| data\[].**title**<br /><br />string<br /><br />Conditionally returned                               | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**NOTE:** Do not use this field for honorific titles such as Mr., Mrs., Miss, Ms., Mx., Sir, or Dame. Instead, add these to the `honorific` field.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                              |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                               | Unique identifier of the cardholder. If you do not include a token, the system generates one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                 |
| data\[].**uses\_parent\_account**<br /><br />boolean<br /><br />Conditionally returned              | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />If set to `true`, you must also include a `parent_token` in the request. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                      |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                     | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                                                                                                               |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                       | A value of `true` indicates that more unreturned resources exist. A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                 |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                   | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                                                                                                               |

<h3 id="_sample_response_body_2">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "count": 2,
  "start_index": 0,
  "end_index": 1,
  "is_more": false,
  "data": [
    {
      "token": "my_user_01",
      "active": true,
      "gender": "F",
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@company.com",
      "address1": "1234 Grove Street",
      "city": "Berkeley",
      "state": "CA",
      "postal_code": "94702",
      "country": "USA",
      "phone": "15105551212",
      "uses_parent_account": false,
      "password": "P@ssw0rd",
      "created_time": "2022-08-16T19:43:02Z",
      "last_modified_time": "2022-08-16T19:43:02Z",
      "metadata": {
        "notification_email": "jane.doe@home.com",
        "notification_language": "spa",
        "authentication_question1": "What was your first job?",
        "authentication_question2": "What make was your first car?",
        "authentication_question3": "What is your favorite color?",
        "authentication_answer1": "Cashier",
        "authentication_answer2": "Trabant",
        "authentication_answer3": "Blue"
      },
      "account_holder_group_token": "DEFAULT_AHG",
      "status": "ACTIVE",
      "identifications": [
        {
          "type": "SSN",
          "value": "5555"
        }
      ],
      "birth_date": "1991-01-01"
    },
    {
      "token": "my_user_02",
      "active": true,
      "gender": "M",
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@company.com",
      "address1": "2345 Main Street",
      "city": "Berkeley",
      "state": "CA",
      "postal_code": "94702",
      "country": "USA",
      "phone": "15105551212",
      "uses_parent_account": false,
      "password": "my-password",
      "created_time": "2023-03-14T00:45:00Z",
      "last_modified_time": "2023-03-14T00:45:00Z",
      "metadata": {
        "key1": "value1",
        "key2": "value2"
      },
      "account_holder_group_token": "DEFAULT_AHG",
      "status": "ACTIVE",
      "identifications": [
        {
          "type": "SSN",
          "value": "4444"
        }
      ],
      "birth_date": "1992-02-02"
    }
  ]
}
```

<h2 id="get_users_token">
  Retrieve user
</h2>

**Action:** `GET`\
**Endpoint:** `/users/{token}`

{/* <EndpointCard
title="Returns a specific user"
path="/users/{token}"
method="get"
/> */}

To retrieve a specific user, send a `GET` request to the `/users/{token}` endpoint. Include the user `token` path parameter to specify the user to return.

The `business_token` field is conditionally returned in the response (it cannot be set through the API). You can use this field in conjunction with the `parent_token` field to determine whether the user has a parent or grandparent that is a business:

| parent\_token                              | business\_token                          | Description                                                  |
| ------------------------------------------ | ---------------------------------------- | ------------------------------------------------------------ |
| Not populated                              | Not populated                            | User does not have a parent.                                 |
| Populated                                  | Not populated                            | User’s parent is a user.                                     |
| Populated; matches `business_token`        | Populated; matches `parent_token`        | User’s parent is a business.                                 |
| Populated; does not match `business_token` | Populated; does not match `parent_token` | User’s parent is a user and their grandparent is a business. |

This endpoint supports [field filtering](/core-api/field-filtering/).

<h3 id="_url_path_parameters">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                      |
| ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the user resource.<br /><br />**Allowable Values:**<br /><br />Existing user resource token |

<h3 id="_url_query_parameters_2">
  URL query parameters
</h3>

| Fields                                       | Description                                                                                                                                                                                     |
| -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fields<br /><br />string<br /><br />Optional | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank |

<h3 id="_response_body_3">
  Response body
</h3>

| Fields                                                                                                 | Description                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_holder\_group\_token<br /><br />string<br /><br />Conditionally returned                      | Associates the specified account holder group with the cardholder.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                       |
| active<br /><br />boolean<br /><br />Conditionally returned                                            | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                        |
| address1<br /><br />string<br /><br />Conditionally returned                                           | Cardholder’s address.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                   |
| address2<br /><br />string<br /><br />Conditionally returned                                           | Additional address information for the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                      |
| authentication<br /><br />object<br /><br />Conditionally returned                                     | Contains the cardholder’s email address and password information.<br /><br />**Allowable Values:**<br /><br />`email_verified`, `email_verified_time`, `last_password_update_channel`, `last_password_update_time`                                                                                                                                                               |
| authentication.**email\_verified**<br /><br />boolean<br /><br />Conditionally returned                | Specifies whether the email address has been verified.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                               |
| authentication.**email\_verified\_time**<br /><br />datetime<br /><br />Conditionally returned         | Date and time when the email address was verified.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                         |
| authentication.**last\_password\_update\_channel**<br /><br />string<br /><br />Conditionally returned | Specifies the channel through which the password was last changed.<br /><br />**Allowable Values:**<br /><br />`USER_CHANGE`, `USER_RESET`                                                                                                                                                                                                                                       |
| authentication.**last\_password\_update\_time**<br /><br />datetime<br /><br />Conditionally returned  | Date and time when the password was last changed.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                          |
| birth\_date<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s date of birth.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                       |
| birth\_place<br /><br />string<br /><br />Conditionally returned                                       | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>. |
| business\_token<br /><br />string<br /><br />Conditionally returned                                    | Unique identifier of the business resource.<br /><br />**Allowable Values:**<br /><br />Existing business resource token                                                                                                                                                                                                                                                         |
| city<br /><br />string<br /><br />Conditionally returned                                               | City where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                       |
| company<br /><br />string<br /><br />Conditionally returned                                            | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                           |
| corporate\_card\_holder<br /><br />boolean<br /><br />Conditionally returned                           | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                  |
| country<br /><br />string<br /><br />Conditionally returned                                            | Country where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                    |
| created\_time<br /><br />datetime<br /><br />Returned                                                  | Date and time when the resource was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                       |
| email<br /><br />string<br /><br />Conditionally returned                                              | Valid email address of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                   |
| first\_name<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s first name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                 |
| gender<br /><br />string<br /><br />Conditionally returned                                             | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                   |
| honorific<br /><br />string<br /><br />Conditionally returned                                          | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                            |
| id\_card\_expiration\_date<br /><br />string<br /><br />Conditionally returned                         | Expiration date of the cardholder’s identification.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                               |
| id\_card\_number<br /><br />string<br /><br />Conditionally returned                                   | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                |
| identifications<br /><br />array of objects<br /><br />Conditionally returned                          | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                  |
| identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned            | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                             |
| identifications\[].**type**<br /><br />string<br /><br />Conditionally returned                        | Type of identification.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`                                                                                                                                                                                 |
| identifications\[].**value**<br /><br />string<br /><br />Conditionally returned                       | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                              |
| ip\_address<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                 |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                                           | Date and time when the resource was last updated, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                  |
| last\_name<br /><br />string<br /><br />Conditionally returned                                         | Cardholder’s last name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                  |
| metadata<br /><br />object<br /><br />Conditionally returned                                           | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`                                                                                                                                                                 |
| middle\_name<br /><br />string<br /><br />Conditionally returned                                       | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                |
| nationality<br /><br />string<br /><br />Conditionally returned                                        | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                               |
| notes<br /><br />string<br /><br />Conditionally returned                                              | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                |
| parent\_token<br /><br />string<br /><br />Conditionally returned                                      | Unique identifier of the parent user or business resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                |
| passport\_expiration\_date<br /><br />string<br /><br />Conditionally returned                         | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                     |
| passport\_number<br /><br />string<br /><br />Conditionally returned                                   | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                            |
| password<br /><br />string<br /><br />Conditionally returned                                           | Password to the cardholder’s user account on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                       |
| phone<br /><br />string<br /><br />Conditionally returned                                              | Cardholder’s telephone number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                          |
| postal\_code<br /><br />string<br /><br />Conditionally returned                                       | Postal code of the cardholder’s address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                 |
| ssn<br /><br />string<br /><br />Conditionally returned                                                | Cardholder’s Social Security Number (SSN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters.                                                                                                                                                                                                                                                          |
| state<br /><br />string<br /><br />Conditionally returned                                              | State or province where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />2 char max                                                                                                                                                                                                                                                                           |
| status<br /><br />string<br /><br />Conditionally returned                                             | Specifies the status of the cardholder on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />`UNVERIFIED`, `LIMITED`, `ACTIVE`, `SUSPENDED`, `CLOSED`                                                                                                                                                                                                             |
| title<br /><br />string<br /><br />Conditionally returned                                              | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                        |
| token<br /><br />string<br /><br />Conditionally returned                                              | Unique identifier of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                      |
| uses\_parent\_account<br /><br />boolean<br /><br />Conditionally returned                             | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                               |
| zip<br /><br />string<br /><br />Conditionally returned                                                | United States ZIP code of the cardholder’s address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                      |

<h3 id="_sample_response_body_3">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "token": "my_user_01",
  "active": true,
  "gender": "F",
  "first_name": "Jane",
  "last_name": "Doe",
  "email": "jane.doe@company.com",
  "title": "Chief Comptroller",
  "birth_place": "US",
  "address1": "1234 Grove Street",
  "city": "Berkeley",
  "state": "CA",
  "postal_code": "94702",
  "country": "USA",
  "phone": "15105551212",
  "uses_parent_account": false,
  "password": "P@ssw0rd",
  "created_time": "2022-08-16T19:39:34Z",
  "last_modified_time": "2022-08-16T19:39:34Z",
  "metadata": {
    "notification_email": "jane.doe@home.com",
    "notification_language": "spa",
    "authentication_question1": "What was your first job?",
    "authentication_question2": "What make was your first car?",
    "authentication_question3": "What is your favorite color?",
    "authentication_answer1": "Cashier",
    "authentication_answer2": "Trabant",
    "authentication_answer3": "Blue"
  },
  "account_holder_group_token": "DEFAULT_AHG",
  "status": "ACTIVE",
  "identifications": [
    {
      "type": "SSN",
      "value": "5555"
    }
  ],
  "birth_date": "1991-01-01"
}
```

<h2 id="put_users_token">
  Update user
</h2>

**Action:** `PUT`\
**Endpoint:** `/users/{token}`

{/* <EndpointCard
title="Updates a specific user"
path="/users/{token}"
method="put"
/> */}

To update a specific user resource, send a `PUT` request to the `/users/{token}` endpoint. Include the user `token` path parameter to specify the user to update.

To unlink a child user account from a parent account, pass a null value to the `parent_token` field of the child user resource.

<h3 id="_url_path_parameters_2">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                         |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the user resource you want to update.<br /><br />**Allowable Values:**<br /><br />Existing user resource token |

<h3 id="_request_body_2">
  Request body
</h3>

| Fields                                                                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_holder\_group\_token<br /><br />string<br /><br />Optional           | Associates the specified account holder group with the cardholder. Send a `GET` request to `/accountholdergroups` to retrieve account holder group tokens.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                   |
| address1<br /><br />string<br /><br />Optional                                | Cardholder address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only). Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                  |
| address2<br /><br />string<br /><br />Optional                                | Additional address information for the cardholder.<br /><br />**NOTE:** Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| birth\_date<br /><br />string<br /><br />Optional                             | Cardholder date of birth.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| birth\_place<br /><br />string<br /><br />Optional                            | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                     |
| city<br /><br />string<br /><br />Optional                                    | The city that corresponds to the address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| company<br /><br />string<br /><br />Optional                                 | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| corporate\_card\_holder<br /><br />boolean<br /><br />Optional                | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| country<br /><br />string<br /><br />Optional                                 | Country in which the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max<br /><br />**NOTE:**<a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">ISO alpha-2 country code</a> is required for KYC verification. `US`, for example.                                                                                                                                                                                                                                      |
| email<br /><br />string<br /><br />Optional                                   | Valid email address for the cardholder.<br /><br />This value must be unique among cardholders.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| first\_name<br /><br />string<br /><br />Optional                             | Cardholder first name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| gender<br /><br />string<br /><br />Optional                                  | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| honorific<br /><br />string<br /><br />Optional                               | Cardholder title or prefix: Ms., Mr., Miss, Mrs.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| id\_card\_expiration\_date<br /><br />string<br /><br />Optional              | Expiration date of the cardholder’s identification card.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| id\_card\_number<br /><br />string<br /><br />Optional                        | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| identifications<br /><br />array of objects<br /><br />Optional               | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| identifications\[].**expiration\_date**<br /><br />string<br /><br />Optional | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| identifications\[].**type**<br /><br />string<br /><br />Required             | Type of identification.<br /><br />**NOTE:** Full Social Security Number (SSN) is required for US-based user cardholder KYC verification, using the `SSN` type. Full Employer Identification Number (EIN) is required for business cardholder KYC verification, using the `BUSINESS_TAX_ID` or `BUSINESS_NUMBER` type. For business directors, use one of SSN, TIN, SIN, or NIN. Nine digits only, no delimiters. `123456789`, for example.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE` |
| identifications\[].**value**<br /><br />string<br /><br />Optional            | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />**NOTE:** Digits only, do not use separators. For example: 123456789                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ip\_address<br /><br />string<br /><br />Optional                             | Cardholder IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| last\_name<br /><br />string<br /><br />Optional                              | Cardholder last name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| metadata<br /><br />object<br /><br />Optional                                | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| middle\_name<br /><br />string<br /><br />Optional                            | Cardholder middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| nationality<br /><br />string<br /><br />Optional                             | Cardholder nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| notes<br /><br />string<br /><br />Optional                                   | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| parent\_token<br /><br />string<br /><br />Optional                           | Unique identifier of an existing user or business resource.<br /><br />Required if `uses_parent_account = true`. This account holder is configured as the parent of the current cardholder.<br /><br />To unlink a child account from a parent account, update this field to a null value.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                    |
| passport\_expiration\_date<br /><br />string<br /><br />Optional              | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| passport\_number<br /><br />string<br /><br />Optional                        | Cardholder passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| password<br /><br />string<br /><br />Optional                                | Cardholder’s user account password on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| phone<br /><br />string<br /><br />Optional                                   | Cardholder telephone number (including area code), prepended by the `+` symbol and the 1- to 3-digit country calling code. Do not include hyphens, spaces, or parentheses.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />Format: +15105551212 or +35552260859                                                                                                                                                                                                                                                                                                                                  |
| postal\_code<br /><br />string<br /><br />Optional                            | Postal code of the cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ssn<br /><br />string<br /><br />Optional                                     | Cardholder’s Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters. `123456789`, for example.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).                                                                                                                                                                                                                                                                                                                                |
| state<br /><br />string<br /><br />Optional                                   | State where the cardholder resides (`CA` for California, for example).<br /><br />**NOTE:**<a href="/core-api/kyc-verification/#_valid_state_provincial_territorial_and_federal_abbreviations">Two-character abbreviation</a> required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />32 char max                                                                                                                                                                                                                                                                     |
| title<br /><br />string<br /><br />Optional                                   | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| token<br /><br />string<br /><br />Optional                                   | Unique identifier of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| uses\_parent\_account<br /><br />boolean<br /><br />Optional                  | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />If set to `true`, you must also include a `parent_token` in the request. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                      |

<h3 id="_sample_request_body_2">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "address1": "4321 Grove Street"
}
```

<h3 id="_response_body_4">
  Response body
</h3>

| Fields                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_holder\_group\_token<br /><br />string<br /><br />Conditionally returned           | Associates the specified account holder group with the cardholder.<br /><br />Send a `GET` request to `/accountholdergroups` to retrieve account holder group tokens.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                        |
| active<br /><br />boolean<br /><br />Conditionally returned                                 | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**NOTE:** Do not set the value of the `user.active` field directly. Instead, use the `/usertransitions` endpoints to transition user resources between statuses. For more information on status changes, see <a href="/core-api/user-transitions/#post_usertransitions">Create User Transition</a>.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                             |
| address1<br /><br />string<br /><br />Conditionally returned                                | Cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only). Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                |
| address2<br /><br />string<br /><br />Conditionally returned                                | Additional address information for the cardholder.<br /><br />**NOTE:** Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| birth\_date<br /><br />string<br /><br />Conditionally returned                             | Cardholder’s date of birth.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| birth\_place<br /><br />string<br /><br />Conditionally returned                            | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                     |
| city<br /><br />string<br /><br />Conditionally returned                                    | City where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| company<br /><br />string<br /><br />Conditionally returned                                 | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| corporate\_card\_holder<br /><br />boolean<br /><br />Conditionally returned                | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| country<br /><br />string<br /><br />Conditionally returned                                 | Country where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max<br /><br />**NOTE:**<a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">ISO alpha-2 country code</a> required for KYC verification. `US`, for example.                                                                                                                                                                                                                                            |
| email<br /><br />string<br /><br />Conditionally returned                                   | Valid email address of the cardholder.<br /><br />This value must be unique among users.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide an email address, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                            |
| first\_name<br /><br />string<br /><br />Conditionally returned                             | Cardholder’s first name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| gender<br /><br />string<br /><br />Conditionally returned                                  | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| honorific<br /><br />string<br /><br />Conditionally returned                               | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| id\_card\_expiration\_date<br /><br />string<br /><br />Conditionally returned              | Expiration date of the cardholder’s identification card.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| id\_card\_number<br /><br />string<br /><br />Conditionally returned                        | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| identifications<br /><br />array of objects<br /><br />Conditionally returned               | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| identifications\[].**type**<br /><br />string<br /><br />Returned                           | Type of identification.<br /><br />**NOTE:** Full Social Security Number (SSN) is required for US-based user cardholder KYC verification, using the `SSN` type. Full Employer Identification Number (EIN) is required for business cardholder KYC verification, using the `BUSINESS_TAX_ID` or `BUSINESS_NUMBER` type. For business directors, use one of SSN, TIN, SIN, or NIN. Nine digits only, no delimiters. `123456789`, for example.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE` |
| identifications\[].**value**<br /><br />string<br /><br />Conditionally returned            | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />**NOTE:** Digits only, do not use separators. For example: 123456789                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ip\_address<br /><br />string<br /><br />Conditionally returned                             | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| last\_name<br /><br />string<br /><br />Conditionally returned                              | Cardholder’s last name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| metadata<br /><br />object<br /><br />Conditionally returned                                | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| middle\_name<br /><br />string<br /><br />Conditionally returned                            | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| nationality<br /><br />string<br /><br />Conditionally returned                             | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| notes<br /><br />string<br /><br />Conditionally returned                                   | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| parent\_token<br /><br />string<br /><br />Conditionally returned                           | Unique identifier of the parent user or business resource. Send a `GET` request to `/users` to retrieve user resource tokens or to `/businesses` to retrieve business resource tokens.<br /><br />Required if `uses_parent_account = true`. This user or business is configured as the parent of the current user.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                            |
| passport\_expiration\_date<br /><br />string<br /><br />Conditionally returned              | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| passport\_number<br /><br />string<br /><br />Conditionally returned                        | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| password<br /><br />string<br /><br />Conditionally returned                                | Password to the cardholder’s user account on the Marqeta platform.<br /><br />- Must contain at least one numeral<br /><br />- Must contain at least one lowercase letter<br /><br />- Must contain at least one uppercase letter<br /><br />- Must contain at least one of these symbols:<br />`@``#``$``%``!``^``&``*``(``)`<br />`\\``_``+``~``-``=``[``]``\{``}`<br />`,``;``:``'``"``.``/``<``>``?`<code>\`</code><br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                     |
| phone<br /><br />string<br /><br />Conditionally returned                                   | Telephone number of the cardholder (including area code), prepended by the `+` symbol and the 1- to 3-digit country calling code. Do not include hyphens, spaces, or parentheses.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide a phone number, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />Format: +15105551212 or +35552260859                                                                                                                                    |
| postal\_code<br /><br />string<br /><br />Conditionally returned                            | Postal code of the cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ssn<br /><br />string<br /><br />Conditionally returned                                     | Cardholder’s Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters. `123456789`, for example.                                                                                                                                                                                                                                                                                                                                                                                                                |
| state<br /><br />string<br /><br />Conditionally returned                                   | State or province where the cardholder resides.<br /><br />**NOTE:**<a href="/core-api/kyc-verification/#_valid_state_provincial_territorial_and_federal_abbreviations">Valid two-character abbreviation</a> required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />32 char max                                                                                                                                                                                                                                                                                      |
| title<br /><br />string<br /><br />Conditionally returned                                   | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**NOTE:** Do not use this field for honorific titles such as Mr., Mrs., Miss, Ms., Mx., Sir, or Dame. Instead, add these to the `honorific` field.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                              |
| token<br /><br />string<br /><br />Conditionally returned                                   | Unique identifier of the cardholder. If you do not include a token, the system generates one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                 |
| uses\_parent\_account<br /><br />boolean<br /><br />Conditionally returned                  | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />If set to `true`, you must also include a `parent_token` in the request. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                      |

<h3 id="_sample_response_body_4">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_user_01",
  "active": true,
  "address1": "4321 Grove Street",
  "uses_parent_account": false,
  "corporate_card_holder": false,
  "created_time": "2023-01-29T00:12:20Z",
  "last_modified_time": "2023-09-23T21:41:24Z",
  "metadata": {},
  "account_holder_group_token": "DEFAULT_AHG",
  "status": "ACTIVE"
}
```

<h2 id="post_users_auth_changepassword">
  Update user password
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/changepassword`

{/* <EndpointCard
title="Updates a user password"
path="/users/auth/changepassword"
method="post"
/> */}

To change a user password, send a `POST` request to the `/users/auth/changepassword` endpoint and include the `current_password` and `new_password` in [JSON](http://www.json.org/) format in the body of the request. This endpoint operates in the context of a currently logged-in user.

A successful password change returns an empty response body with a response code of `204 No Content`.

<h3 id="_request_body_3">
  Request body
</h3>

| Fields                                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| current\_password<br /><br />string<br /><br />Required | Current password to the cardholder’s user account on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                                                                                  |
| new\_password<br /><br />string<br /><br />Required     | New password to the cardholder’s user account on the Marqeta platform.<br /><br />- Must contain at least one numeral<br /><br />- Must contain at least one lowercase letter<br /><br />- Must contain at least one uppercase letter<br /><br />- Must contain at least one of these symbols:<br />`@``#``$``%``!``^``&``*``(``)`<br />`\\``_``+``~``-``=``[``]``\{``}`<br />`,``;``:``'``"``.``/``<``>``?`<code>\`</code><br /><br />**Allowable Values:**<br /><br />1–255 chars |

<h3 id="_sample_request_body_3">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "new_password": "my_new_password",
  "current_password": "my_old_password"
}
```

<h2 id="post_users_auth_clientaccesstoken">
  Create client access token
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/clientaccesstoken`

{/* <EndpointCard
title="Creates a client access token"
path="/users/auth/clientaccesstoken"
method="post"
/> */}

Each time you want to display a virtual card’s sensitive data (for example, when using `marqeta.js`), you must first request a new, single-use client access token from the Marqeta platform by sending a `POST` request to the `/users/auth/clientaccesstoken` endpoint. Unredeemed client access tokens expire after five minutes.

<h3 id="_request_body_4">
  Request body
</h3>

| Fields                                                   | Description                                                                                                                            |
| -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| application\_token<br /><br />string<br /><br />Optional | Unique identifier of the `application` object.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                 |
| card\_token<br /><br />string<br /><br />Required        | Unique identifier of the card whose sensitive information you want to display.<br /><br />**Allowable Values:**<br /><br />1–255 chars |

<h3 id="_sample_request_body_4">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "card_token": "my_card_01"
}
```

<h3 id="_response_body_5">
  Response body
</h3>

| Fields                                                                                     | Description                                                                                                                                                           |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| application<br /><br />object<br /><br />Conditionally returned                            | Contains client application information.<br /><br />**Allowable Values:**<br /><br />Existing `application` object                                                    |
| application.**access\_code**<br /><br />string<br /><br />Conditionally returned           | Access code of the client application.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                       |
| application.**assets\_url**<br /><br />string<br /><br />Conditionally returned            | URL of the client application assets.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                        |
| application.**client\_api\_base\_url**<br /><br />string<br /><br />Conditionally returned | Base URL of the client API.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                  |
| application.**environment**<br /><br />string<br /><br />Conditionally returned            | Client application’s environment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                            |
| application.**program**<br /><br />string<br /><br />Conditionally returned                | Name of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                 |
| application.**program\_short\_code**<br /><br />string<br /><br />Conditionally returned   | Short code of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                           |
| application.**token**<br /><br />string<br /><br />Conditionally returned                  | Unique identifier of the `application` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                |
| card\_token<br /><br />string<br /><br />Conditionally returned                            | Unique identifier of the card whose sensitive information you want to display.<br /><br />**Allowable Values:**<br /><br />Existing card token                        |
| created<br /><br />datetime<br /><br />Conditionally returned                              | Date and time when the client access token was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ |
| expires<br /><br />datetime<br /><br />Conditionally returned                              | Date and time when the client access token expires, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ     |
| token<br /><br />string<br /><br />Conditionally returned                                  | Value of the client access token to redeem when displaying sensitive card data.<br /><br />**Allowable Values:**<br /><br />Existing client access token              |

<h3 id="_sample_response_body_5">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "created": "2022-07-29T12:00:00Z",
  "expires": "2022-07-29T12:05:00Z",
  "token": "ewogICJ0b2tlbiI6ICI5NzIwMDkwNS00ODc0LTRkMWEtODEzMS1jMWI3NDAwNzJjM2MmYXBwbGljYXRpb25fdG9rZW49eW91cl9hcHBsaWNhdGlvbl90b2tlbiIsCiAgImFwcGxpY2F0aW9uIjogewogICAgInRva2VuIjogInlvdXJfYXBwbGljYXRpb25fdG9rZW4iLAogICAgImFjdGl2ZSI6IHRydWUsCiAgICAiY2xpZW50X2FwaV9iYXNlX3VybCI6ICJodHRwOi8vd2lkZ2V0cy1lbnYubWFycWV0YS5jb20vY2xpZW50L2FwaS92MSIsCiAgICAiYXNzZXRzX3VybCI6ICJodHRwOi8vd2lkZ2V0cy1lbnYubWFycWV0YS5jb20vY2xpZW50L2Fzc2V0cy8xLjAuMCIsCiAgICAiY2xpZW50dG9rZW5hcHBsaWNhdGlvbklkIjogIjU3MDI2OTJhMGI4ZGNlOTg1YWVmNTExMiIKICB9LAogICJhcHBsaWNhdGlvbl90b2tlbiI6IG51bGwsCiAgImV4cGlyZXMiOiAiMjAxOC0xMi0zMVQyMzo1OTo1OSswMDAwIiwKICAiY2FyZF90b2tlbiI6ICJ0b2tlbl9vZl90aGVfY2FyZF95b3VfbmVlZF90b19wcmVzZW50IiwKICAiYWNjZXNzZWQiOiBudWxsLAogICJjbGllbnR0b2tlbklkIjogIjU5MTc2Y2JlMGI4ZGNlOTg1YWVmNTEzMCIsCiAgImNyZWF0ZWQiOiAiMjAxOC0wMS0wMVQwMDowMDowMCswMDAwIgp9"
}
```

<h2 id="get_users_auth_clientaccesstoken_token">
  Retrieve client access token
</h2>

**Action:** `GET`\
**Endpoint:** `/users/auth/clientaccesstoken/{token}`

{/* <EndpointCard
title="Returns a client access token"
path="/users/auth/clientaccesstoken/{token}"
method="get"
/> */}

To retrieve application and card information using a client access token, send a `GET` request to the `/users/auth/clientaccesstoken/{token}` endpoint.

<h3 id="_url_path_parameters_3">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                   |
| ------------------------------------------- | --------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Client access token.<br /><br />**Allowable Values:**<br /><br />Existing client access token |

<h3 id="_url_query_parameters_3">
  URL query parameters
</h3>

| Fields                                                   | Description                                                                                                           |
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| application\_token<br /><br />string<br /><br />Optional | Unique identifier of the `application` object.<br /><br />**Allowable Values:**<br /><br />Existing application token |

<h3 id="_response_body_6">
  Response body
</h3>

| Fields                                                                                     | Description                                                                                                                                                           |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| application<br /><br />object<br /><br />Conditionally returned                            | Contains client application information.<br /><br />**Allowable Values:**<br /><br />Existing `application` object                                                    |
| application.**access\_code**<br /><br />string<br /><br />Conditionally returned           | Access code of the client application.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                       |
| application.**assets\_url**<br /><br />string<br /><br />Conditionally returned            | URL of the client application assets.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                        |
| application.**client\_api\_base\_url**<br /><br />string<br /><br />Conditionally returned | Base URL of the client API.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                  |
| application.**environment**<br /><br />string<br /><br />Conditionally returned            | Client application’s environment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                            |
| application.**program**<br /><br />string<br /><br />Conditionally returned                | Name of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                 |
| application.**program\_short\_code**<br /><br />string<br /><br />Conditionally returned   | Short code of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                           |
| application.**token**<br /><br />string<br /><br />Conditionally returned                  | Unique identifier of the `application` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                |
| card\_token<br /><br />string<br /><br />Conditionally returned                            | Unique identifier of the card whose sensitive information you want to display.<br /><br />**Allowable Values:**<br /><br />Existing card token                        |
| created<br /><br />datetime<br /><br />Conditionally returned                              | Date and time when the client access token was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ |
| expires<br /><br />datetime<br /><br />Conditionally returned                              | Date and time when the client access token expires, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ     |
| token<br /><br />string<br /><br />Conditionally returned                                  | Value of the client access token to redeem when displaying sensitive card data.<br /><br />**Allowable Values:**<br /><br />Existing client access token              |

<h3 id="_sample_response_body_6">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "created": "2022-07-29T12:00:00Z",
  "expires": "2022-07-29T12:05:00Z",
  "token": "ewogICJ0b2tlbiI6ICI5NzIwMDkwNS00ODc0LTRkMWEtODEzMS1jMWI3NDAwNzJjM2MmYXBwbGljYXRpb25fdG9rZW49eW91cl9hcHBsaWNhdGlvbl90b2tlbiIsCiAgImFwcGxpY2F0aW9uIjogewogICAgInRva2VuIjogInlvdXJfYXBwbGljYXRpb25fdG9rZW4iLAogICAgImFjdGl2ZSI6IHRydWUsCiAgICAiY2xpZW50X2FwaV9iYXNlX3VybCI6ICJodHRwOi8vd2lkZ2V0cy1lbnYubWFycWV0YS5jb20vY2xpZW50L2FwaS92MSIsCiAgICAiYXNzZXRzX3VybCI6ICJodHRwOi8vd2lkZ2V0cy1lbnYubWFycWV0YS5jb20vY2xpZW50L2Fzc2V0cy8xLjAuMCIsCiAgICAiY2xpZW50dG9rZW5hcHBsaWNhdGlvbklkIjogIjU3MDI2OTJhMGI4ZGNlOTg1YWVmNTExMiIKICB9LAogICJhcHBsaWNhdGlvbl90b2tlbiI6IG51bGwsCiAgImV4cGlyZXMiOiAiMjAxOC0xMi0zMVQyMzo1OTo1OSswMDAwIiwKICAiY2FyZF90b2tlbiI6ICJ0b2tlbl9vZl90aGVfY2FyZF95b3VfbmVlZF90b19wcmVzZW50IiwKICAiYWNjZXNzZWQiOiBudWxsLAogICJjbGllbnR0b2tlbklkIjogIjU5MTc2Y2JlMGI4ZGNlOTg1YWVmNTEzMCIsCiAgImNyZWF0ZWQiOiAiMjAxOC0wMS0wMVQwMDowMDowMCswMDAwIgp9"
}
```

<h2 id="post_users_auth_login">
  Log in user
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/login`

{/* <EndpointCard
title="Logs in a user"
path="/users/auth/login"
method="post"
/> */}

To log in a user and return a user access token, send a `POST` request to the `/users/auth/login` endpoint and include the user details in [JSON](http://www.json.org/) format in the body of the request.

<Tip>
  **Tip**\
  To check a user’s credentials without logging out the user, call the `/users/auth/onetime` endpoint.
</Tip>

<h3 id="_request_body_5">
  Request body
</h3>

| Fields                                            | Description                                                                                                                                                      |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| email<br /><br />string<br /><br />Optional       | Cardholder email address.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                               |
| password<br /><br />string<br /><br />Optional    | Password to the cardholder’s user account on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                       |
| user\_token<br /><br />string<br /><br />Optional | Identifies the cardholder to log in.<br /><br />Send a `GET` request to `/users` to retrieve user tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars |

<h3 id="_sample_request_body_5">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "email": "jane.doe@company.com",
  "password": "P@ssw0rd",
  "user_token": "my_user_01"
}
```

<h3 id="_response_body_7">
  Response body
</h3>

| Fields                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| access\_token<br /><br />object<br /><br />Conditionally returned                                           | Contains a cardholder’s login access information.<br /><br />**Allowable Values:**<br /><br />Existing `access_token`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| access\_token.**application**<br /><br />object<br /><br />Conditionally returned                           | Contains client application information.<br /><br />**Allowable Values:**<br /><br />Existing `application` object                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| access\_token.application.**access\_code**<br /><br />string<br /><br />Conditionally returned              | Access code of the client application.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| access\_token.application.**assets\_url**<br /><br />string<br /><br />Conditionally returned               | URL of the client application assets.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| access\_token.application.**client\_api\_base\_url**<br /><br />string<br /><br />Conditionally returned    | Base URL of the client API.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| access\_token.application.**environment**<br /><br />string<br /><br />Conditionally returned               | Client application’s environment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| access\_token.application.**program**<br /><br />string<br /><br />Conditionally returned                   | Name of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| access\_token.application.**program\_short\_code**<br /><br />string<br /><br />Conditionally returned      | Short code of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| access\_token.application.**token**<br /><br />string<br /><br />Conditionally returned                     | Unique identifier of the `application` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| access\_token.**expires**<br /><br />datetime<br /><br />Returned                                           | Date and time when the access token expires.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| access\_token.**master\_roles**<br /><br />array of strings<br /><br />Conditionally returned               | Array of master roles.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `master_roles` strings                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| access\_token.**one\_time**<br /><br />boolean<br /><br />Conditionally returned                            | Indicates whether the access token is a single-use token.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| access\_token.**token**<br /><br />string<br /><br />Conditionally returned                                 | Unique identifier of the access token.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| access\_token.**token\_type**<br /><br />string<br /><br />Conditionally returned                           | Specifies the type of access token.<br /><br />**Allowable Values:**<br /><br />`single_use`, `user`, `admin`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| access\_token.**user\_token**<br /><br />string<br /><br />Conditionally returned                           | Unique identifier of the user resource.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| user<br /><br />object<br /><br />Conditionally returned                                                    | Contains information about a cardholder.<br /><br />**Allowable Values:**<br /><br />`account_holder_group_token`, `active`, `address1`, `address2`, `authentication`, `birth_date`, `birth_place`, `business_token`, `city`, `company`, `corporate_card_holder`, `country`, `created_time`, `email`, `first_name`, `gender`, `honorific`, `id_card_expiration_date`, `id_card_number`, `identifications`, `ip_address`, `last_modified_time`, `last_name`, `metadata`, `middle_name`, `nationality`, `notes`, `parent_token`, `passport_expiration_date`, `passport_number`, `password`, `phone`, `postal_code`, `ssn`, `state`, `status`, `title`, `token`, `uses_parent_account`, `zip` |
| user.**account\_holder\_group\_token**<br /><br />string<br /><br />Conditionally returned                  | Associates the specified account holder group with the cardholder.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| user.**active**<br /><br />boolean<br /><br />Conditionally returned                                        | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| user.**address1**<br /><br />string<br /><br />Conditionally returned                                       | Cardholder’s address.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| user.**address2**<br /><br />string<br /><br />Conditionally returned                                       | Additional address information for the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| user.**authentication**<br /><br />object<br /><br />Conditionally returned                                 | Contains the cardholder’s email address and password information.<br /><br />**Allowable Values:**<br /><br />`email_verified`, `email_verified_time`, `last_password_update_channel`, `last_password_update_time`                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| user.authentication.**email\_verified**<br /><br />boolean<br /><br />Conditionally returned                | Specifies whether the email address has been verified.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| user.authentication.**email\_verified\_time**<br /><br />datetime<br /><br />Conditionally returned         | Date and time when the email address was verified.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| user.authentication.**last\_password\_update\_channel**<br /><br />string<br /><br />Conditionally returned | Specifies the channel through which the password was last changed.<br /><br />**Allowable Values:**<br /><br />`USER_CHANGE`, `USER_RESET`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| user.authentication.**last\_password\_update\_time**<br /><br />datetime<br /><br />Conditionally returned  | Date and time when the password was last changed.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| user.**birth\_date**<br /><br />string<br /><br />Conditionally returned                                    | Cardholder’s date of birth.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| user.**birth\_place**<br /><br />string<br /><br />Conditionally returned                                   | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                                                                                           |
| user.**business\_token**<br /><br />string<br /><br />Conditionally returned                                | Unique identifier of the business resource.<br /><br />**Allowable Values:**<br /><br />Existing business resource token                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| user.**city**<br /><br />string<br /><br />Conditionally returned                                           | City where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| user.**company**<br /><br />string<br /><br />Conditionally returned                                        | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| user.**corporate\_card\_holder**<br /><br />boolean<br /><br />Conditionally returned                       | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| user.**country**<br /><br />string<br /><br />Conditionally returned                                        | Country where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| user.**created\_time**<br /><br />datetime<br /><br />Returned                                              | Date and time when the resource was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| user.**email**<br /><br />string<br /><br />Conditionally returned                                          | Valid email address of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| user.**first\_name**<br /><br />string<br /><br />Conditionally returned                                    | Cardholder’s first name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| user.**gender**<br /><br />string<br /><br />Conditionally returned                                         | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| user.**honorific**<br /><br />string<br /><br />Conditionally returned                                      | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| user.**id\_card\_expiration\_date**<br /><br />string<br /><br />Conditionally returned                     | Expiration date of the cardholder’s identification.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| user.**id\_card\_number**<br /><br />string<br /><br />Conditionally returned                               | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| user.**identifications**<br /><br />array of objects<br /><br />Conditionally returned                      | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| user.identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned            | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| user.identifications\[].**type**<br /><br />string<br /><br />Conditionally returned                        | Type of identification.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| user.identifications\[].**value**<br /><br />string<br /><br />Conditionally returned                       | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| user.**ip\_address**<br /><br />string<br /><br />Conditionally returned                                    | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| user.**last\_modified\_time**<br /><br />datetime<br /><br />Returned                                       | Date and time when the resource was last updated, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| user.**last\_name**<br /><br />string<br /><br />Conditionally returned                                     | Cardholder’s last name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| user.**metadata**<br /><br />object<br /><br />Conditionally returned                                       | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| user.**middle\_name**<br /><br />string<br /><br />Conditionally returned                                   | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| user.**nationality**<br /><br />string<br /><br />Conditionally returned                                    | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| user.**notes**<br /><br />string<br /><br />Conditionally returned                                          | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| user.**parent\_token**<br /><br />string<br /><br />Conditionally returned                                  | Unique identifier of the parent user or business resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| user.**passport\_expiration\_date**<br /><br />string<br /><br />Conditionally returned                     | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| user.**passport\_number**<br /><br />string<br /><br />Conditionally returned                               | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| user.**password**<br /><br />string<br /><br />Conditionally returned                                       | Password to the cardholder’s user account on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| user.**phone**<br /><br />string<br /><br />Conditionally returned                                          | Cardholder’s telephone number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| user.**postal\_code**<br /><br />string<br /><br />Conditionally returned                                   | Postal code of the cardholder’s address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| user.**ssn**<br /><br />string<br /><br />Conditionally returned                                            | Cardholder’s Social Security Number (SSN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| user.**state**<br /><br />string<br /><br />Conditionally returned                                          | State or province where the cardholder resides.<br /><br />**Allowable Values:**<br /><br />2 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| user.**status**<br /><br />string<br /><br />Conditionally returned                                         | Specifies the status of the cardholder on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />`UNVERIFIED`, `LIMITED`, `ACTIVE`, `SUSPENDED`, `CLOSED`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| user.**title**<br /><br />string<br /><br />Conditionally returned                                          | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| user.**token**<br /><br />string<br /><br />Conditionally returned                                          | Unique identifier of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| user.**uses\_parent\_account**<br /><br />boolean<br /><br />Conditionally returned                         | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| user.**zip**<br /><br />string<br /><br />Conditionally returned                                            | United States ZIP code of the cardholder’s address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

<h3 id="_sample_response_body_7">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "access_token": {
    "token": "e12b1f64-1444-4aa3-83d9-347800c68e94",
    "expires": "2027-03-01T21:02:04Z",
    "one_time": false
  },
  "user": {
    "token": "my_user_01",
    "active": true,
    "email": "jane.doe@company.com",
    "uses_parent_account": false,
    "password": "P@ssw0rd",
    "created_time": "2023-04-01T17:52:39Z",
    "last_modified_time": "2023-04-01T17:52:39Z"
  }
}
```

<h2 id="post_users_auth_logout">
  Log out user
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/logout`

{/* <EndpointCard
title="Logs out a user"
path="/users/auth/logout"
method="post"
/> */}

To log out a user, send a `POST` request to the `/users/auth/logout` endpoint.

A successful logout returns an empty response body with a response code of `204 No Content`.

<h2 id="post_users_auth_onetime">
  Create single-use token
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/onetime`

{/* <EndpointCard
title="Creates a one-time token"
path="/users/auth/onetime"
method="post"
/> */}

This endpoint returns a single-use access token. This type of token authorizes a single request to access API endpoints and data associated with a particular user. A single-use access token differs from a user access token (as returned by `POST` `/users/auth/login`) only in the number of times it can be used.

To return a single-use access token, send a `POST` request to the `/users/auth/onetime` endpoint. Provide one of these sets of input data:

* **Case #1** – Application token and user access token

* **Case #2** – Application token, admin access token, and user token

* **Case #3** – Application token, user’s Marqeta password, and user’s email address

In each case, provide the application token as the HTTP Basic Authentication username in the request header’s Authorization field. When applicable, provide the user access token or admin access token as the HTTP Basic Authentication password. When applicable, provide the user token or user’s Marqeta password and email address in [JSON](http://www.json.org/) format in the request body.

Before instantiating an embedded Marqeta widget, call this endpoint to obtain the single-use access token required as input (cases #1 and #2).

This endpoint is also useful when you want to check a user’s credentials before performing a sensitive operation without having to log out the user (case #3).

<Note>
  **Note**\
  Calling this endpoint and returning a single-use access token does not invalidate the user’s current user access token.
</Note>

<h3 id="_request_body_6">
  Request body
</h3>

| Fields                                            | Description                                                                                                                                                                                                                                                                    |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| email<br /><br />string<br /><br />Optional       | Cardholder email address.<br /><br />Required when neither the user token nor the admin access token is provided as the Basic Authentication password (case #3).<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                       |
| password<br /><br />string<br /><br />Optional    | Password to the cardholder’s user account on the Marqeta platform.<br /><br />Required when neither the user token nor the admin access token is provided as the Basic Authentication password (case #3).<br /><br />**Allowable Values:**<br /><br />1–255 chars              |
| user\_token<br /><br />string<br /><br />Optional | Identifies the cardholder whose data is accessed. Send a `GET` request to `/users` to retrieve cardholder tokens.<br /><br />Required when the Basic Authentication password is set to an admin access token (case #2).<br /><br />**Allowable Values:**<br /><br />1–36 chars |

<h3 id="_sample_request_body_6">
  Sample request body
</h3>

**Case 1:** Authorization: Basic `my_application_token:my_user_access_token`

```json JSON lines wrap theme={null}
{}
```

**Case 2:** Authorization: Basic `my_application_token:my_admin_access_token`

```json JSON lines wrap theme={null}
{
  "user_token": "my_user_token"
}
```

**Case 3:** Authorization: Basic `my_application_token`

```json JSON lines wrap theme={null}
{
  "email": "jane.doe@company.com",
  "password": "P@ssw0rd"
}
```

<h3 id="_response_body_8">
  Response body
</h3>

| Fields                                                                                     | Description                                                                                                                                        |
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| application<br /><br />object<br /><br />Conditionally returned                            | Contains client application information.<br /><br />**Allowable Values:**<br /><br />Existing `application` object                                 |
| application.**access\_code**<br /><br />string<br /><br />Conditionally returned           | Access code of the client application.<br /><br />**Allowable Values:**<br /><br />255 char max                                                    |
| application.**assets\_url**<br /><br />string<br /><br />Conditionally returned            | URL of the client application assets.<br /><br />**Allowable Values:**<br /><br />255 char max                                                     |
| application.**client\_api\_base\_url**<br /><br />string<br /><br />Conditionally returned | Base URL of the client API.<br /><br />**Allowable Values:**<br /><br />255 char max                                                               |
| application.**environment**<br /><br />string<br /><br />Conditionally returned            | Client application’s environment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                         |
| application.**program**<br /><br />string<br /><br />Conditionally returned                | Name of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                              |
| application.**program\_short\_code**<br /><br />string<br /><br />Conditionally returned   | Short code of the program on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />255 char max                                        |
| application.**token**<br /><br />string<br /><br />Conditionally returned                  | Unique identifier of the `application` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                             |
| expires<br /><br />datetime<br /><br />Returned                                            | Date and time when the access token expires.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ |
| master\_roles<br /><br />array of strings<br /><br />Conditionally returned                | Array of master roles.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `master_roles` strings                               |
| one\_time<br /><br />boolean<br /><br />Conditionally returned                             | Indicates whether the access token is a single-use token.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                              |
| token<br /><br />string<br /><br />Conditionally returned                                  | Unique identifier of the access token.<br /><br />**Allowable Values:**<br /><br />36 char max                                                     |
| token\_type<br /><br />string<br /><br />Conditionally returned                            | Specifies the type of access token.<br /><br />**Allowable Values:**<br /><br />`single_use`, `user`, `admin`                                      |
| user\_token<br /><br />string<br /><br />Conditionally returned                            | Unique identifier of the user resource.<br /><br />**Allowable Values:**<br /><br />36 char max                                                    |

<h3 id="_sample_response_body_8">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "697e0bde-ea52-44bd-8150-0e0f83e9625d",
  "expires": "2024-04-01T00:00:00Z",
  "one_time": true
}
```

<h2 id="post_users_auth_resetpassword">
  Request user password reset token
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/resetpassword`

{/* <EndpointCard
title="Generates a reset password email"
path="/users/auth/resetpassword"
method="post"
/> */}

Use this endpoint to generate a password reset token for a user. Send a `POST` request to the `/users/auth/resetpassword` endpoint and include the user’s email address in [JSON](http://www.json.org/) format in the body of the request. This request generates and sends an email message containing the `user_token` and `password_reset_token` to the user’s email address. You must customize the email message with a link that passes the `user_token` and `password_reset_token` to a web page where a subsequent request updates the password.

A successful request returns an empty response body with a response code of `204 No Content`.

<h3 id="_request_body_7">
  Request body
</h3>

| Fields                                      | Description                                                                       |
| ------------------------------------------- | --------------------------------------------------------------------------------- |
| email<br /><br />string<br /><br />Required | Cardholder email address.<br /><br />**Allowable Values:**<br /><br />1–255 chars |

<h3 id="_sample_request_body_7">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "email": "jane.doe@company.com"
}
```

<h2 id="post_users_auth_resetpassword_token">
  Reset user password
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/resetpassword/{token}`

{/* <EndpointCard
title="Resets a user password"
path="/users/auth/resetpassword/{token}"
method="post"
/> */}

To reset the user’s password, send a `POST` request to the `/users/auth/resetpassword/{token}` endpoint that includes a password reset token generated using the `POST /users/auth/resetpassword` operation. Include the `user_token` and `new_password` in [JSON](http://www.json.org/) format in the body of the request. Include the `password_reset_token` as a path parameter.

A successful password reset returns an empty response body with a response code of `204 No Content`.

<h3 id="_url_path_parameters_4">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                                                    |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Password reset token generated using the `POST /users/auth/resetpassword` operation.<br /><br />**Allowable Values:**<br /><br />Existing password reset token |

<h3 id="_request_body_8">
  Request body
</h3>

| Fields                                              | Description                                                                                                                    |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| new\_password<br /><br />string<br /><br />Required | New password to the cardholder’s user account on the Marqeta platform.<br /><br />**Allowable Values:**<br /><br />1–255 chars |
| user\_token<br /><br />string<br /><br />Required   | Unique identifier of the cardholder.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                    |

<h3 id="_sample_request_body_8">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "user_token": "my_user_01",
  "new_password": "newPassword123@"
}
```

<h2 id="post_users_auth_verifyemail">
  Request email verification token
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/verifyemail`

{/* <EndpointCard
title="Generates an email verification request"
path="/users/auth/verifyemail"
method="post"
/> */}

Send a `POST` request to the `/users/auth/verifyemail` endpoint to request an email verification token. No input parameters are required because this operation is performed in the context of an authenticated user.

This initial request generates and sends an email message containing the email verification token to the cardholder’s email address. This email message must include a link that passes the email verification token to a web page where a subsequent request verifies the email address.

A successful request returns an empty response body with a response code of `204 No Content`.

<h2 id="post_users_auth_verifyemail_token">
  Verify email address
</h2>

**Action:** `POST`\
**Endpoint:** `/users/auth/verifyemail/{token}`

{/* <EndpointCard
title="Verifies the email token"
path="/users/auth/verifyemail/{token}"
method="post"
/> */}

To verify a user’s email address, send a `POST` request to the `/users/auth/verifyemail/{email_verification_token}` endpoint that includes an `email_verification_token` generated using the `POST /users/auth/verifyemail` operation. Include the `email_verification_token` as a path parameter.

A successful email verification returns an empty response body with a response code of `204 No Content`.

<h3 id="_url_path_parameters_5">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                                                          |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Email verification token generated using the `POST /users/auth/verifyemail` operation.<br /><br />**Allowable Values:**<br /><br />Existing email verification token |

<h2 id="post_users_lookup">
  Search users
</h2>

**Action:** `POST`\
**Endpoint:** `/users/lookup`

{/* <EndpointCard
title="Lists all users"
path="/users/lookup"
method="post"
/> */}

To search for one or more users, send a `POST` request to the `/users/lookup` endpoint. Include in the message body any parameters by which you want to query. This endpoint supports [field filtering](/core-api/field-filtering/) and [pagination](/core-api/sorting-and-pagination/).

<h3 id="_url_query_parameters_4">
  URL query parameters
</h3>

| Fields                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional        | Number of user resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1-10<br /><br />**Default value:**<br />5                                                                                                                                                                                                                                                                                               |
| start\_index<br /><br />integer<br /><br />Optional | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer<br /><br />**Default value:**<br />0                                                                                                                                                                                                                                                                |
| search\_type<br /><br />string<br /><br />Optional  | Search type.<br /><br />**Allowable Values:**<br /><br />`query_then_fetch`, `dfs_query_then_fetch`                                                                                                                                                                                                                                                                                                                       |
| fields<br /><br />string<br /><br />Optional        | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank                                                                                                                                                                                                                           |
| sort\_by<br /><br />string<br /><br />Optional      | Field on which to sort. Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, or any field in the resource model<br /><br />**Default value:**<br />`-lastModifiedTime` |

<h3 id="_request_body_9">
  Request body
</h3>

| Fields                                            | Description                                                                                                                                                                                                                                                             |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| dda<br /><br />string<br /><br />Optional         | Performs a match on the specified deposit account number. Send a `GET` request to `/directdeposits/accounts/{user_token}` to retrieve the deposit account number for a specific cardholder.<br /><br />**Allowable Values:**<br /><br />Existing deposit account number |
| email<br /><br />string<br /><br />Optional       | Performs a non-case-sensitive, exact match on the cardholder’s `email` field.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                   |
| first\_name<br /><br />string<br /><br />Optional | Performs a non-case-sensitive match on the cardholder’s `first_name` field. Matching is partial on the beginning of the name. For example, a match on "Alex" returns both "Alex" and "Alexander".<br /><br />**Allowable Values:**<br /><br />40 char max               |
| last\_name<br /><br />string<br /><br />Optional  | Performs a non-case-sensitive match on the cardholder’s `last_name` field. Matching is partial on the beginning of the name. For example, a match on "Smith" returns both "Smith" and "Smithfield".<br /><br />**Allowable Values:**<br /><br />40 char max             |
| phone<br /><br />string<br /><br />Optional       | Performs a match on the cardholder’s `phone` field.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                            |
| ssn<br /><br />string<br /><br />Optional         | Performs a match on the cardholder’s identification number.<br /><br />**Allowable Values:**<br /><br />Either a complete identification number or the last four digits.<br /><br />Digits only, no delimiters.                                                         |

<h3 id="_sample_request_body_9">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "first_name": "Jane"
}
```

<h3 id="_response_body_9">
  Response body
</h3>

| Fields                                                                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                          | Number of resources to retrieve.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data<br /><br />array of objects<br /><br />Conditionally returned                                  | Array of user objects.<br /><br />Objects are returned as appropriate to your query.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more user objects                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| data\[].**account\_holder\_group\_token**<br /><br />string<br /><br />Conditionally returned       | Associates the specified account holder group with the cardholder.<br /><br />Send a `GET` request to `/accountholdergroups` to retrieve account holder group tokens.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                        |
| data\[].**active**<br /><br />boolean<br /><br />Conditionally returned                             | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**NOTE:** Do not set the value of the `user.active` field directly. Instead, use the `/usertransitions` endpoints to transition user resources between statuses. For more information on status changes, see <a href="/core-api/user-transitions/#post_usertransitions">Create User Transition</a>.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                             |
| data\[].**address1**<br /><br />string<br /><br />Conditionally returned                            | Cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only). Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**address2**<br /><br />string<br /><br />Conditionally returned                            | Additional address information for the cardholder.<br /><br />**NOTE:** Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[].**birth\_date**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s date of birth.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**birth\_place**<br /><br />string<br /><br />Conditionally returned                        | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                     |
| data\[].**city**<br /><br />string<br /><br />Conditionally returned                                | City where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**company**<br /><br />string<br /><br />Conditionally returned                             | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| data\[].**corporate\_card\_holder**<br /><br />boolean<br /><br />Conditionally returned            | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**country**<br /><br />string<br /><br />Conditionally returned                             | Country where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max<br /><br />**NOTE:**<a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">ISO alpha-2 country code</a> required for KYC verification. `US`, for example.                                                                                                                                                                                                                                            |
| data\[].**email**<br /><br />string<br /><br />Conditionally returned                               | Valid email address of the cardholder.<br /><br />This value must be unique among users.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide an email address, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                            |
| data\[].**first\_name**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s first name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**gender**<br /><br />string<br /><br />Conditionally returned                              | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| data\[].**honorific**<br /><br />string<br /><br />Conditionally returned                           | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**id\_card\_expiration\_date**<br /><br />string<br /><br />Conditionally returned          | Expiration date of the cardholder’s identification card.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[].**id\_card\_number**<br /><br />string<br /><br />Conditionally returned                    | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**identifications**<br /><br />array of objects<br /><br />Conditionally returned           | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[].identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| data\[].identifications\[].**type**<br /><br />string<br /><br />Returned                           | Type of identification.<br /><br />**NOTE:** Full Social Security Number (SSN) is required for US-based user cardholder KYC verification, using the `SSN` type. Full Employer Identification Number (EIN) is required for business cardholder KYC verification, using the `BUSINESS_TAX_ID` or `BUSINESS_NUMBER` type. For business directors, use one of SSN, TIN, SIN, or NIN. Nine digits only, no delimiters. `123456789`, for example.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE` |
| data\[].identifications\[].**value**<br /><br />string<br /><br />Conditionally returned            | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />**NOTE:** Digits only, do not use separators. For example: 123456789                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| data\[].**ip\_address**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**last\_name**<br /><br />string<br /><br />Conditionally returned                          | Cardholder’s last name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[].**metadata**<br /><br />object<br /><br />Conditionally returned                            | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**middle\_name**<br /><br />string<br /><br />Conditionally returned                        | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**nationality**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data\[].**notes**<br /><br />string<br /><br />Conditionally returned                               | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**parent\_token**<br /><br />string<br /><br />Conditionally returned                       | Unique identifier of the parent user or business resource. Send a `GET` request to `/users` to retrieve user resource tokens or to `/businesses` to retrieve business resource tokens.<br /><br />Required if `uses_parent_account = true`. This user or business is configured as the parent of the current user.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                            |
| data\[].**passport\_expiration\_date**<br /><br />string<br /><br />Conditionally returned          | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| data\[].**passport\_number**<br /><br />string<br /><br />Conditionally returned                    | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**password**<br /><br />string<br /><br />Conditionally returned                            | Password to the cardholder’s user account on the Marqeta platform.<br /><br />- Must contain at least one numeral<br /><br />- Must contain at least one lowercase letter<br /><br />- Must contain at least one uppercase letter<br /><br />- Must contain at least one of these symbols:<br />`@``#``$``%``!``^``&``*``(``)`<br />`\\``_``+``~``-``=``[``]``\{``}`<br />`,``;``:``'``"``.``/``<``>``?`<code>\`</code><br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                     |
| data\[].**phone**<br /><br />string<br /><br />Conditionally returned                               | Telephone number of the cardholder (including area code), prepended by the `+` symbol and the 1- to 3-digit country calling code. Do not include hyphens, spaces, or parentheses.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide a phone number, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />Format: +15105551212 or +35552260859                                                                                                                                    |
| data\[].**postal\_code**<br /><br />string<br /><br />Conditionally returned                        | Postal code of the cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**ssn**<br /><br />string<br /><br />Conditionally returned                                 | Cardholder’s Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters. `123456789`, for example.                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**state**<br /><br />string<br /><br />Conditionally returned                               | State or province where the cardholder resides.<br /><br />**NOTE:**<a href="/core-api/kyc-verification/#_valid_state_provincial_territorial_and_federal_abbreviations">Valid two-character abbreviation</a> required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />32 char max                                                                                                                                                                                                                                                                                      |
| data\[].**title**<br /><br />string<br /><br />Conditionally returned                               | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**NOTE:** Do not use this field for honorific titles such as Mr., Mrs., Miss, Ms., Mx., Sir, or Dame. Instead, add these to the `honorific` field.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                              |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                               | Unique identifier of the cardholder. If you do not include a token, the system generates one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                 |
| data\[].**uses\_parent\_account**<br /><br />boolean<br /><br />Conditionally returned              | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />If set to `true`, you must also include a `parent_token` in the request. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                      |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                     | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                                                                                                               |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                       | A value of `true` indicates that more unreturned resources exist. A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                 |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                   | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                                                                                                               |

<h3 id="_sample_response_body_9">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "count": 1,
  "start_index": 0,
  "end_index": 1,
  "is_more": false,
  "data": [
    {
      "token": "my_user_01",
      "active": true,
      "gender": "F",
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@company.com",
      "address1": "1234 Grove Street",
      "city": "Berkeley",
      "state": "CA",
      "postal_code": "94702",
      "country": "USA",
      "phone": "15105551212",
      "uses_parent_account": false,
      "password": "P@ssw0rd",
      "created_time": "2023-03-16T20:26:28Z",
      "last_modified_time": "2023-03-16T20:26:29Z",
      "metadata": {},
      "account_holder_group_token": "DEFAULT_AHG",
      "status": "ACTIVE",
      "identifications": [
        {
          "type": "DRIVERS_LICENSE",
          "value": "12345"
        }
      ],
      "birth_date": "1991-01-01"
    }
  ]
}
```

<h2 id="get_users_parenttoken_children">
  List user child accounts
</h2>

**Action:** `GET`\
**Endpoint:** `/users/{parent_token}/children`

{/* <EndpointCard
title="Lists all children of a parent user"
path="/users/{parent\_token}/children"
method="get"
/> */}

To retrieve users who are children of a parent user or business, send a `GET` request to the `/users/{parent_token}/children` endpoint. Include the parent’s user or business token as a URL path parameter.

The `business_token` field is conditionally returned in the response (it cannot be set through the API). You can use this field in conjunction with the `parent_token` field to determine whether the user has a parent or grandparent that is a business:

| parent\_token                              | business\_token                          | Description                                                  |
| ------------------------------------------ | ---------------------------------------- | ------------------------------------------------------------ |
| Not populated                              | Not populated                            | User does not have a parent.                                 |
| Populated                                  | Not populated                            | User’s parent is a user.                                     |
| Populated; matches `business_token`        | Populated; matches `parent_token`        | User’s parent is a business.                                 |
| Populated; does not match `business_token` | Populated; does not match `parent_token` | User’s parent is a user and their grandparent is a business. |

This endpoint supports [field filtering](/core-api/field-filtering/).

<h3 id="_url_path_parameters_6">
  URL path parameters
</h3>

| Fields                                              | Description                                                                                                                          |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| parent\_token<br /><br />string<br /><br />Required | Unique identifier of the parent account holder.<br /><br />**Allowable Values:**<br /><br />Existing user or business resource token |

<h3 id="_url_query_parameters_5">
  URL query parameters
</h3>

| Fields                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional        | Number of user resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1-10<br /><br />**Default value:**<br />5                                                                                                                                                                                                                                                                                               |
| start\_index<br /><br />integer<br /><br />Optional | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer<br /><br />**Default value:**<br />0                                                                                                                                                                                                                                                                |
| fields<br /><br />string<br /><br />Optional        | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank                                                                                                                                                                                                                           |
| sort\_by<br /><br />string<br /><br />Optional      | Field on which to sort. Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, or any field in the resource model<br /><br />**Default value:**<br />`-lastModifiedTime` |

<h3 id="_response_body_10">
  Response body
</h3>

| Fields                                                                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                          | Number of resources to retrieve.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data<br /><br />array of objects<br /><br />Conditionally returned                                  | Array of user objects.<br /><br />Objects are returned as appropriate to your query.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more user objects                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| data\[].**account\_holder\_group\_token**<br /><br />string<br /><br />Conditionally returned       | Associates the specified account holder group with the cardholder.<br /><br />Send a `GET` request to `/accountholdergroups` to retrieve account holder group tokens.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                        |
| data\[].**active**<br /><br />boolean<br /><br />Conditionally returned                             | Specifies if the cardholder is in the `ACTIVE` state on the Marqeta platform.<br /><br />**NOTE:** Do not set the value of the `user.active` field directly. Instead, use the `/usertransitions` endpoints to transition user resources between statuses. For more information on status changes, see <a href="/core-api/user-transitions/#post_usertransitions">Create User Transition</a>.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                             |
| data\[].**address1**<br /><br />string<br /><br />Conditionally returned                            | Cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only). Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**address2**<br /><br />string<br /><br />Conditionally returned                            | Additional address information for the cardholder.<br /><br />**NOTE:** Cannot perform KYC if set to a PO Box.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[].**birth\_date**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s date of birth.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**birth\_place**<br /><br />string<br /><br />Conditionally returned                        | Country where the cardholder was born.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />ISO 3166 two-character country codes. For example, the country code for the United States is `US`.<br /><br />The ISO maintains the <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">full list of ISO-3166 country codes</a>.                                                                                                                                                                                                                                     |
| data\[].**city**<br /><br />string<br /><br />Conditionally returned                                | City where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**company**<br /><br />string<br /><br />Conditionally returned                             | Company name.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| data\[].**corporate\_card\_holder**<br /><br />boolean<br /><br />Conditionally returned            | Specifies if the cardholder holds a corporate card.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[].**country**<br /><br />string<br /><br />Conditionally returned                             | Country where the cardholder resides.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max<br /><br />**NOTE:**<a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank" rel="noopener">ISO alpha-2 country code</a> required for KYC verification. `US`, for example.                                                                                                                                                                                                                                            |
| data\[].**email**<br /><br />string<br /><br />Conditionally returned                               | Valid email address of the cardholder.<br /><br />This value must be unique among users.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide an email address, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                            |
| data\[].**first\_name**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s first name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**gender**<br /><br />string<br /><br />Conditionally returned                              | Gender of the cardholder.<br /><br />**Allowable Values:**<br /><br />`F`, `M`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| data\[].**honorific**<br /><br />string<br /><br />Conditionally returned                           | Cardholder’s title or prefix: Dr., Miss, Mr., Ms., and so on.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**id\_card\_expiration\_date**<br /><br />string<br /><br />Conditionally returned          | Expiration date of the cardholder’s identification card.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[].**id\_card\_number**<br /><br />string<br /><br />Conditionally returned                    | Cardholder’s identification card number.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**identifications**<br /><br />array of objects<br /><br />Conditionally returned           | One or more objects containing identifications associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more `identifications` objects                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[].identifications\[].**expiration\_date**<br /><br />string<br /><br />Conditionally returned | Expiration date of the identification, if applicable.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| data\[].identifications\[].**type**<br /><br />string<br /><br />Returned                           | Type of identification.<br /><br />**NOTE:** Full Social Security Number (SSN) is required for US-based user cardholder KYC verification, using the `SSN` type. Full Employer Identification Number (EIN) is required for business cardholder KYC verification, using the `BUSINESS_TAX_ID` or `BUSINESS_NUMBER` type. For business directors, use one of SSN, TIN, SIN, or NIN. Nine digits only, no delimiters. `123456789`, for example.<br /><br />**Allowable Values:**<br /><br />`SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE` |
| data\[].identifications\[].**value**<br /><br />string<br /><br />Conditionally returned            | Number associated with the identification.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />**NOTE:** Digits only, do not use separators. For example: 123456789                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| data\[].**ip\_address**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s IP address.<br /><br />**Allowable Values:**<br /><br />39 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**last\_name**<br /><br />string<br /><br />Conditionally returned                          | Cardholder’s last name.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[].**metadata**<br /><br />object<br /><br />Conditionally returned                            | Associates any additional metadata you provide with the cardholder.<br /><br />**Allowable Values:**<br /><br />You can define the names and values of up to 20 fields in the format `"my_name_1": "my_value_1"`.                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**middle\_name**<br /><br />string<br /><br />Conditionally returned                        | Cardholder’s middle name.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**nationality**<br /><br />string<br /><br />Conditionally returned                         | Cardholder’s nationality.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data\[].**notes**<br /><br />string<br /><br />Conditionally returned                               | Any additional information pertaining to the cardholder.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[].**parent\_token**<br /><br />string<br /><br />Conditionally returned                       | Unique identifier of the parent user or business resource. Send a `GET` request to `/users` to retrieve user resource tokens or to `/businesses` to retrieve business resource tokens.<br /><br />Required if `uses_parent_account = true`. This user or business is configured as the parent of the current user.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                            |
| data\[].**passport\_expiration\_date**<br /><br />string<br /><br />Conditionally returned          | Expiration date of the cardholder’s passport.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| data\[].**passport\_number**<br /><br />string<br /><br />Conditionally returned                    | Cardholder’s passport number.<br /><br />**Allowable Values:**<br /><br />40 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**password**<br /><br />string<br /><br />Conditionally returned                            | Password to the cardholder’s user account on the Marqeta platform.<br /><br />- Must contain at least one numeral<br /><br />- Must contain at least one lowercase letter<br /><br />- Must contain at least one uppercase letter<br /><br />- Must contain at least one of these symbols:<br />`@``#``$``%``!``^``&``*``(``)`<br />`\\``_``+``~``-``=``[``]``\{``}`<br />`,``;``:``'``"``.``/``<``>``?`<code>\`</code><br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                     |
| data\[].**phone**<br /><br />string<br /><br />Conditionally returned                               | Telephone number of the cardholder (including area code), prepended by the `+` symbol and the 1- to 3-digit country calling code. Do not include hyphens, spaces, or parentheses.<br /><br />**NOTE:** Required for KYC verification by certain banks (US-based cardholders only). To determine if you must provide a phone number, contact your Marqeta representative.<br /><br />**Allowable Values:**<br /><br />255 char max<br /><br />Format: +15105551212 or +35552260859                                                                                                                                    |
| data\[].**postal\_code**<br /><br />string<br /><br />Conditionally returned                        | Postal code of the cardholder’s address.<br /><br />**NOTE:** Required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[].**ssn**<br /><br />string<br /><br />Conditionally returned                                 | Cardholder’s Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />Nine digits only, no delimiters. `123456789`, for example.                                                                                                                                                                                                                                                                                                                                                                                                                |
| data\[].**state**<br /><br />string<br /><br />Conditionally returned                               | State or province where the cardholder resides.<br /><br />**NOTE:**<a href="/core-api/kyc-verification/#_valid_state_provincial_territorial_and_federal_abbreviations">Valid two-character abbreviation</a> required for KYC verification (US-based cardholders only).<br /><br />**Allowable Values:**<br /><br />32 char max                                                                                                                                                                                                                                                                                      |
| data\[].**title**<br /><br />string<br /><br />Conditionally returned                               | Professional title of the cardholder, such as Chief Comptroller.<br /><br />**NOTE:** Do not use this field for honorific titles such as Mr., Mrs., Miss, Ms., Mx., Sir, or Dame. Instead, add these to the `honorific` field.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                              |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                               | Unique identifier of the cardholder. If you do not include a token, the system generates one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                 |
| data\[].**uses\_parent\_account**<br /><br />boolean<br /><br />Conditionally returned              | Indicates whether the child shares balances with the parent (`true`), or the child’s balances are independent of the parent (`false`).<br /><br />If set to `true`, you must also include a `parent_token` in the request. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                                                                                                                                                      |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                     | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                                                                                                               |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                       | A value of `true` indicates that more unreturned resources exist. A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                                                                                                                                                                                                 |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                   | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                                                                                                                                                                                                                                                               |

<h3 id="_sample_response_body_10">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "count": 1,
  "start_index": 0,
  "end_index": 0,
  "is_more": false,
  "data": [
    {
      "token": "child_of_parent",
      "active": true,
      "gender": "M",
      "first_name": "John",
      "last_name": "Smith",
      "email": "john_smith@company.com",
      "address1": "123 Main Street",
      "city": "Oakland",
      "state": "CA",
      "postal_code": "94601",
      "country": "USA",
      "phone": "15101111111",
      "parent_token": "my_user_01",
      "uses_parent_account": true,
      "password": "P@55word",
      "created_time": "2022-08-16T19:46:58Z",
      "last_modified_time": "2022-08-16T19:46:58Z",
      "metadata": {},
      "account_holder_group_token": "DEFAULT_AHG",
      "status": "ACTIVE",
      "identifications": [
        {
          "type": "SSN",
          "value": "7777",
          "birth_date": "1986-04-01"
        }
      ]
    }
  ]
}
```

<h2 id="get_users_token_ssn">
  Retrieve user identification number
</h2>

**Action:** `GET`\
**Endpoint:** `/users/{token}/ssn`

{/* <EndpointCard
title="Returns a specific user's SSN"
path="/users/{token}/ssn"
method="get"
/> */}

To retrieve the government-issued identification number for a user, send a `GET` request to the `/users/{token}/ssn` endpoint. Include the `token` path parameter to specify the user whose identification number (SSN, ITIN, TIN, NIN, SIN) you wish to return. You can indicate whether to return the full number or the last four digits only.

<h3 id="_url_path_parameters_7">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                      |
| ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the user resource.<br /><br />**Allowable Values:**<br /><br />Existing user resource token |

<h3 id="_url_query_parameters_6">
  URL query parameters
</h3>

| Fields                                           | Description                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| full\_ssn<br /><br />boolean<br /><br />Optional | To return the full identification number, set to `true`. To return only the last four digits, set to `false`.<br /><br />If the identifications array contains only the last four digits of the identification number, the `/users/{token}/ssn` endpoint will return only the last four digits, regardless of the `full_ssn` parameter.<br /><br />**Allowable Values:**<br /><br />4 or 9 char |

<h3 id="_response_body_11">
  Response body
</h3>

| Fields                                                  | Description                                                                                                                                              |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| nin<br /><br />string<br /><br />Conditionally returned | National Identification Number (NIN).<br /><br />**Allowable Values:**<br /><br />255 char max                                                           |
| sin<br /><br />string<br /><br />Conditionally returned | Social Insurance Number (SIN).<br /><br />**Allowable Values:**<br /><br />255 char max                                                                  |
| ssn<br /><br />string<br /><br />Conditionally returned | United States Social Security Number (SSN) or Individual Taxpayer Identification Number (ITIN).<br /><br />**Allowable Values:**<br /><br />255 char max |
| tin<br /><br />string<br /><br />Conditionally returned | Taxpayer Identification Number (TIN).<br /><br />**Allowable Values:**<br /><br />255 char max                                                           |

<h3 id="_sample_response_body_11">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "ssn": "5555"
}
```


## Related topics

- [Users](/docs/diva-api/users.md)
- [User Transitions](/docs/core-api/user-transitions.md)
- [User Counts](/docs/diva-api/user-counts.md)
