Requesting an API Token
While accessing the OpenAPI does not require an API token, we provide the option to request a token if you anticipate reaching the rate limits or need increased usage. To request an API token, please follow the steps below:
-
Send an email to data.dtsa@jdn.gov.my with the following details:
- Your name
- Your email address
- Reason for requesting an increased rate limit
-
Our team will review your request and assess it on a case-by-case basis.
-
If your request is approved, you will receive an API token via email.
Using Your API Token
Once you have obtained an API token, you need to include it in your API requests to authenticate and gain access to increased usage limits. Follow the steps below to include your API token in the HTTP requests:
-
Add the following header to your request:
Authorization: Token <YOUR_TOKEN_HERE>
Replace
<YOUR_TOKEN_HERE>
with the actual token you received. -
Send your HTTP request with the added
Authorization
header.