Using the API
FreJun's API is based on , accepts/returns JSON-encoded data, and uses standard HTTP response codes, authentication, and verbs.
Base URL
Base URL for all endpoints is https://api.frejun.com/api/v2
Authentication
Depending on the endpoint, either of the following headers must be present in the request.
-
Authorization: Bearer
Access Token -
Authorization: Bearer
Base64Encoded(Client ID:Client Secret)
Please refer to the specific endpoint's API Spec for further details.
Swagger Docs
Swagger docs can be found at https://api.frejun.com/api/v2/docs. You can use this interface to explore the API endpoints, view the request/response schemas, and test out the APIs directly from your browser.
Timezone Info
When working with timestamps in API responses, it's important to understand how FreJun handles timezones:
-
Timezone-aware timestamps: These timestamps include timezone information (e.g.,
2024-01-31T12:00:00+05:30) and can be directly converted to your local timezone. -
Timezone-unaware timestamps: These timestamps do not include timezone information (e.g.,
2024-01-31T12:00:00). For such timestamps, FreJun uses the Asia/Kolkata timezone (GMT+5:30) as the default.
When processing timezone-unaware timestamps from the API, treat them as Asia/Kolkata (GMT+5:30) time and convert them to your local timezone as needed.