Create a hosted sign-in link for an end user
curl --request POST \
--url https://api.styne.ai/signin-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profile": "<string>",
"start_url": "<string>",
"allow_hosts": [
"<string>"
],
"ttl": 123,
"return_url": "<string>",
"region": "<string>",
"brand": {},
"success_check": {}
}
'import requests
url = "https://api.styne.ai/signin-links"
payload = {
"profile": "<string>",
"start_url": "<string>",
"allow_hosts": ["<string>"],
"ttl": 123,
"return_url": "<string>",
"region": "<string>",
"brand": {},
"success_check": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profile: '<string>',
start_url: '<string>',
allow_hosts: ['<string>'],
ttl: 123,
return_url: '<string>',
region: '<string>',
brand: {},
success_check: {}
})
};
fetch('https://api.styne.ai/signin-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Create a hosted sign-in link for an end user
POST
/
signin-links
Create a hosted sign-in link for an end user
curl --request POST \
--url https://api.styne.ai/signin-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profile": "<string>",
"start_url": "<string>",
"allow_hosts": [
"<string>"
],
"ttl": 123,
"return_url": "<string>",
"region": "<string>",
"brand": {},
"success_check": {}
}
'import requests
url = "https://api.styne.ai/signin-links"
payload = {
"profile": "<string>",
"start_url": "<string>",
"allow_hosts": ["<string>"],
"ttl": 123,
"return_url": "<string>",
"region": "<string>",
"brand": {},
"success_check": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profile: '<string>',
start_url: '<string>',
allow_hosts: ['<string>'],
ttl: 123,
return_url: '<string>',
region: '<string>',
brand: {},
success_check: {}
})
};
fetch('https://api.styne.ai/signin-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Create a sign-in link.
Response
Success. The answer is described on https://docs.styne.ai/profiles.