Base URL
All API endpoints are accessible via the following base URL:https://theslow.net/api
You will append the specific endpoint path to this base URL for your requests.
Request Methods (Verbs)
Our API utilizes standard HTTP methods (also known as verbs) to indicate the desired action for a given resource.-
GET: Retrieve data from the server.GETrequests should not have a request body and should be idempotent (making the same request multiple times has the same effect as making it once).- Example: Fetching a list of users.
-
POST: Submit data to the server, typically to create a new resource.- Example: Creating a new user.
-
PUT: Update an existing resource, or create it if it doesn’t exist.PUTrequests typically require the entire resource to be sent in the request body.- Example: Replacing all data for a specific user.
-
PATCH: Partially update an existing resource. Only the fields to be updated are sent in the request body.- Example: Updating only a user’s email address.
-
DELETE: Remove a resource from the server.- Example: Deleting a specific user.
Authentication
This endpoint requires an API key. You can retrieve an API key from your dashboard. Include it in theX-API-KEY header:
Request Headers
Beyond authentication, common headers you’ll use include:-
Content-Type: application/json
: Used forPOST,PUT, andPATCH“ requests when sending a JSON payload in the request body. -
Accept: application/json: (Optional but recommended) Indicates that your client prefers to receive responses inJSONformat.
Request Parameters
There are several ways to pass data to our API:1. Path Parameters
Used to identify a specific resource within the URL path. They are part of the endpoint itself.- Example Endpoint:
/users/{user_id}
GET https://theslow.net/api/users/123 (where 123 is the user_id)
2. Query Parameters
Used to filter, sort, or paginate data, and are appended to the URL after a ?. Multiple parameters are separated by &.-
Example Endpoint:
/users?status=active&limit=10 -
Request: GET
https://theslow.net/api/users?status=active&limit=10
3. Request Body (JSON)
Used forPOST, PUT, and PATCH requests to send complex data structures, typically in JSON format. The Content-Type: application/json header is required for this.
-
Example (Creating a User):
-
Method:
POST -
Endpoint:
https://theslow.net/api/users - Request Body:
-
Method: