Use this endpoint to securely register a tenant to Upsolve and pass metadata relating to the tenant. This metadata payload will be used to secure data when the user accesses an Upsolve dashboard.
apiKey MUST be supplied within the request body instead of query
POST /v1/api/tenant/register-tenant Request body
Upsolve API key, generated in the Deploy tab of the Upsolve Hub.
1"up_embed_************"
Display name for this user. This will appear in the Upsolve Hub.
"Google Inc"
{
"company_id": "company-google",
"company_class": "tech"
}POST /v1/api/tenant/register-tenant Positive response
"success"{
"message": "Tenant Google Inc registered.",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InBhcmVudE9yZ0lkIjoiYWJkZTZmMjQtYWYwZi00Zjg3LWI4NzEtNzk0NGIyYzhjM2IzIiwiZGlzcGxheU5hbWUiOiJEZW1vIChBZG1pbikiLCJwYXlsb2FkIjp7fX0sImlhdCI6MTcwOTI2NTcyOSwiZXhwIjoxNzA5MjY5MzI5fQ.nfMwGbPe7zwCwlky079PVjA-ox0G2OtTuFo_0MXoLCE"
}