curl --request GET \
--url https://api.hyperline.co/v1/plans \
--header 'Authorization: Bearer <token>'
{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0
},
"data": [
{
"id": "plan_zHmjoDea4ZRmQV",
"name": "Starter",
"description": "Starter pack",
"commitment_interval": {
"period": "years",
"count": 1
},
"contract_start_strategy": "start_date",
"contract_start": "2025-01-01T00:00:00.000Z",
"contract_end_strategy": "duration",
"contract_end": "2025-12-31T23:59:59.999Z",
"contract_duration": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
}
}
]
}
Retrieve all existing plans.
curl --request GET \
--url https://api.hyperline.co/v1/plans \
--header 'Authorization: Bearer <token>'
{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0
},
"data": [
{
"id": "plan_zHmjoDea4ZRmQV",
"name": "Starter",
"description": "Starter pack",
"commitment_interval": {
"period": "years",
"count": 1
},
"contract_start_strategy": "start_date",
"contract_start": "2025-01-01T00:00:00.000Z",
"contract_end_strategy": "duration",
"contract_end": "2025-12-31T23:59:59.999Z",
"contract_duration": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
}
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
0 <= x <= 100
x >= 0
The response is of type object
.
Was this page helpful?