Listar API keys
curl --request GET \
--url https://api.example.com/api-keysimport requests
url = "https://api.example.com/api-keys"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/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.example.com/api-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api-keys"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api-keys")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api-keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "ak_1a2b3c4d",
"key": "vp_****abcd",
"active": true,
"createdAt": "2026-01-15T10:30:00Z",
"environment": "production"
},
{
"id": "ak_5e6f7g8h",
"key": "vp_****efgh",
"active": false,
"createdAt": "2025-12-01T08:00:00Z",
"environment": "sandbox"
}
]
API Keys
Listar API keys
Obtiene la lista de API keys del usuario autenticado.
GET
/
api-keys
Listar API keys
curl --request GET \
--url https://api.example.com/api-keysimport requests
url = "https://api.example.com/api-keys"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/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.example.com/api-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api-keys"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api-keys")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api-keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "ak_1a2b3c4d",
"key": "vp_****abcd",
"active": true,
"createdAt": "2026-01-15T10:30:00Z",
"environment": "production"
},
{
"id": "ak_5e6f7g8h",
"key": "vp_****efgh",
"active": false,
"createdAt": "2025-12-01T08:00:00Z",
"environment": "sandbox"
}
]
Requiere autenticación con Bearer token.
Respuesta
La respuesta es un array de objetos con la siguiente estructura:string
Identificador único de la API key.
string
API key enmascarada (ej:
vp_****abcd). Por seguridad, la key completa solo se muestra al momento de crearla.boolean
Indica si la API key está activa.
string
Fecha de creación en formato ISO 8601.
string
Entorno de la API key:
sandbox o production.[
{
"id": "ak_1a2b3c4d",
"key": "vp_****abcd",
"active": true,
"createdAt": "2026-01-15T10:30:00Z",
"environment": "production"
},
{
"id": "ak_5e6f7g8h",
"key": "vp_****efgh",
"active": false,
"createdAt": "2025-12-01T08:00:00Z",
"environment": "sandbox"
}
]
⌘I