> For the complete documentation index, see [llms.txt](https://docs.flashback.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flashback.tech/support-reference/platform-api-reference/storage-apis/node-information/get__organization_-orgid-_nodes.md).

# get\_\_organization\_{orgId}\_nodes

`GET /organization/{orgId}/nodes`

*List Organization Nodes*

Get all private nodes belonging to the specified organization. This endpoint requires the user to be a member of the organization and returns only active (non-deleted) nodes.

**Important Notes:**

* Only users belonging to the specified organization can access this endpoint
* Returns only active nodes (deleted nodes are excluded)
* Nodes are ordered by ID in descending order (newest first)
* The `lastUpdated` field is set to the current timestamp for all nodes

#### Path Parameters <a href="#get__organization_-orgid-_nodes-pathparameters" id="get__organization_-orgid-_nodes-pathparameters"></a>

| Name    | Type   | Required | Description                           |
| ------- | ------ | -------- | ------------------------------------- |
| » orgId | string | true     | Unique identifier of the organization |

#### TypeScript Client Library

```typescript
// Using the Flashgate TypeScript client
import { FlashgateClient } from '@flashgate/client';

const client = new FlashgateClient({
  accessToken: 'your-access-token'
});

// Get all organization nodes
try {
  const result = await client.getPrivateNodeInfo('org-id');
  console.log('Organization nodes:', result);
} catch (error) {
  console.error('Failed to retrieve organization nodes:', error);
}
```

#### Code Samples

{% tabs %}
{% tab title="Shell" %}

```shell
# You can also use wget
curl -X GET https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'
```

{% endtab %}

{% tab title="HTTP" %}

```http
GET https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes HTTP/1.1
Host: localhost:3000
Accept: application/json
Authorization: Bearer {access-token}
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes',
{
  method: 'GET',
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
}

result = RestClient.get 'https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes',
  params: {
  }, headers: headers

p JSON.parse(result)
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes', headers = headers)

print(r.json())
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'Authorization' => 'Bearer {access-token}',
);

$client = new \GuzzleHttp\Client();

try {
    $response = $client->request('GET','https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes', array(
        'headers' => $headers,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

```

{% endtab %}

{% tab title="Java" %}

```java
URL obj = new URL("https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Accept", "application/json");
con.setRequestProperty("Authorization", "Bearer {access-token}");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());
```

{% endtab %}

{% tab title="Go" %}

```go
package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "Authorization": []string{"Bearer {access-token}"},
    }

    data := bytes.NewBuffer([]byte{})
    req, err := http.NewRequest("GET", "https://backend.flashback.tech/organization/550e8400-e29b-41d4-a716-446655440000/nodes", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}
```

{% endtab %}
{% endtabs %}

> Example responses

> 200 Response

```json
{
  "success": true,
  "data": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "ip": "192.168.1.100",
      "region": "us-west-2",
      "version": "1.2.3",
      "status": "active",
      "url": "https://node1.flashback.tech",
      "id_org": "550e8400-e29b-41d4-a716-446655440000",
      "lastUpdated": "2024-01-15T10:30:00.000Z"
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440002",
      "ip": "192.168.1.101",
      "region": "us-east-1",
      "version": "1.2.3",
      "status": "active",
      "url": "https://node2.flashback.tech",
      "id_org": "550e8400-e29b-41d4-a716-446655440000",
      "lastUpdated": "2024-01-15T10:30:00.000Z"
    }
  ],
  "total": 2
}
```

> 403 Response

```json
{
  "success": false,
  "data": [],
  "total": 0,
  "message": "Access denied: you can only view nodes in your own organization"
}
```

> 500 Response

```json
{
  "success": false,
  "data": [],
  "total": 0,
  "message": "Internal server error"
}
```

#### Responses <a href="#get__organization_-orgid-_nodes-responses" id="get__organization_-orgid-_nodes-responses"></a>

| Status | Meaning                                                                    | Description                               | Schema |
| ------ | -------------------------------------------------------------------------- | ----------------------------------------- | ------ |
| 200    | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)                    | Organization nodes retrieved successfully | Inline |
| 403    | [Forbidden](https://tools.ietf.org/html/rfc7235#section-3.3)               | Access denied - user not in organization  | Inline |
| 500    | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal server error                     | Inline |

#### Response Schema <a href="#get__organization_-orgid-_nodes-responseschema" id="get__organization_-orgid-_nodes-responseschema"></a>

Status Code **200**

| Name      | Type        | Required | Restrictions | Description                             |
| --------- | ----------- | -------- | ------------ | --------------------------------------- |
| » success | boolean     | false    | none         | Indicates if the request was successful |
| » data    | \[NodeInfo] | false    | none         | Array of organization nodes             |
| » total   | number      | false    | none         | Total number of nodes returned          |

**NodeInfo Object**

| Name          | Type              | Required | Restrictions | Description                         |
| ------------- | ----------------- | -------- | ------------ | ----------------------------------- |
| » id          | string            | false    | none         | Unique identifier of the node       |
| » ip          | string            | false    | none         | IP address of the node              |
| » region      | string            | false    | none         | Geographic region of the node       |
| » version     | string            | false    | none         | Version of the node software        |
| » status      | string            | false    | none         | Current status of the node          |
| » url         | string            | false    | none         | Endpoint URL of the node            |
| » id\_org     | string            | false    | none         | Organization ID the node belongs to |
| » lastUpdated | string(date-time) | false    | none         | Last update timestamp               |

Status Code **403**

| Name      | Type        | Required | Restrictions | Description                               |
| --------- | ----------- | -------- | ------------ | ----------------------------------------- |
| » success | boolean     | false    | none         | Indicates if the request was successful   |
| » data    | \[NodeInfo] | false    | none         | Empty array of nodes                      |
| » total   | number      | false    | none         | Total number of nodes (0)                 |
| » message | string      | false    | none         | Error message describing the access issue |

Status Code **500**

| Name      | Type        | Required | Restrictions | Description                               |
| --------- | ----------- | -------- | ------------ | ----------------------------------------- |
| » success | boolean     | false    | none         | Indicates if the request was successful   |
| » data    | \[NodeInfo] | false    | none         | Empty array of nodes                      |
| » total   | number      | false    | none         | Total number of nodes (0)                 |
| » message | string      | false    | none         | Error message describing the server issue |

#### Security

* **BearerAuth**: Bearer token authentication required
* **Organization Access**: User must belong to the specified organization
* **Data Privacy**: Users can only view nodes within their own organization

#### Notes

* Only active (non-deleted) nodes are returned
* Nodes are ordered by ID in descending order (newest first)
* Deleted nodes are automatically excluded from the results
* The response includes both individual node data and a total count
* Empty organization will return an empty data array with total count of 0


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flashback.tech/support-reference/platform-api-reference/storage-apis/node-information/get__organization_-orgid-_nodes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
