Check your API key
curl --request GET \
--url https://app.hoppier.com/api/v1/validate \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.hoppier.com/api/v1/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hoppier.com/api/v1/validate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"connectionId": "1a2b3c4d",
"email": "admin@example.com",
"company": "Acme Inc.",
"keyType": "user",
"message": "OK"
}Account
Check your API key
Confirms that a key works and tells you which admin and company it belongs to.
Every key Hoppier accepts gets a 200 here, whatever its owner’s role. Use it as a connection test, not as a permission check.
GET
/
validate
Check your API key
curl --request GET \
--url https://app.hoppier.com/api/v1/validate \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.hoppier.com/api/v1/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hoppier.com/api/v1/validate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"connectionId": "1a2b3c4d",
"email": "admin@example.com",
"company": "Acme Inc.",
"keyType": "user",
"message": "OK"
}Authorizations
Send your key in the Authorization header: Authorization: Bearer hk_live.…. The word Bearer is case-sensitive.
Keys are issued by Hoppier during the beta and shown once. Treat them like passwords and never put one in code that runs in a browser or an app.
Response
The key works.
The key's public prefix. Safe to log and to show as a connection label.
Example:
"1a2b3c4d"
Email of the admin the key belongs to.
Example:
"admin@example.com"
Name of the company the key belongs to.
Example:
"Acme Inc."
Every key issued today is user, a personal key. Company keys are coming soon.
Available options:
user, company Allowed value:
"OK"