Skip to main content
POST
/
client
/
auth
/
custom-token
Get Custom Authentication Token
curl --request POST \
  --url https://api.doshi.app/client/auth/custom-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "partnerUserId": "<string>",
  "branchId": "<string>",
  "firstName": "<string>",
  "lastName": "<string>"
}
'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication token (API Key) provided by Doshi. Your server's IP address must be whitelisted to use this API. Contact [email protected] to whitelist your IPs.

Body

application/json

Request body for generating a custom authentication token. Either email or partnerUserId is required.

email
string<email>
partnerUserId
string
Required string length: 1 - 50
branchId
string
Required string length: 2 - 50
firstName
string
Required string length: 2 - 50
lastName
string
Required string length: 2 - 50

Response

Successfully generated authentication token.

token
string
required

Firebase authentication token