Single sign-on link into the Releva admin
- Path
/users/partnerSignin/{token}/{payload}- Auth
- None · a public or signed link
const url = 'https://releva.ai/api/admin/users/partnerSignin/YOUR_PARTNER_TOKEN/YOUR_SIGNED_PAYLOAD';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://releva.ai/api/admin/users/partnerSignin/YOUR_PARTNER_TOKEN/YOUR_SIGNED_PAYLOADOpen this URL in the merchant’s browser. Releva creates the user if needed (and sends a welcome email with a
confirmation link to a new user), gives the user access to the shop’s account, signs the browser in and redirects
to the shop’s admin: the plan confirmation page when subscriptionsToConfirm is set, the activation wizard for a
Shopify shop that is not live yet, otherwise Analytics. Generate links on demand with a short expiry; do not cache
them.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Your partner token.
Example
YOUR_PARTNER_TOKENJWT signed with your private key; claims as in PartnerSignInClaims.
Example
YOUR_SIGNED_PAYLOADResponses
Section titled “Responses”Signed in; redirect to /admin/#/accounts/{accountId}/domains/{domainId}/analytics (or activate, or subscriptionsConfirm?subscriptionsToConfirm=...).
Unknown partner token or shop.
object
Human-readable error. Several validation errors are joined with a space.
Examples
{ "message": "Partner identification is invalid!"}{ "message": "Domain with url unknown-shop.example.com cannot be found or you don't have access to it."}The payload could not be verified (missing, not a JWT, signed with another key, or expired), or another unexpected error.
object
Human-readable error. Several validation errors are joined with a space.
Example
{ "message": "An internal error occurred."}