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
Section titled “Base URL”Base URL for all endpoints is https://api.frejun.com/api/v2
Authentication
Section titled “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)
Timezone Info
Section titled “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.