curl --request GET \
--url https://api-prod.studio.getsupervisor.ai/v1/api-keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-prod.studio.getsupervisor.ai/v1/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-prod.studio.getsupervisor.ai/v1/api-keys', 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-prod.studio.getsupervisor.ai/v1/api-keys",
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-prod.studio.getsupervisor.ai/v1/api-keys"
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-prod.studio.getsupervisor.ai/v1/api-keys")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.studio.getsupervisor.ai/v1/api-keys")
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[
{
"id": "4d4d48e8-9b7a-4d0e-9b9c-52f927c8f0af",
"name": "Backend Integration",
"description": "Servicio interno para sincronizar métricas",
"scopes": [
"agents:read",
"campaigns:read"
],
"environment": "production",
"keyPreview": "sk_live_4d4d...c8f0",
"createdAt": "2025-10-10T12:00:00.000Z",
"updatedAt": "2025-10-12T08:15:42.000Z",
"lastUsedAt": "2025-10-14T21:03:11.000Z"
},
{
"id": "9fe96b51-7b4d-4ad2-819c-246708fa8e52",
"name": "QA Sandbox",
"description": null,
"scopes": [
"agents:read"
],
"environment": "sandbox",
"keyPreview": "sk_sbox_9fe9...8e52",
"createdAt": "2025-09-30T17:45:00.000Z",
"updatedAt": "2025-09-30T17:45:00.000Z",
"lastUsedAt": null
}
]{
"statusCode": 403,
"error": "Forbidden",
"message": "Se requiere el scope api-keys:read"
}Listar API Keys activas del usuario
Recupera las credenciales API activas creadas por el usuario autenticado para el workspace indicado. Incluye metadatos como entorno, scopes autorizados y la fecha del último uso para facilitar auditorías rápidas.
curl --request GET \
--url https://api-prod.studio.getsupervisor.ai/v1/api-keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-prod.studio.getsupervisor.ai/v1/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-prod.studio.getsupervisor.ai/v1/api-keys', 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-prod.studio.getsupervisor.ai/v1/api-keys",
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-prod.studio.getsupervisor.ai/v1/api-keys"
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-prod.studio.getsupervisor.ai/v1/api-keys")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.studio.getsupervisor.ai/v1/api-keys")
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[
{
"id": "4d4d48e8-9b7a-4d0e-9b9c-52f927c8f0af",
"name": "Backend Integration",
"description": "Servicio interno para sincronizar métricas",
"scopes": [
"agents:read",
"campaigns:read"
],
"environment": "production",
"keyPreview": "sk_live_4d4d...c8f0",
"createdAt": "2025-10-10T12:00:00.000Z",
"updatedAt": "2025-10-12T08:15:42.000Z",
"lastUsedAt": "2025-10-14T21:03:11.000Z"
},
{
"id": "9fe96b51-7b4d-4ad2-819c-246708fa8e52",
"name": "QA Sandbox",
"description": null,
"scopes": [
"agents:read"
],
"environment": "sandbox",
"keyPreview": "sk_sbox_9fe9...8e52",
"createdAt": "2025-09-30T17:45:00.000Z",
"updatedAt": "2025-09-30T17:45:00.000Z",
"lastUsedAt": null
}
]{
"statusCode": 403,
"error": "Forbidden",
"message": "Se requiere el scope api-keys:read"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Identificador del workspace multi-tenant. Obligatorio al autenticar con Authorization: Bearer, donde su ausencia devuelve 400 Workspace context is required. Con x-api-key es opcional: la llave ya identifica a su workspace y lo que mandes aquí se ignora.
Response
Colección de API Keys activas
Lista de scopes autorizados para esta credencial.
1production, sandbox, staging, development Prefijo y sufijo visibles de la API Key (el valor completo no se expone después de la creación).
255Fecha/hora del último uso registrado.
Fecha/hora en que se revocó la credencial (si aplica).
