Who am I
curl --request GET \
--url https://www.prometheus.services/api/v1/me \
--header 'X-API-KEY: <api-key>'import requests
url = "https://www.prometheus.services/api/v1/me"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://www.prometheus.services/api/v1/me', 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://www.prometheus.services/api/v1/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://www.prometheus.services/api/v1/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.prometheus.services/api/v1/me")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.prometheus.services/api/v1/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"key": {
"prefix": "pk_live_YOUR",
"name": "laptop",
"createdAt": "2026-08-23T14:02:11.000Z",
"lastUsedAt": "2026-08-23T18:40:03.000Z",
"expiresAt": null
},
"account": {
"email": "dev@example.com",
"via": "api_key"
},
"plan": {
"slug": "build",
"name": "Build",
"perMinute": 300,
"perDay": null,
"monthlyQuota": 100000,
"purchasable": true,
"display": {
"price": "$200",
"period": "/mo",
"blurb": "For production. 300 requests/min, 100,000 requests/month."
}
},
"rate": {
"limit": 300,
"remaining": 299,
"resetsAt": "2026-08-23T18:41:00.000Z"
},
"today": null,
"quota": {
"limit": 100000,
"used": 4812,
"remaining": 95188,
"resetsAt": "2026-09-01T00:00:00.000Z"
},
"upgradeUrl": null
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}Search & Meta
Who am I
The calling key’s account, plan, limits and live usage — the only account surface an API key can read. Returns the key’s display prefix (never the secret), effective plan, per-minute/day/month limits and how much of each remains.
GET
/
api
/
v1
/
me
Who am I
curl --request GET \
--url https://www.prometheus.services/api/v1/me \
--header 'X-API-KEY: <api-key>'import requests
url = "https://www.prometheus.services/api/v1/me"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://www.prometheus.services/api/v1/me', 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://www.prometheus.services/api/v1/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://www.prometheus.services/api/v1/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.prometheus.services/api/v1/me")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.prometheus.services/api/v1/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"key": {
"prefix": "pk_live_YOUR",
"name": "laptop",
"createdAt": "2026-08-23T14:02:11.000Z",
"lastUsedAt": "2026-08-23T18:40:03.000Z",
"expiresAt": null
},
"account": {
"email": "dev@example.com",
"via": "api_key"
},
"plan": {
"slug": "build",
"name": "Build",
"perMinute": 300,
"perDay": null,
"monthlyQuota": 100000,
"purchasable": true,
"display": {
"price": "$200",
"period": "/mo",
"blurb": "For production. 300 requests/min, 100,000 requests/month."
}
},
"rate": {
"limit": 300,
"remaining": 299,
"resetsAt": "2026-08-23T18:41:00.000Z"
},
"today": null,
"quota": {
"limit": 100000,
"used": 4812,
"remaining": 95188,
"resetsAt": "2026-09-01T00:00:00.000Z"
},
"upgradeUrl": null
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}Authorizations
apiKeycognitoIdToken
Prometheus API key (pk_live_...), created on the Developers page in the terminal. Also accepted as Authorization: Bearer pk_live_....
Response
OK
The response is of type object.
⌘I