Get a site's usage history
CPU, memory and disk use over a range, as series of points.
Path parameters
The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.
Query parameters
The time range to read. Defaults to 24h.
6h24h7d30dReturns
200 The usage series.
Fields of the 200 answer
Fields
The most the row can use.
One point for each step: the time in epoch milliseconds, then the figures for that step. A figure is null where nothing was measured.
The guaranteed amount.
The size of the disk.
Fields
The most the row can use.
One point for each step: the time in epoch milliseconds, then the figures for that step. A figure is null where nothing was measured.
The guaranteed amount.
The size of the disk.
Fields
The most the row can use.
One point for each step: the time in epoch milliseconds, then the figures for that step. A figure is null where nothing was measured.
The guaranteed amount.
The size of the disk.
6h24h7d30dIf it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | none | Check the id. You see only what your account can reach. |
422 | invalid | Fix the field named in field; errors says why. |
429 | rate_limited | Wait for the seconds in Retry-After. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl https://manage.corefinity.com/api/corestack/sites/1042/usage \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/corestack/sites/1042/usage');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/usage', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/corestack/sites/1042/usage",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"cpu": {
"limit": 2000,
"points": [
[
1794561000000,
164,
310
],
[
1794561300000,
171,
298
]
],
"request": 100,
"unit": "millicores"
},
"disk": {
"points": [
[
1794561000000,
2147483648,
2147483648
],
[
1794561300000,
2147483648,
2147483648
]
],
"size": 10737418240,
"unit": "bytes"
},
"from": "2026-11-13T09:10:00Z",
"last_sample_at": "2026-11-14T09:05:00Z",
"memory": {
"limit": 4294967296,
"points": [
[
1794561000000,
902261120,
954261120
],
[
1794561300000,
912261120,
961261120
]
],
"request": 536870912,
"unit": "bytes"
},
"range": "24h",
"step_seconds": 300,
"to": "2026-11-14T09:10:00Z"
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"message": "Not found."
}{
"code": "invalid",
"errors": {
"range": [
"Choose a range of 6h, 24h, 7d or 30d."
]
},
"field": "range",
"message": "Choose a range of 6h, 24h, 7d or 30d.",
"reason": "invalid"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}