# My Customer Profile

**The My Customer Profile API creates and provides access to a Customer profile scoped to a specific [Customer](/api/projects/customers.md).**

> The API requires an access token from the [password flow](/api/authorization.md#password-flow) or [anonymous session flow](/api/authorization.md#tokens-for-anonymous-sessions).

The My Customer Profile API can also be used to [create (sign up) a Customer](/api/projects/me-profile.md#create-sign-up-my-customer) from an [anonymous session](/api/authorization.md#tokens-for-anonymous-sessions), or [merge (sign in)](/api/projects/me-profile.md#authenticate-sign-in-my-customer) an anonymous session to an existing account.

The API intentionally provides access to a limited subset of fields on [Customer](/api/projects/customers.md) to provide extra security in scenarios when the client application must communicate directly with the API on behalf of a customer, such as commerce in a mobile application. If you need to modify a field available on the [Customer](/api/projects/customers.md) resource, do it from a trusted, server-side application.

> Customer Group, customer number, external ID, and `ExternalAuth` [authentication mode](/api/projects/customers.md#authenticationmode) cannot be set with this API.

## Get My Customer

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me:GET).

## Get My Customer in Store&#x20;

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me:GET).

## Create (sign up) My Customer

> When used with an access token obtained by an [anonymous session flow](/api/authorization.md#tokens-for-anonymous-sessions), all Orders and Carts belonging to the `anonymousId` are assigned to the newly created Customer.

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me/signup:POST).

## Create (sign up) My Customer in Store&#x20;

> When used with an access token obtained by an [anonymous session flow](/api/authorization.md#tokens-for-anonymous-sessions), all Orders and Carts belonging to the `anonymousId` are assigned to the newly created Customer.

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/signup:POST).

## Authenticate (sign in) My Customer

> When used with an access token obtained by an [anonymous session flow](/api/authorization.md#tokens-for-anonymous-sessions), all Orders and Carts belonging to the `anonymousId` are assigned to the newly created Customer.

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me/login:POST).

## Authenticate (sign in) My Customer in Store&#x20;

> When used with an access token obtained by an [anonymous session flow](/api/authorization.md#tokens-for-anonymous-sessions), all Orders and Carts belonging to the `anonymousId` are assigned to the newly created Customer.

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/login:POST).

## Update My Customer

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me:POST).

## Update My Customer in Store&#x20;

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me:POST).

## Update actions

#### Change Email

[type definition](/search.md?urn=ctp:api:type:MyCustomerChangeEmailAction).

#### Set First Name

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetFirstNameAction).

#### Set Last Name

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetLastNameAction).

#### Set Middle Name

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetMiddleNameAction).

#### Set Title

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetTitleAction).

#### Set Salutation

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetSalutationAction).

#### Add Address

[type definition](/search.md?urn=ctp:api:type:MyCustomerAddAddressAction).

#### Change Address

[type definition](/search.md?urn=ctp:api:type:MyCustomerChangeAddressAction).

#### Remove Address

[type definition](/search.md?urn=ctp:api:type:MyCustomerRemoveAddressAction).

#### Set Default Shipping Address

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetDefaultShippingAddressAction).

#### Add Shipping Address ID

[type definition](/search.md?urn=ctp:api:type:MyCustomerAddShippingAddressIdAction).

#### Remove Shipping Address ID

[type definition](/search.md?urn=ctp:api:type:MyCustomerRemoveShippingAddressIdAction).

#### Set Default Billing Address

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetDefaultBillingAddressAction).

#### Add Billing Address ID

[type definition](/search.md?urn=ctp:api:type:MyCustomerAddBillingAddressIdAction).

#### Remove Billing Address ID

[type definition](/search.md?urn=ctp:api:type:MyCustomerRemoveBillingAddressIdAction).

#### Set Company Name

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetCompanyNameAction).

#### Set Date of Birth

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetDateOfBirthAction).

#### Set Vat ID

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetVatIdAction).

#### Set Custom Type

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetCustomTypeAction).

#### Set CustomField

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetCustomFieldAction).

#### Set Locale

[type definition](/search.md?urn=ctp:api:type:MyCustomerSetLocaleAction).

## Change password of My Customer

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me/password:POST).

## Change password of My Customer in Store&#x20;

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/password:POST).

## Reset password of My Customer

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me/password/reset:POST).

## Reset password of My Customer in Store&#x20;

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/password/reset:POST).

## Verify email of My Customer

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me/email/confirm:POST).

## Verify email of My Customer in Store&#x20;

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/email/confirm:POST).

## Delete My Customer

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/me:DELETE).

## Delete My Customer in Store&#x20;

[endpoint definition](/search.md?urn=ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me:DELETE).

## Representations

Representations are JSON objects submitted or received as payload to API requests or responses. Responses are similar to the responses returned on the [Customers](/api/projects/customers.md) API, but requests may differ.

#### MyCustomerDraft

[type definition](/search.md?urn=ctp:api:type:MyCustomerDraft).

#### MyCustomerSignin

[type definition](/search.md?urn=ctp:api:type:MyCustomerSignin).

#### MyCustomerChangePassword

[type definition](/search.md?urn=ctp:api:type:MyCustomerChangePassword).

#### MyCustomerResetPassword

[type definition](/search.md?urn=ctp:api:type:MyCustomerResetPassword).

#### MyCustomerEmailVerify

[type definition](/search.md?urn=ctp:api:type:MyCustomerEmailVerify).

## Related pages

- [Area overview page with navigation](/api.md)
- [Previous page: Overview](/api/me-endpoints-overview.md)
- [Next page: My Business Units](/api/projects/me-business-units.md)
- [Search documentation and API specs](/search.md)