Identify the organization behind an API key
curl --request GET \
--url https://api.printeasy.adfinite.com/v1/whoami \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.printeasy.adfinite.com/v1/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.printeasy.adfinite.com/v1/whoami"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"apiKeyId": "<string>",
"mode": "live",
"organization": {
"id": "<string>",
"name": "<string>"
},
"plan": "lite"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}Account
Identify the organization behind an API key
GET
/
v1
/
whoami
Identify the organization behind an API key
curl --request GET \
--url https://api.printeasy.adfinite.com/v1/whoami \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.printeasy.adfinite.com/v1/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.printeasy.adfinite.com/v1/whoami"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"apiKeyId": "<string>",
"mode": "live",
"organization": {
"id": "<string>",
"name": "<string>"
},
"plan": "lite"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}Authorizations
ApiKeyAuthBasicAuth
Bearer token: your API key (pe_live_... or pe_test_...)