Build with
Kegetlare API.
A clean, predictable interface for integrating your applications with Kegetlare. Explore endpoints, inspect request formats and try sample calls from one place.
https://kegetlare.devs.surf/api/v1Authentication
Bearer token
Pass your access token in the Authorization header with every protected request.
Transport security
All API requests must use HTTPS. Requests over plain HTTP are not supported.
Authorization: Bearer YOUR_API_TOKEN Content-Type: application/json Accept: application/json
Quick start
curl -X GET \ 'https://kegetlare.devs.surf/api/v1/status' \ -H 'Accept: application/json'
API reference
/statusGet service statusвЊ„Returns basic information about API availability and version. This public endpoint does not require authentication.
{
"success": true,
"data": {
"status": "online",
"version": "1.0",
"service": "Kegetlare API"
}
}/usersList usersвЊ„Returns a paginated collection of users available to the authenticated account.
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| page | integer | Page number. Default: 1. |
| limit | integer | Items per page. Default: 20, maximum: 100. |
/users/{id}Get user detailsвЊ„Returns details for a single user identified by its unique ID.
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| id | string | REQUIRED Unique user identifier. |
/usersCreate a userвЊ„Creates a new user. Send a JSON object in the request body.
{
"name": "Alex Morgan",
"email": "alex@example.com"
}/users/{id}Update a userвЊ„Replaces the editable fields of the specified user. Requires a valid access token and a JSON request body.
/users/{id}Delete a userвЊ„Deletes the specified user. This operation may be irreversible.
API console
{
"message": "Configure your API backend to enable live requests.",
"hint": "This console currently displays a local demonstration response."
}
Error handling
| CODE | MEANING | DESCRIPTION |
|---|---|---|
| 400 | Bad Request | The request is malformed or contains invalid parameters. |
| 401 | Unauthorized | Authentication is missing or invalid. |
| 403 | Forbidden | You do not have permission to access this resource. |
| 404 | Not Found | The requested resource does not exist. |
| 429 | Too Many Requests | Rate limit exceeded. Retry after a short delay. |
| 500 | Internal Server Error | An unexpected server error occurred. |