Skip to content

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.

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.1
Content-Type: multipart/form-data; boundary=----X
----X
Content-Disposition: form-data; name="partner_id"
jmlv6b2qtS
----X
Content-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.

EnvironmentPartner IDBase URL
Testjmlv6b2qtS (shared demo), or your ownhttps://partner-test.revieve.com/api/3/
ProductionIssued to your accounthttps://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.

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.

  • Partner ID: missing returns 404, unknown returns 403. 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.