curl --request GET \
--url https://core.cyberun.cloud/api/v1/credentials \
--header 'Authorization: Bearer <token>' \
--header 'X-Team-ID: <x-team-id>'import requests
url = "https://core.cyberun.cloud/api/v1/credentials"
headers = {
"X-Team-ID": "<x-team-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Team-ID': '<x-team-id>', Authorization: 'Bearer <token>'}
};
fetch('https://core.cyberun.cloud/api/v1/credentials', 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://core.cyberun.cloud/api/v1/credentials",
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>",
"X-Team-ID: <x-team-id>"
],
]);
$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://core.cyberun.cloud/api/v1/credentials"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Team-ID", "<x-team-id>")
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://core.cyberun.cloud/api/v1/credentials")
.header("X-Team-ID", "<x-team-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cyberun.cloud/api/v1/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Team-ID"] = '<x-team-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"credentials": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "integration",
"display_name": "<string>",
"key_prefix": "sk-abcd1234",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key_status": "active",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"page_meta": {
"current_page": 1,
"per_page": 20,
"total_count": 42
}
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}List credentials
Returns a paginated list of credentials for the team. Only the prefix is
shown — the full secret is never returned after creation. Pass kind
to filter by credential type.
Auth: JWT only (see POST /credentials for the rationale on why
dk- is rejected on credential management).
curl --request GET \
--url https://core.cyberun.cloud/api/v1/credentials \
--header 'Authorization: Bearer <token>' \
--header 'X-Team-ID: <x-team-id>'import requests
url = "https://core.cyberun.cloud/api/v1/credentials"
headers = {
"X-Team-ID": "<x-team-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Team-ID': '<x-team-id>', Authorization: 'Bearer <token>'}
};
fetch('https://core.cyberun.cloud/api/v1/credentials', 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://core.cyberun.cloud/api/v1/credentials",
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>",
"X-Team-ID: <x-team-id>"
],
]);
$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://core.cyberun.cloud/api/v1/credentials"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Team-ID", "<x-team-id>")
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://core.cyberun.cloud/api/v1/credentials")
.header("X-Team-ID", "<x-team-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cyberun.cloud/api/v1/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Team-ID"] = '<x-team-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"credentials": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "integration",
"display_name": "<string>",
"key_prefix": "sk-abcd1234",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key_status": "active",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"page_meta": {
"current_page": 1,
"per_page": 20,
"total_count": 42
}
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Required on all team-scoped JWT endpoints because a user may belong to multiple teams.
"019abc12-4567-7890-abcd-ef1234567891"
Query Parameters
Page number to retrieve (1-based). Default: 1.
x >= 11
Number of items per page (1–100). Default: 20.
1 <= x <= 10020
Filter by credential kind. Returns all kinds when omitted. Type of credential. Each kind shares the same storage shape but has different behaviour:
integration(sk-...): team-scoped programmatic key. Carries no user identity; used by CI bots, third-party integrations, scripts.agent(ak-...): team-scoped agent key. Used by headless workers connecting to the platform's WebSocket. Rejected by the REST surface — see the carrier table at the top of the spec.device(dk-...): per-user, team-scoped key issued by the desktop device-pairing flow (POST /desktop/pair/confirm). Carriesuser_idso the authorization layer can run against the actual user. Cannot be issued viaPOST /credentials— use the pairing flow.
integration, agent, device "integration"
