For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

Obtain a Bearer token using your API client credentials.

All Welkin API requests require a Bearer token. Tokens are obtained by calling the token endpoint with your API Client Key and Secret, which are generated in the Welkin Admin panel.

Tokens are valid for 1 hour. Cache your token and refresh it before expiry. Requesting a new token more than 100 times per 5 minutes will result in a 5-minute block.

Endpoint

POST /auth/token

Base URL: https://api.welkinhealth.com

Request

Headers

Header
Value

Content-Type

application/json

Body Parameters

Parameter
Type
Required
Description

secret

string

Yes

API Client secret generated in Admin

apiClient

string

Yes

API Client key generated in Admin

Example Request

POST https://api.welkinhealth.com/auth/token
Content-Type: application/json

{
  "secret": "your-api-client-secret",
  "apiClient": "your-api-client-key"
}

Response

200 OK

Field
Type
Description

token

string

Bearer token to use in subsequent API requests

expiresAt

string

ISO 8601 timestamp when the token expires

Using the Token

Include the token in the Authorization header of every subsequent request:

Setting Up an API Client

  1. Log in to your Welkin Admin panel

  2. Navigate to Admin → API Clients

  3. Create a new client and assign a Security Policy

  4. Copy the generated Key and Secret — the secret is shown only once

See Core Concepts for more on Security Policies and Roles.

Last updated

Was this helpful?