curl --request POST \
--url https://api-dev.narrative.io/authentication/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stytch_session_token": "1rjpyoFiYLucsV-nuoi7dZ_VOkMUkcZLw6rICEYBzAy0",
"name": "First Last",
"company_name": "ACME Corp"
}
'{
"user_id": 100
}Register the user based on the Stytch session token and name/company name, and return the the created user id. The Stych session token can be obtained from a Magic Links or OAuth token thanks to the registration status API.
curl --request POST \
--url https://api-dev.narrative.io/authentication/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stytch_session_token": "1rjpyoFiYLucsV-nuoi7dZ_VOkMUkcZLw6rICEYBzAy0",
"name": "First Last",
"company_name": "ACME Corp"
}
'{
"user_id": 100
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK