POST
/
auth
/
signin_external
curl --request POST \
  --url https://api.brewit.ai/v1/auth/signin_external \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "external_id": "<string>",
  "ttl_seconds": 123,
  "display_name": "<string>",
  "email": "<string>",
  "picture": "<string>"
}'
{
  "token": "<string>",
  "expire": "<string>",
  "external_user_id": "<string>"
}

Authorizations

Authorization
string
header
required

Use your Brewit API_KEY as the value of this header.

Body

application/json
external_id
string
required

Identifier of the user in your system.

ttl_seconds
number
required

Time-to-live of the JWT token in seconds.

display_name
string

Display name of the user.

email
string

Email of the user.

picture
string

URL of the user's picture.

Response

200 - application/json
Successful response
token
string
required

JWT token that you can use to authenticate the user.

expire
string
required

Expiration time of the JWT token.

external_user_id
string
required

Identifier of the user in Brewit.