curl --request GET \
--url https://api.qovery.com/organization/{organizationId}/skillPreset/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qovery.com/organization/{organizationId}/skillPreset/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qovery.com/organization/{organizationId}/skillPreset/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/organization/{organizationId}/skillPreset/usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/organization/{organizationId}/skillPreset/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qovery.com/organization/{organizationId}/skillPreset/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/organization/{organizationId}/skillPreset/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"bucket": "HOUR",
"totals": {
"loads": 123,
"cached_loads": 123,
"members": 123,
"approx_injected_tokens": 123
},
"timeline": [
{
"start": "2023-11-07T05:31:56Z",
"loads": 123,
"cached_loads": 123
}
],
"by_skill": [
{
"skill_name": "<string>",
"loads": 123,
"cached_loads": 123,
"members": 123,
"last_loaded_at": "2023-11-07T05:31:56Z"
}
],
"by_member": [
{
"user_sub": "<string>",
"user_name": "<string>",
"loads": 123,
"skills": 123,
"last_loaded_at": "2023-11-07T05:31:56Z"
}
],
"by_preset": [
{
"loads": 123,
"skill_preset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"skill_preset_name": "<string>"
}
]
}Get skill usage
Return how the members’ coding agents loaded skills in the organization over a time range: totals, a timeline, and breakdowns by skill, by member and by preset. Requires the MANAGE_ORGANIZATION_DATA permission (organization owner or admin).
Usage counts agent loads only: a load is one call to getResolvedSkill with purpose LOAD (the default) that returned a skill, cached ones included. A 304 counts as a cached load, a 404 is not counted, and VIEW calls (a person reading a skill) are never counted. Loads are counted whether or not a preset applies. Recording a load is best effort and never blocks the agent, so a load can be missing here while the audit log, which records every load as a SKILL_LOAD event, still has it.
The range defaults to the 30 days ending now and spans at most 90 days. Timeline buckets are cut in UTC, and buckets with no load are left out rather than returned as zero. Rows in by_skill and by_member are sorted by loads, most first, and capped at 100 and 500 rows.
curl --request GET \
--url https://api.qovery.com/organization/{organizationId}/skillPreset/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qovery.com/organization/{organizationId}/skillPreset/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qovery.com/organization/{organizationId}/skillPreset/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/organization/{organizationId}/skillPreset/usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/organization/{organizationId}/skillPreset/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qovery.com/organization/{organizationId}/skillPreset/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/organization/{organizationId}/skillPreset/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"bucket": "HOUR",
"totals": {
"loads": 123,
"cached_loads": 123,
"members": 123,
"approx_injected_tokens": 123
},
"timeline": [
{
"start": "2023-11-07T05:31:56Z",
"loads": 123,
"cached_loads": 123
}
],
"by_skill": [
{
"skill_name": "<string>",
"loads": 123,
"cached_loads": 123,
"members": 123,
"last_loaded_at": "2023-11-07T05:31:56Z"
}
],
"by_member": [
{
"user_sub": "<string>",
"user_name": "<string>",
"loads": 123,
"skills": 123,
"last_loaded_at": "2023-11-07T05:31:56Z"
}
],
"by_preset": [
{
"loads": 123,
"skill_preset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"skill_preset_name": "<string>"
}
]
}Authorizations
JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Query Parameters
Response
Skill usage over the range
Was this page helpful?