Identify the organization behind an API key
curl --request GET \
--url https://api.inkrelay.app/v1/whoami \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.inkrelay.app/v1/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.inkrelay.app/v1/whoami"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"apiKeyId": "Kd82jQm1Zp7sW0xe",
"mode": "test",
"organization": {
"id": "Yx3kP9qL2mN8rT4v",
"name": "Acme Logistics"
},
"plan": "lite",
"usage": {
"end": "2026-11-01T00:00:00.000Z",
"includedPrints": 50,
"overagePrints": 0,
"start": "2026-10-01T00:00:00.000Z",
"usedPrints": 12
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a",
"upgrade_url": "https://app.inkrelay.app/billing?upgrade=1"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a",
"upgrade_url": "https://app.inkrelay.app/billing?upgrade=1"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a",
"upgrade_url": "https://app.inkrelay.app/billing?upgrade=1"
}
}Account
Identify the organization behind an API key
Returns the organization, mode, key id, plan and current period usage of the API key that signs the request. Use it to check that a key works.
GET
/
v1
/
whoami
Identify the organization behind an API key
curl --request GET \
--url https://api.inkrelay.app/v1/whoami \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.inkrelay.app/v1/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.inkrelay.app/v1/whoami"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"apiKeyId": "Kd82jQm1Zp7sW0xe",
"mode": "test",
"organization": {
"id": "Yx3kP9qL2mN8rT4v",
"name": "Acme Logistics"
},
"plan": "lite",
"usage": {
"end": "2026-11-01T00:00:00.000Z",
"includedPrints": 50,
"overagePrints": 0,
"start": "2026-10-01T00:00:00.000Z",
"usedPrints": 12
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a",
"upgrade_url": "https://app.inkrelay.app/billing?upgrade=1"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a",
"upgrade_url": "https://app.inkrelay.app/billing?upgrade=1"
}
}{
"error": {
"code": "not_found",
"message": "Printer not found",
"request_id": "4f9c2a7e-1b3d-4c5e-8f6a-0b1c2d3e4f5a",
"upgrade_url": "https://app.inkrelay.app/billing?upgrade=1"
}
}Authorizations
ApiKeyAuthBasicAuth
Response
Caller identity
Was this page helpful?