Skip to main content
POST
Create a hosted sign-in link for an end user

Authorizations

Authorization
string
header
required

Your Styne API key: Authorization: Bearer $STYNE_API_KEY.

Body

application/json

Create a sign-in link.

profile
string

A profile id, or the name of your end user (the newest profile of that name is used, one is made when there is none); required.

start_url
string

The address the person starts on; required.

allow_hosts
string[]

Hosts the page may visit besides the start address and the hosts it redirects to first, such as accounts.google.com or *.example.com.

ttl
integer

Seconds the link stays valid; 60 to 3600, default 900.

return_url
string

An https address the page offers when the person is done.

region
string

Region to start the browser in when the profile has no saved browser yet.

brand
object

A name (up to 60 characters) and an https logo shown on the page.

success_check
object

url_matches, selector_exists, text_contains or cookie; when it holds the link completes without the person pressing Done.

Response

Success. The answer is described on https://docs.styne.ai/profiles.