Skip to main content
GET
/
v2
/
login
Generic Auth Init
curl --request GET \
  --url https://api.studio.prisme.ai/v2/login \
  --header 'Authorization: Bearer <token>'
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.studio.prisme.ai/v2/login', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
import requests

url = "https://api.studio.prisme.ai/v2/login"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "provider": "local"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

provider
string

Auth provider slug. Required if domain is not provided.

domain
string

Email domain (e.g. "acme.com"). When provided, auto-discovers the SSO provider matching this domain. If no SSO provider matches, returns a 200 JSON response with provider "local".

Response

SSO or local authentication identifier

provider
string
required
Example:

"local"