Authentication
Direct API requests are authenticated with an API key or, for applications acting on behalf of a Wearo user, an OAuth access token. An API key must always be sent as a header — never as a query parameter (a request without credentials returns401 Authentication required).
Endpoint
Headers
The endpoint also accepts a bridge token (
X-Wearo-Bridge-Token) issued to the Wearo Shopify app. It is reserved for that integration; merchants calling the Direct API use X-API-Key.Example
Authentication errors
OAuth access tokens
Applications that act for a Wearo user, such as the MCP server clients (Claude, ChatGPT, Cursor), authenticate with OAuth 2.1. The try-ons use the credits of the user who approved the application.1
Discover the authorization server
Fetch the discovery document:
https://api.wearo.io/auth/v1/.well-known/openid-configuration. It lists the authorization, token and registration endpoints.2
Register your client
Register with dynamic client registration (DCR) at the registration endpoint from the discovery document. You send your redirect URIs and receive a
client_id.3
Ask the user to approve
Send the user to the authorization endpoint with the authorization code flow and PKCE (
S256). Wearo shows a consent page where the user signs in and approves your application.4
Call the API
Exchange the code for an access token at the token endpoint, then send it as
Authorization: Bearer <access_token>.client_id claim, which Wearo requires. A Wearo dashboard session token has no such claim and is refused with 401.
For the MCP server, an unauthenticated call receives
401 with a WWW-Authenticate header whose resource_metadata points to the protected resource metadata. MCP clients follow it automatically.Get your API key
Don’t have a key? Get one from your dashboard →Domain restrictions
If you’ve configured domain restrictions on your key, include theOrigin header: