---
updatedAt: 2026-08-24T20:58:49.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Authenticate and make your first call

```shell cURL
curl -X POST "https://api.yotpo.com/core/v3/stores/YOUR_STORE_ID/access_tokens" \
  -H "Content-Type: application/json" \
  -d '{
    "secret": "YOUR_SECRET"
  }'

# Response:
# { "access_token": "YOUR_ACCESS_TOKEN" }

curl "https://api.yotpo.com/core/v3/stores/YOUR_STORE_ID/products" \
  -H "X-Yotpo-Token: YOUR_ACCESS_TOKEN"
```

```json Response Example
{
  "access_token": "YOUR_ACCESS_TOKEN"
}
```

# Request an access token

<!-- shell@1-5 -->

Every Core API call is authenticated with an access token. Send your store's secret to the access token endpoint. Find your Store ID and Secret in the Yotpo admin — see [App key vs. Store ID](https://docs.yotpo.com/docs/store-id-app-key). Note: your Store ID is part of the URL path.

# Copy the token from the response

<!-- shell@6-8 -->

The response contains a single `access_token`. Store it securely — you'll send it with every request. If you get a 401 with "The Store ID or Secret you have provided is invalid", recheck both values.

# Make your first authenticated call

<!-- shell@9-11 -->

Pass the token in the `X-Yotpo-Token` header on any endpoint. Here we list the store's products — an empty `products` array is a perfectly good first success.