Skip to main content
POST
/
authentication
/
register
Register a user based on a Stytch session token
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
}

Authorizations

Authorization
string
header
required

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

Body

application/json
stytch_session_token
string
required

The Stytch session token

company_name
string
required

The name of the company

name
string

The name of the user

Response

OK

user_id
integer