Quickstart
Prerequisites
1.
2.
3.
curl
to make HTTP requests. The examples below use curl
.Step 1: Authentication
Authorization
header of your subsequent requests.POST
request to the /token
endpoint.Request
curl
:
your_email@example.com
, your_password
, and 16386DBE-1612-4180-81EC-6458712B51FD
with your actual credentials.Response
token
and refresh_token
.{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"refresh_token": "def50200f4911d38b73f8a0e36b8e3a246d849221191a206a5b4815a51a8775e",
"success": true,
"errors": []
}
token
& refresh_token
securely. You will need it for API calling and for refreshing your token.Refresh Token
POST
request to the /refresh
endpoint.Request
curl
:
refresh_token
, with your actual saved refresh token.Response
token
and refresh_token
.{
"token": "eyBHsGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQs32asA",
"refresh_token": "bbhd50200f4911d38b73f8a0e36b7f3a246d849221191a206a5b4815a51a8213c",
"success": true,
"errors": []
}
token
& refresh_token
securely.Step 2: Make Your First API Call
GET /tenants/{tenant_id}/clients
endpoint.Request
Authorization
header with the Bearer
scheme, followed by your token.
YOUR_TENANT_ID
with the ID of the tenant you want to query.YOUR_JWT_TOKEN
with the token
you received in Step 1.Response
200 OK
status code and a JSON response containing a paginated list of clients for that tenant.{
"items": [
{
"id": 101,
"company_id": 123,
"client_status": "Client",
"full_name": "Jane Doe",
"mobile_number": 9876543210,
"email_id": "jane.doe@example.com"
},
{
"id": 102,
"company_id": 123,
"client_status": "Prospect",
"full_name": "John Smith",
"mobile_number": 9876543211,
"email_id": "john.smith@example.com"
}
],
"total_items": 2,
"total_pages": 1,
"current_page": 1
}
Next Steps
Modified at 2025-06-12 13:16:39