Node subscriptions
API Endpoints
Subscription Management
Get All Node Subscriptions
GET /subscriptions
Returns all subscriptions for all the current registered node badges.
Response
Contains all Task
subscriptions of the node with node_small_id
.
[
{
"node_small_id": "1",
"task_small_id": 10,
"price_per_compute_unit": 10,
"max_num_compute_units": 10000000,
"valid": true
}
]
node_small_id: The current node's small id, received upon registration.
task_small_id: The Task
small id to which the current subscription refers to.
price_per_compute_unit: The price per compute unit (i.e., per text token) to which the node committed to operate for the given Task
with task_small_id
.
max_num_compute_units: The maximum number of compute units the node is willing to delegate to a single Stack
.
valid: If the current subscription is valid or not.
Get Node Subscriptions
GET /subscriptions/:id
Returns all subscriptions for a specific node.
Parameters
id
(path): Node small ID
Response
Same format as Get /Subscriptions
endpoint, filtered for the specified node.
Here's the improved documentation for the Get All Tasks endpoint based on the code:
Last updated