Login

Authenticate with your credentials to obtain an access token.

POST
/api/v1/auth/login

Description

The login endpoint authenticates a user with their client credentials (client_id and client_secret), returning a JSON Web Token valid for 4 hours. The token should be included in the Authorization header for all subsequent API requests.

Before You Begin

You'll need your API credentials to authenticate. To obtain them:

  1. Log in to your Unduit account.
  2. Go to Configure → API Credentials and generate a key.
  3. Set an expiration date and grant Read/Write permissions.
  4. Copy the Client ID and Client Secret.

If you don't see API Credentials in your Configure, contact your account administrator.

Request

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes

Body Parameters

ParameterTypeRequiredDescription
client_idstringYesYour client identifier from Configure → API Credentials
client_secretstringYesYour client secret from Configure → API Credentials

Response

Response Fields

FieldTypeDescription
messagestringStatus message indicating successful login
tokenstringJWT token valid for 4 hours

Error Responses

Common error responses you may encounter when using this endpoint.

Notes

  • Access tokens expire after 4 hours. Use the refresh token endpoint to obtain a new token without re-authenticating.
  • Always include the Bearer Token in the Authorization header for secured endpoints.
  • Store tokens securely on the client-side to prevent unauthorized access. Never expose them in version control.

Related Endpoints

Did this page help you?