---
title: "Verify customer bearer token"
method: POST
path: "/verify-tokens"
tags: ["Customer"]
---

# Verify customer bearer token

`POST /verify-tokens`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/verify-tokens`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/verify-tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Validates the customer bearer token from the Authorization header and returns the customer details if valid.

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object

## Response `201`

Token is valid

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
