---
title: "customerAccessTokenCreate"
description: >
  Creates a customer access token. The customer access token is required to modify the customer object in any way.
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-access-token-create'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-access-token-create.md'
---
# customerAccessTokenCreate

Creates a customer access token. The customer access token is required to modify the customer object in any way.

- **Required Scopes:** `unauthenticated_write_customer_information`
- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Required Permissions

* `unauthenticated_write_customer_information`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `input`

  [CustomerAccessTokenCreateInput](https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-access-token-create-input.md)

  The fields used to create a customer access token.

## Returns

* `customerAccessToken`

  [CustomerAccessToken](https://developer.shopline.com/docs/storefront-api/customers/objects/customer-access-token.md)

  customer access token

* `customerUserErrors`

  [[CustomerUserError]](https://developer.shopline.com/docs/storefront-api/customers/objects/customer-user-error.md)

  Error message

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

