Introduction
Welcome to the RK Development API documentation. This API provides developers with access to various services and data endpoints provided by RK Development.
The API follows RESTful principles and returns JSON responses. All requests should be made to https://rkd.my.id/api/v1/ endpoint.
Base URL
Requirements
- All API requests must be made over HTTPS
- All data is sent and received as JSON
- Authentication is required for most endpoints
Authentication
Most RK Development API endpoints require authentication using API keys. You can obtain an API key by registering as a developer on our platform.
Using API Keys
Include your API key in the Authorization header of your requests:
Example Authenticated Request
Headers:
Example Endpoint
The example endpoint provides a simple way to test API connectivity and see sample responses.
Returns example data based on the provided test code.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | The test code to include in the response |
Example Request
Example Response
Sample Code
JavaScript (Fetch API)
Python (requests)
PHP (cURL)
cURL
Response Codes
The RK Development API uses standard HTTP status codes to indicate the success or failure of an API request.
| Code | Description |
|---|---|
| 200 OK | The request was successful |
| 201 Created | The resource was successfully created |
| 400 Bad Request | The request was malformed or missing required parameters |
| 401 Unauthorized | Authentication failed or not provided |
| 403 Forbidden | Authenticated user doesn't have access to the resource |
| 404 Not Found | The requested resource doesn't exist |
| 429 Too Many Requests | Rate limit exceeded |
| 500 Internal Server Error | An error occurred on the server |
Error Handling
When an error occurs, the API will return an appropriate HTTP status code along with a JSON response containing error details.
Error Response Format
Common Errors
| Error Code | Message | Solution |
|---|---|---|
| 400 | Missing required parameter | Check that all required parameters are included |
| 401 | Invalid API key | Verify your API key is correct and properly included in the Authorization header |
| 404 | Endpoint not found | Check the endpoint URL for typos |
| 429 | Rate limit exceeded | Wait before making additional requests or contact support for higher limits |
Rate Limiting
To ensure fair usage and maintain service quality, the RK Development API implements rate limiting.
Rate Limits
- Free tier: 100 requests per hour
- Basic tier: 1,000 requests per hour
- Pro tier: 10,000 requests per hour
Checking Rate Limits
Rate limit information is included in response headers:
When you exceed your rate limit, you'll receive a 429 Too Many Requests response.
Available APIs
Explore our collection of powerful and easy-to-use APIs