List API Keys
curl --request GET \
--url https://api.vertracloud.app/v1/users/me/api-keysimport requests
url = "https://api.vertracloud.app/v1/users/me/api-keys"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/users/me/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.vertracloud.app/v1/users/me/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.vertracloud.app/v1/users/me/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.vertracloud.app/v1/users/me/api-keys")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/me/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{
"response": [
{
"id": "b7e2d1a4-...",
"name": "CI deploy",
"prefix": "vc_live_a1b2c3d4",
"last4": "9f0e",
"scopes": ["apps:read", "apps:write"],
"allowed_ips": [],
"created_at": "2026-09-11T12:00:00Z",
"last_used_at": "2026-09-11T13:30:00Z"
}
]
}
API Keys
List API Keys
Lists every API key on the authenticated account. Dashboard session only — an API key gets 403 API_KEY_SCOPE_DENIED.
GET
/
v1
/
users
/
me
/
api-keys
List API Keys
curl --request GET \
--url https://api.vertracloud.app/v1/users/me/api-keysimport requests
url = "https://api.vertracloud.app/v1/users/me/api-keys"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/users/me/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.vertracloud.app/v1/users/me/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.vertracloud.app/v1/users/me/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.vertracloud.app/v1/users/me/api-keys")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/me/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{
"response": [
{
"id": "b7e2d1a4-...",
"name": "CI deploy",
"prefix": "vc_live_a1b2c3d4",
"last4": "9f0e",
"scopes": ["apps:read", "apps:write"],
"allowed_ips": [],
"created_at": "2026-09-11T12:00:00Z",
"last_used_at": "2026-09-11T13:30:00Z"
}
]
}
Key management is readable and writable only from a dashboard session. Calling any
/v1/users/me/api-keys* route with an API key answers 403 API_KEY_SCOPE_DENIED — a leaked key can’t list, create or edit keys for itself.Response
APIApiKey[]
Every key on the account. The secret itself is never included — only
prefix and last4.Show Toggle object
Show Toggle object
string
Key ID.
string
1–40 characters.
string
Public start of the key (
vc_live_a1b2c3d4; 8 hex for keys created before that format).string | null
Last 4 characters;
null for keys generated before the vc_live_ format.string[]
Allowed IPs/CIDRs. Empty means any IP.
string
string | null
null if the key has never been used.{
"response": [
{
"id": "b7e2d1a4-...",
"name": "CI deploy",
"prefix": "vc_live_a1b2c3d4",
"last4": "9f0e",
"scopes": ["apps:read", "apps:write"],
"allowed_ips": [],
"created_at": "2026-09-11T12:00:00Z",
"last_used_at": "2026-09-11T13:30:00Z"
}
]
}
Errors
| Status | Code | When |
|---|---|---|
| 403 | API_KEY_SCOPE_DENIED | The session is an API key. |