Session
See who the current credential acts as and in which organization, switch a session to another of your organizations, and sign out.
x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
Current principal snapshot
application/json- response
userId*stringAuthenticated user identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$email*stringUser email address
emailname?stringUser display name
locale?stringUser's preferred UI locale, cached from the account record
activeOrgId*stringCurrently selected org, or null for an org-less (orphan) session
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgs*array<>Organizations the user is a member of
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/auth/me'{ "userId": "string", "email": "user@example.com", "name": "string", "locale": "string", "activeOrgId": "string", "orgs": [ { "orgId": "string", "slug": "string", "name": "string", "role": "owner" } ]}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
Org the caller's credential is bound to, and their role in it
application/json- response
orgId*stringOrganization the request's credential is bound to
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgSlug*stringSlug of that organization
role*stringRole within an organization
"owner""admin""member""viewer"curl -X GET 'https://api.nuvelics.com/api/tenant/v1/auth/org-context'{ "orgId": "string", "orgSlug": "string", "role": "owner"}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
application/json- body
orgId*stringTarget organization identifier
1 <= lengthUpdated principal snapshot after org switch
application/json- response
userId*stringAuthenticated user identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$email*stringUser email address
emailname?stringUser display name
locale?stringUser's preferred UI locale, cached from the account record
activeOrgId*stringCurrently selected org, or null for an org-less (orphan) session
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgs*array<>Organizations the user is a member of
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/auth/switch-org' \ -H 'Content-Type: application/json' \ -d '{ "orgId": "string"}'{ "userId": "string", "email": "user@example.com", "name": "string", "locale": "string", "activeOrgId": "string", "orgs": [ { "orgId": "string", "slug": "string", "name": "string", "role": "owner" } ]}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
Session revoked
curl -X POST 'https://api.nuvelics.com/api/tenant/v1/auth/logout'