API v2 Introduction
Get Started
API endpoint
https://manage.runcloud.io/api/v2/
Headers
Content-Type: application/json
and Accept: application/json
headers.Authentication
curl -X GET "https://manage.runcloud.io/api/v2/ping" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
{
"message": "pong"
}
Legacy API v2 (Personal Space)
we are using Basic Authentication for Authentication
curl -X GET "https://manage.runcloud.io/api/v2/ping" \
-u YOUR_API_KEY:YOUR_API_SECRET \
-H "Content-Type: application/json" \
-H "Accept: application/json"
HTTP Response
HTTP Code | Explanation |
---|---|
200 | Ok (Usually you will get this code) |
401 | Authentication failed. This is due to wrong API Key and/or API Secret |
403 | Forbidden request |
422 | Unprocessable Entity. You will expect this HTTP Code if you send incomplete data for POST / PATCH request |
404 | Not found. The resources you are trying to reach is unavailable |
429 | Too Many Request. You will get this HTTP Code if you have exceeded our rate limits |
50x | Server Errors. If you get this error, it is coming from our side. Just make sure you know how to handle it. |
Pagination
perPage
to query string.page
inside the query string. The maximum perPage query is 40.Rate Limit
X-RateLimit-Limit
and X-RateLimit-Remaining
header for each requests.429
HTTP Status Code indicating Too Many Requests.