Authentication
Revieve identifies callers by Partner ID — a short string issued to your account. There is no OAuth flow, no JWT, no session cookie, and no Authorization header. Authentication is a single multipart form field on every request.
Where to put it
Section titled “Where to put it”The Partner ID rides as a form field in the multipart body of POST /analyzeImage/:
POST /api/3/analyzeImage/?skintone=0&gender=unknown HTTP/1.1Content-Type: multipart/form-data; boundary=----X
----XContent-Disposition: form-data; name="partner_id"
jmlv6b2qtS----XContent-Disposition: form-data; name="image"; filename="selfie.jpg"Content-Type: image/jpeg
<binary>----X--That’s it. Don’t add Authorization headers; they aren’t read.
Test vs production
Section titled “Test vs production”| Environment | Partner ID | Base URL |
|---|---|---|
| Test | jmlv6b2qtS (shared demo), or your own | https://partner-test.revieve.com/api/3/ |
| Production | Issued to your account | https://partner.revieve.com/api/3/, or the regional host in your contract |
The test ID is shared. Treat it like any public demo key: fine for evaluation, never for real users. Revieve may replace it at any time; if it stops working, find the current one here in the docs or ask the Revieve team. Revieve tells you which Partner ID to use in test and in production.
Calling from the browser
Section titled “Calling from the browser”The Partner ID is designed to be used in the browser, and Revieve’s own front-end plugin does exactly that. What limits its use is the list of allowed origins that Revieve configures for your account: ask your Revieve contact to add the domains your production site runs on. A browser call from any other origin fails with a CORS error. Calling the API from your own backend works too, but is not required.
If you need a new Partner ID, ask your Revieve contact.
What the server checks
Section titled “What the server checks”- Partner ID: missing returns
404, unknown returns403. See Error handling. - Licence: the Partner ID must be licensed for Skin Analysis and for the components you request; otherwise
403. - Region routing is determined by the production base URL you receive, not by anything in the request.