Last updated 3 months ago
Returns details of a specific node by node ID.
The unique identifier of the node.
GET //api/nodes/{id} HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
Details of the node
{ "builds": [ { "action": "text", "buildComplete": true, "buildNumber": 1, "buildStatus": "SUCCESS", "currentPhase": "text", "id": "text", "timestamp": "text" } ], "initialized": true, "invoke_url": "text", "name": "text", "nodeId": "text", "port": 1, "protocol": "text", "peerDNS": "text", "peerPort": 1, "network": "regtest", "status": "STARTING", "settings": { "webhookUrl": "text" } }
Returns public key for webhook verification.
GET //api/webhook-public-key HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
success response
{ "data": "text" }
Returns a latest RLN image version.
GET //api/nodes/latest-rln-image HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
A list of nodes
This endpoint allows you to upgrade a node.
POST //api/nodes/{id}/upgrade HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
Node upgraded successfully
{ "message": "text" }
This endpoint allows you to Update node settings.
POST //api/nodes/{id}/settings HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
Node Updated successfully
Start a Node
POST //api/nodes/{id}/start HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
Start a Node initiated successfully.
{}
Stop a Node
POST //api/nodes/{id}/stop HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
Stop a Node initiated successfully.
Initiates an export of logs for a specified node.
POST //api/nodes/{id}/logs HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
Log export initiated successfully.
{ "taskId": "text" }
Retrieves the download URLs for logs related to a specific task ID.
The task ID associated with the log export.
GET //api/nodes/{id}/logs HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
List of log download URLs retrieved successfully.
{ "data": [ "text" ] }
Returns a list of all nodes including their details and builds.
GET //api/nodes HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Accept: */*
{ "nodes": [ { "builds": [ { "action": "text", "buildComplete": true, "buildNumber": 1, "buildStatus": "SUCCESS", "currentPhase": "text", "id": "text", "timestamp": "text" } ], "initialized": true, "invoke_url": "text", "name": "text", "nodeId": "text", "port": 1, "protocol": "text", "peerDNS": "text", "peerPort": 1, "network": "regtest", "status": "STARTING", "settings": { "webhookUrl": "text" } } ] }
This endpoint allows you to create a new node.
Name of the node.
regtest
testnet
POST //api/nodes HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 68 { "name": "text", "network": "regtest", "settings": { "webhookUrl": "text" } }
Node created successfully
{ "data": { "builds": [ { "action": "text", "buildComplete": true, "buildNumber": 1, "buildStatus": "SUCCESS", "currentPhase": "text", "id": "text", "timestamp": "text" } ], "initialized": true, "invoke_url": "text", "name": "text", "nodeId": "text", "port": 1, "protocol": "text", "peerDNS": "text", "peerPort": 1, "network": "regtest", "status": "STARTING", "settings": { "webhookUrl": "text" } }, "message": "text" }
This endpoint destroys a node by its identifier.
Unique identifier of the node to be destroyed.
DELETE //api/nodes HTTP/1.1 Host: cloud-api.thunderstack.org Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 24 { "destroyNodeId": "text" }
Node destroyed successfully