---
updatedAt: 2026-10-29T08:22:22.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Generate Access Token

This endpoint uses your Yotpo Store ID (app_key) and API secret to generate the API access token necessary to authenticate most of Yotpo's API calls. Learn how to find your store ID (app_key) and API secret in <a href="https://support.yotpo.com/docs/finding-your-yotpo-app-key-and-secret-key" target="_blank">Finding your Yotpo app key and API secret</a>.

<Callout icon="📘" theme="info">
  ### Please note:

  Once you've generated your token, remember to store it so you can reuse it for future API calls. If your token expires and you get a 401 error code, you'll need to generate a new token.
</Callout>

<Callout icon="🔁" theme="default">
  ### One token for V3 and V1

  This token also authenticates Reviews V1 and Core V1 calls: send it in the `X-Yotpo-Token` header. The older V1 token endpoint, `POST https://api.yotpo.com/oauth/token` with `client_id`, `client_secret` and `grant_type: client_credentials`, returns the same token, so existing V1 integrations keep working. See [About authentication](https://docs.yotpo.com/reference/authentication).
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yotpo API V3",
    "description": "Yotpo API V3 endpoints on api.yotpo.com. Webhook events are defined separately, in webhooks.json.",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Authentication](https://core-api.yotpo.com/reference/yotpo-authentication) to learn how to generate your access token."
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/core/v3/stores/{store_id}/access_tokens": {
      "post": {
        "summary": "Generate Access Token",
        "description": "This endpoint uses your Yotpo Store ID (app_key) and API secret to generate the API access token necessary to authenticate most of Yotpo's API calls. Learn how to find your store ID (app_key) and API secret in <a href=\"https://support.yotpo.com/docs/finding-your-yotpo-app-key-and-secret-key\" target=\"_blank\">Finding your Yotpo app key and API secret</a>.",
        "operationId": "yotpo-authentication",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "secret"
                ],
                "properties": {
                  "secret": {
                    "type": "string",
                    "description": "Also referred to as API secret"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "secret": "YOUR_SECRET"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"access_token\": \"YOUR_ACCESS_TOKEN\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string",
                      "example": "YOUR_ACCESS_TOKEN",
                      "description": "The access token. Send it in the `X-Yotpo-Token` header on every other Core API request. Generate a new one when a request returns 401."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The secret is missing or doesn't match the store ID.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": [{\n    \"message\": \"The Store ID or Secret you have provided is invalid.\"\n  }]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "The Store ID or Secret you have provided is invalid.",
                            "description": "Says that the store ID or secret is invalid."
                          }
                        }
                      },
                      "description": "The authentication errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The store ID in the path doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "description": "HTTP status code.",
                      "example": 404
                    },
                    "error": {
                      "type": "string",
                      "description": "Error name.",
                      "example": "Not Found"
                    }
                  }
                },
                "examples": {
                  "Unknown store": {
                    "value": "{\n  \"status\": 404,\n  \"error\": \"Not Found\"\n}"
                  }
                }
              }
            }
          }
        },
        "x-internal": false,
        "security": [],
        "parameters": [
          {
            "in": "path",
            "name": "store_id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Your store ID (app key)"
          }
        ]
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [Welcome](https://docs.yotpo.com/reference/welcome.md)
* [About authentication](https://docs.yotpo.com/reference/authentication.md)