---
title: "Create an access token for Checkout SDK features"
method: POST
path: "/v2.01/oauth/token/embedded/checkout"
tags: ["Authentication"]
---

# Create an access token for Checkout SDK features

`POST /v2.01/oauth/token/embedded/checkout`

Generate an access token to initialize the [Checkout SDK](/sdks/checkout/web) to offer PayPal One-Click.

The access token returned by this endpoint is only required for the following features using Checkout SDK:
- [PayPal One-Click](/sdks/checkout/web#configuring-paypal-one-click-payments)

You do not need an access token if using Checkout SDK to service other payment methods or PayPal without PayPal One-Click. 

A single access token can be used to service the experience to one user and has a lifespan of 15 minutes. You need to provide the `UserId` of the Natural User or Legal User who will use the Checkout session to make the payment.

## Headers

- `Authorization` string, required

## Request body

- CreateAnAccessTokenForCheckoutSdkFeaturesRequest
  - `clientId` string, required — Your Mangopay Client ID.
  - `claims` CreateAnAccessTokenForCheckoutSdkFeaturesRequestClaims, required — Claims for the access token request.
    - `userId` string, required — Unique identifier of the Natural User or Legal User using the Checkout SDK session to make a payment.

## Response `200`

Success

- CheckoutAccessTokenResponse
  - `access_token` string — The access token value to use as the `clientToken` value when initializing Checkout SDK.
  - `token_type` string — **Returned values:** `Bearer` The type of the token.
  - `expires_in` integer — The number of seconds until the token expires.
  - `scope` string — **Returned values:** `checkout.session:r checkout.session:w` The API permission scopes of the token, in this case to read and write a Checkout session.

---

[API](https://skmtc.dev/mangopay/apis/api-reference.md) · [All operations](https://skmtc.dev/mangopay/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mangopay/api-reference/revisions/fafbd0c69654/schema)
