---
title: Organization API - Notehub API Reference
description: The Notehub Organization API provides RESTful methods that can be used to GET data related to Notehub organizations.
source_url: https://dev.blues.io/api-reference/notehub-api/organization-api/
canonical_url: https://dev.blues.io/api-reference/notehub-api/organization-api/
markdown_url: https://dev.blues.io/api-reference/notehub-api/organization-api.md
---

# Organization API

The Notehub Organization API provides RESTful methods that can be used to retrieve data related to Notehub Organizations.

| Name | HTTP Request |
| - | - |
| [Get Organizations](#get-organizations) | **GET** `/v1/organizations` |
| [Get Organization](#get-organization) | **GET** `/v1/organizations/{organizationUID}` |
| [Get Organization Balance History](#get-organization-balance-history) | **GET** `/v1/organizations/{organizationUID}/balance-history` |

## Get Organizations (Notehub) {#get-organizations}

Get an array of Notehub Organizations.

| | |
| - | - |
| HTTP Method: | `GET` |
| URL: | `https://api.notefile.net/v1/organizations` |
| Minimum Notehub [project-level role:](https://dev.blues.io/notehub/notehub-walkthrough.md#collaborator-roles) | viewer |
| Required HTTP Headers: | `Authorization: Bearer <token>`, where the token is a valid [authentication token](https://dev.blues.io/api-reference/notehub-api.md#authentication). |

Arguments

None

**Example**

**Bash**

```bash
curl -X GET
    -L 'https://api.notefile.net/v1/organizations'
    -H 'Authorization: Bearer <access_token>'
```

**JS**

```javascript
import * as NotehubJs from "@blues-inc/notehub-js";

let defaultClient = NotehubJs.ApiClient.instance;
// Configure Bearer access token for authorization: personalAccessToken
let personalAccessToken = defaultClient.authentications["personalAccessToken"];
personalAccessToken.accessToken = "YOUR ACCESS TOKEN";

let apiInstance = new NotehubJs.OrganizationApi();

apiInstance.getOrganizations().then(
  (data) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data),
    );
  },
  (error) => {
    console.error(error);
  },
);
```

**Python**

```python
import os
from pprint import pprint

import notehub_py

configuration = notehub_py.Configuration(
    access_token=os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with notehub_py.ApiClient(configuration) as api_client:
    api_instance = notehub_py.OrganizationApi(api_client)

    try:
        api_response = api_instance.get_organizations()
        print("The response of OrganizationApi->get_organizations:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling OrganizationApi->get_organizations: %s\n"
            % e
        )
```

**Response Members**

### `uid` {#get-organizations--uid}

*string*

The globally-unique identifier of the organization.

### `name` {#get-organizations--name}

*string*

The name of the organization.

### `role` {#get-organizations--role}

*string*

The role the authenticated user has within the organization:

`org_admin` Full administrative privileges to purchase credits, set up auto-recharge, and invite members.

`billing_manager` Access to billing is granted, but the ability to invite members is restricted.

`project_creator` Access is limited to creating projects within an organization.

`org_member` General access to the organization without billing or project-creation privileges.

Example Response

```json
{
  "organizations": [
    {
      "uid": "00000000-0000-0000-0000-000000000000",
      "name": "Jane's Organization",
      "role": "org_admin"
    },
    {
      "uid": "00000000-0000-0000-0000-000000000000",
      "name": "John's Organization",
      "role": "billing_manager"
    }
  ]
}
```

## Get Organization (Notehub) {#get-organization}

Get information about a single Notehub Organization by its organizationUID.

| | |
| - | - |
| HTTP Method: | `GET` |
| URL: | `https://api.notefile.net/v1/organizations/{organizationUID}` |
| Path Parameters: | - `organizationUID` - The globally-unique identifier of a Notehub organization. |
| Minimum Notehub [project-level role:](https://dev.blues.io/notehub/notehub-walkthrough.md#collaborator-roles) | viewer |
| Required HTTP Headers: | `Authorization: Bearer <token>`, where the token is a valid [authentication token](https://dev.blues.io/api-reference/notehub-api.md#authentication). |

Arguments

None

**Example**

**Bash**

```bash
curl -X GET
    -L 'https://api.notefile.net/v1/organizations/<organizationUID>'
    -H 'Authorization: Bearer <access_token>'
```

**JS**

```javascript
import * as NotehubJs from "@blues-inc/notehub-js";

let defaultClient = NotehubJs.ApiClient.instance;
// Configure Bearer access token for authorization: personalAccessToken
let personalAccessToken = defaultClient.authentications["personalAccessToken"];
personalAccessToken.accessToken = "YOUR ACCESS TOKEN";

let apiInstance = new NotehubJs.OrganizationApi();
let organizationUID = "00000000-0000-0000-0000-000000000000";

apiInstance.getOrganization(organizationUID).then(
  (data) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data),
    );
  },
  (error) => {
    console.error(error);
  },
);
```

**Python**

```python
import os
from pprint import pprint

import notehub_py

configuration = notehub_py.Configuration(
    access_token=os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with notehub_py.ApiClient(configuration) as api_client:
    api_instance = notehub_py.OrganizationApi(api_client)
    organization_uid = "00000000-0000-0000-0000-000000000000"

    try:
        api_response = api_instance.get_organization(organization_uid)
        print("The response of OrganizationApi->get_organization:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling OrganizationApi->get_organization: %s\n" % e
        )
```

**Response Members**

### `uid` {#get-organization--uid}

*string*

The globally-unique identifier of the organization.

### `name` {#get-organization--name}

*string*

The name of the organization.

### `owner` {#get-organization--owner}

*string*

The name of the owner of the organization.

### `contact_uid` {#get-organization--contactuid}

*string*

The globally-unique identifier of the organization's primary contact.

### `email` {#get-organization--email}

*string*

The email address of the organization's primary contact.

### `suspended` {#get-organization--suspended}

*boolean*

Whether or not the organization is suspended.

### `plan` {#get-organization--plan}

*object*

An object containing the organization's current plan information.

### `plan.type` {#get-organization--plan-type}

*string*

The type of plan associated with this organization. One of `"Enterprise"` or `"Essentials"`.

### `plan.current_balance` {#get-organization--plan-currentbalance}

*integer*

The event capacity remaining on the plan.

### `plan.start_date` {#get-organization--plan-startdate}

*string (date)*

The start date of the current plan period.

### `plan.end_date` {#get-organization--plan-enddate}

*string (date)*

For enterprise organizations, the end date of the current plan period.

### `plan.event_capacity` {#get-organization--plan-eventcapacity}

*integer*

For enterprise organizations, the total event capacity for the current plan period.

Example Response

```json
{
  "uid": "00000000-0000-0000-0000-000000000000",
  "name": "Jane's Organization",
  "owner": "Jane Doe",
  "contact_uid": "00000000-0000-0000-0000-000000000000",
  "email": "jane@example.com",
  "suspended": false,
  "plan": {
    "type": "Essentials",
    "current_balance": 5000,
    "start_date": "2026-01-01T00:00:00Z",
    "end_date": "2027-01-01T00:00:00Z"
  }
}
```

## Get Organization Balance History (Notehub) {#get-organization-balance-history}

Get the event balance history for a Notehub Organization.

| | |
| - | - |
| HTTP Method: | `GET` |
| URL: | `https://api.notefile.net/v1/organizations/{organizationUID}/balance-history` |
| Path Parameters: | - `organizationUID` - The globally-unique identifier of a Notehub organization. |
| Minimum Notehub [project-level role:](https://dev.blues.io/notehub/notehub-walkthrough.md#collaborator-roles) | viewer |
| Required HTTP Headers: | `Authorization: Bearer <token>`, where the token is a valid [authentication token](https://dev.blues.io/api-reference/notehub-api.md#authentication). |

Arguments

### `startDate` {#get-organization-balance-history--startdate}

*integer (optional)*

Start date for filtering results, specified as a Unix timestamp. Defaults to the start of the organization's current billing period.

### `endDate` {#get-organization-balance-history--enddate}

*integer (optional)*

End date for filtering results, specified as a Unix timestamp. Defaults to the current time.

**Example**

**Bash**

```bash
curl -X GET
    -L 'https://api.notefile.net/v1/organizations/<organizationUID>/balance-history'
    -H 'Authorization: Bearer <access_token>'
```

**JS**

```javascript
import * as NotehubJs from "@blues-inc/notehub-js";

let defaultClient = NotehubJs.ApiClient.instance;
// Configure Bearer access token for authorization: personalAccessToken
let personalAccessToken = defaultClient.authentications["personalAccessToken"];
personalAccessToken.accessToken = "YOUR ACCESS TOKEN";

let apiInstance = new NotehubJs.OrganizationApi();
let organizationUID = "00000000-0000-0000-0000-000000000000";

apiInstance.getOrganizationBalanceHistory(organizationUID).then(
  (data) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data),
    );
  },
  (error) => {
    console.error(error);
  },
);
```

**Python**

```python
import os
from pprint import pprint

import notehub_py

configuration = notehub_py.Configuration(
    access_token=os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with notehub_py.ApiClient(configuration) as api_client:
    api_instance = notehub_py.OrganizationApi(api_client)
    organization_uid = "00000000-0000-0000-0000-000000000000"

    try:
        api_response = api_instance.get_organization_balance_history(
            organization_uid
        )
        print(
            "The response of OrganizationApi->get_organization_balance_history:\n"
        )
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling OrganizationApi->get_organization_balance_history: %s\n"
            % e
        )
```

**Response Members**

### `data` {#get-organization-balance-history--data}

*array of objects*

An array of objects containing event balance history, with one entry per calendar day, ordered oldest to newest. Each object contains the following fields:

### `data.period` {#get-organization-balance-history--data-period}

*string (date)*

The start of the time period for this balance record.

### `data.remaining_event_capacity` {#get-organization-balance-history--data-remainingeventcapacity}

*integer*

The number of events remaining in the organization's capacity at the end of this period.

### `data.total_event_capacity_used` {#get-organization-balance-history--data-totaleventcapacityused}

*integer*

The total number of events consumed from the organization's capacity during this period.

Example Response

```json
{
  "data": [
    {
      "period": "2026-01-01T00:00:00Z",
      "remaining_event_capacity": 15000,
      "total_event_capacity_used": 5000
    },
    {
      "period": "2026-01-02T00:00:00Z",
      "remaining_event_capacity": 10000,
      "total_event_capacity_used": 5000
    },
    {
      "period": "2026-01-03T00:00:00Z",
      "remaining_event_capacity": 5000,
      "total_event_capacity_used": 5000
    }
  ]
}
```

[Monitor API](https://dev.blues.io/api-reference/notehub-api/monitor-api.md "Monitor API") [Project API](https://dev.blues.io/api-reference/notehub-api/project-api.md "Project API")

Can we improve this page? [Send us feedback](mailto:devrel@blues.com)
