---
title: customerActivateByUrl - Storefront API
description: >-
  Activates a customer account using the full activation URL from the
  [`customerCreate`](/docs/api/storefront/2026-10/mutations/customerCreate)

  mutation. This approach simplifies activation by accepting the complete URL

  directly, eliminating the need to parse it for the customer ID and activation

  token. Returns a
  [`CustomerAccessToken`](/docs/api/storefront/2026-10/objects/CustomerAccessToken)

  for authenticating subsequent requests.


  > Caution:

  > Store the returned access token securely. It grants access to the customer's
  account data.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/mutations/customerActivateByUrl
  md: >-
    https://shopify.dev/docs/api/storefront/latest/mutations/customerActivateByUrl.md
api_name: storefront
api_type: graphql
type: mutation
---

# customer​Activate​By​Url

mutation

Requires `unauthenticated_write_customers` access scope.

Activates a customer account using the full activation URL from the [`customerCreate`](https://shopify.dev/docs/api/storefront/2026-10/mutations/customerCreate) mutation. This approach simplifies activation by accepting the complete URL directly, eliminating the need to parse it for the customer ID and activation token. Returns a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/2026-10/objects/CustomerAccessToken) for authenticating subsequent requests.

***

**Caution:** Store the returned access token securely. It grants access to the customer\&#39;s account data.

***

## Arguments

* activation​Url

  [URL!](https://shopify.dev/docs/api/storefront/latest/scalars/URL)

  required

  The customer activation URL.

* password

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  required

  A new password set during activation.

***

## Customer​Activate​By​Url​Payload returns

* customer

  [Customer](https://shopify.dev/docs/api/storefront/latest/objects/Customer)

  The customer that was activated.

* customer​Access​Token

  [Customer​Access​Token](https://shopify.dev/docs/api/storefront/latest/objects/CustomerAccessToken)

  A new customer access token for the customer.

* customer​User​Errors

  [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CustomerUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### customerActivateByUrl reference
