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 'Access-Type: <access-type>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "partnerUserId": "<string>",
  "branchId": "<string>",
  "firstName": "<string>",
  "lastName": "<string>"
}
'
{
  "token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.doshi.app/llms.txt

Use this file to discover all available pages before exploring further.

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 hello@doshi.app to whitelist your IPs.

Headers

Access-Type
enum<string>
required

Must be set to 'client' for all API requests

Available options:
client

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