Login
Login
Obtain a JSON Web Token (JWT) for subsequent API authentication
POST
Login
All API requests must be authenticated using a JWT token. Follow the steps below to generate your token:
Overview
Obtain a JSON Web Token (JWT) ffor subsequent API authenticationEndpoint Details
- Method: POST
- Endpoint:
/auth/token/
Request
Request Parameters
Submit the following parameters as form-data in the request body:string
required
Unique identifier for your organization, obtained from the API Credentials page
string
required
Secret key for your organization, obtained from the API Credentials page
string
required
Your email address used for Wokelo login
string
required
Your account password used for Wokelo login
string
required
Type of grant being requested (use
"password" for credential-based authentication)Response
Response Fields
On successful authentication (HTTP 200), the response will contain:string
JWT for authenticated API access
integer
Token validity duration in seconds
string
Type of authentication token
string
Authorization scope of the token
string
Token used to obtain a new access token
- Ensure the
client_idandclient_secretare kept confidential - Any token returned by the API is sensitive and should be stored securely. Wokelo tokens are long-lasting and should never be exposed on the client side.
- The access token is time-limited; use the refresh token to obtain a new access token when it expires
- Use HTTPS for all authentication requests