Skip to main content

Get All Distributors by Node ID

Get all distributors associated with a node with pagination support.

Endpoint: GET /api/v1/integration/distributors/nodes/{node_id}/all

Authentication: Required (Bearer token)

Required Headers:

Authorization: Bearer <access_token>
X-Target-Server: integration

Path Parameters

ParameterTypeRequiredDescription
node_idstring (UUID)YesNode ID

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number (default: 1)
per_pageintegerNoNumber of items per page (default: 10)

Response

Status: 200 OK

Returns a paginated list of distributors.

{
"distributors": [
{
"id": "39e8003c-6342-4fd3-97a1-3f2a7b437d0a",
"node_id": "e40efce4-38a3-46c4-a202-e8db95d0409c",
"meta": {
"host": "https://example.com",
"path": "/webhook",
"method": "GET",
"authentication": {
"type": 1,
"username": "user",
"password": "pass"
}
},
"created_at": "2025-12-23T23:16:10.419732Z",
"updated_at": "2025-12-23T23:16:10.419732Z"
},
{
"id": "084a5159-1546-4ade-a7ba-956e0234a417",
"node_id": "e40efce4-38a3-46c4-a202-e8db95d0409c",
"meta": {
"host": "http://localhost:3453",
"path": "/v1/tokens/%s/distribution",
"method": "GET",
"authentication": {
"type": 2,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnRlZ3JhdGlvbklEIjoidGVzdC1pbnRlZ3JhdGlvbi1pZCJ9.rwshV1zF5nvW-cnN50Isa9xbJz3ChB6uZ9HsCLS3DiI"
}
},
"created_at": "2025-12-11T12:04:39.504428Z",
"updated_at": "2025-12-13T15:00:00.086405Z"
}
],
"total": 2,
"page": 1,
"per_page": 10
}

Example cURL Request

curl -X GET 'https://<base-url>/api/v1/integration/distributors/nodes/e40efce4-38a3-46c4-a202-e8db95d0409c/all?page=1&per_page=10' \
-H "Authorization: Bearer <access_token>" \
-H "X-Target-Server: integration"