List programs
curl --request GET \
--url https://app.hoppier.com/api/v1/programs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.hoppier.com/api/v1/programs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hoppier.com/api/v1/programs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"programs": [
{
"id": "prg_Z8q3NnW2xK",
"object": "program",
"name": "Team lunch",
"amount": 2500,
"currency": "usd",
"status": "active",
"startDate": "1793491200000",
"endDate": "1795996800000",
"createdAt": "1792504992000",
"updatedAt": "1792504992000",
"addressId": "ad_7Ym2p0Lx3Q",
"colorHex": "#FF6161",
"colorHex2": "#FFFFFF",
"logoUrl": null
}
]
}Programs
List programs
Returns every program in the key’s company, archived ones included (status: inactive). There is no paging and no guaranteed order.
The key’s owner must be an admin of the company.
GET
/
programs
List programs
curl --request GET \
--url https://app.hoppier.com/api/v1/programs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.hoppier.com/api/v1/programs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hoppier.com/api/v1/programs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"programs": [
{
"id": "prg_Z8q3NnW2xK",
"object": "program",
"name": "Team lunch",
"amount": 2500,
"currency": "usd",
"status": "active",
"startDate": "1793491200000",
"endDate": "1795996800000",
"createdAt": "1792504992000",
"updatedAt": "1792504992000",
"addressId": "ad_7Ym2p0Lx3Q",
"colorHex": "#FF6161",
"colorHex2": "#FFFFFF",
"logoUrl": null
}
]
}Hoppier’s Zapier app sends an
x-request-source: zapier header and gets a bare array of programs instead of {"programs": [...]}. Don’t send that header from your own code.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 company's programs.
Show child attributes
Show child attributes