---
title: "Generate Access Token"
method: POST
path: "/v2/oauth2/token"
---

# Generate Access Token

`POST /v2/oauth2/token`

Use this endpoint to generate an access_token using your OAuth 2.0 code. Learn more about OAuth 2.0 <a href="https://develop.yotpo.com/docs/getting-started" target="_blank">here</a>.

**Have you registered your app yet?**

Before you start building your app on top of Yotpo’s App Developer API, you first need to register it with us. If you haven’t done so yet, refer to the steps in our <a href="https://develop.yotpo.com/docs/welcome" target="_blank">Welcome Guide</a>.

## Request body

- object
  - `grant_type` string, required — The `grant_type` for this request is `authorization_code`
  - `client_id` string, required — The `Application ID` shared with you upon app registration
  - `client_secret` string, required — The `Application Secret` shared with you upon app registration
  - `redirect_uri` string, required — The redirect/callback URI provided upon app creation. Your token will be sent there
  - `code` string, required — The OAuth 2.0 code granted via the installation link

## Response `200`

200

## Other responses

- `400` — 400

---

[API](https://skmtc.net/yotpo/apis/app-developer-api.md) · [All operations](https://skmtc.net/yotpo/apis/app-developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yotpo/app-developer-api/revisions/4effe7674a3b/schema)
