Generate an access token

Purpose: The purpose of this API is to generate a new access token for the authentication of the user. Businesses can use this token to access Zenoti APIs.

Note: The access token is valid only for 24 hours, post which you must generate a new token by invoking the Refresh an access token API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Response Parameters

After you invoke the Generate an access token API, you will see the following parameters appear under the Credentials object.

NameTypeDescription
access_tokenidThis is the access token that is generated when you invoke the API - Generate an access token. Use this token to access the Zenoti APIs.
access_token_expirydate timeThis is the validity period of the access token. The access token is valid for 24 hours from the date and time of generation.
refresh_tokenidIf an access token is expired, use the refresh token to generate a new access token.
Note: If you use the refresh token before the expiry of the access token, it will become redundant and cannot be used for authentication.
refresh_token_expirydate timeThis is the expiry of the refresh token.
token_typestringThis is the type of authentication the token provides.
token_idguidUnique identifier of the token.
app_idguidUnique identifier of the application.
user_typestringThis specifies the user who is accessing the APIs. It is either "Guest" or "Employee".
Body Params
string
required
Defaults to account name

Name of your business account as mentioned in the Zenoti URL. For example, if your Zenoti URL is www.spabliss.zenoti.com, then spabliss is your account name.

string
required
Defaults to username

Username of the employee

string
required
Defaults to Enter your password

This is the password of the employee.

string
required
Defaults to password

Enter the text "password" in this field.

string
required
Defaults to DB6D3C87-7913-43E3-81B6-08B0F1708D09

Unique identifier of the application. App id lets us know if the logged in user is a "Guest" or an "Employee".

string
required
Defaults to 312a4d9488e04a829fe9dab88377e78f8e071240f3e241ca82e01c306e556599

Unique secret code of the application.

string
required
Defaults to c113476f-04e1-484c-b887-57414441cdcf

Unique identifier of the device from which the token is getting generated.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json