> ## Documentation Index
> Fetch the complete documentation index at: https://docs.junction.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Junction Management API

> Use the Junction Management API to programmatically manage organization resources like teams, members, API keys, and ETL pipelines.

<Info>
  [Junction Management API](/api-details/junction-management-api) is available for [the Scale plan](https://tryvital.io/pricing).
</Info>

<Tip>
  The base URL of this endpoint is `https://api.management.junction.com/`.

  The endpoint accepts only [Management Key](/api-details/junction-management-api#authentication) (`X-Management-Key`).
  Team API Key is not accepted.
</Tip>

You use Junction Management API to:

* manage Junction Org resources, such as [Teams](/api-reference/org-management/team/create-team) and [Members](/api-reference/org-management/member/list-members);
* manage Team configurations across both Sandbox and Production environments, such as:
  * [Team features and brand information](/api-reference/org-management/team/update-team);
  * [Team ETL Pipelines](/api-reference/org-management/team-etl-pipeline/upsert-team-etl-pipelines);
  * [Team Custom Credentials](/api-reference/org-management/team-custom-credentials/upsert-team-custom-credentials); and
  * [Team Continuous Query](/api-reference/sense/continuous-query/create).

Note that you can access a lot of Junction Management API functionalities through the [Junction Dashboard](https://app.junction.com/) as well.

<Info>
  For device and lab testing access, see [Junction API](/api-details/junction-api).
</Info>

## Environments

There is one production environment for Junction Management API:

| Environment   | Base URL                               | Management Key Prefix |
| ------------- | -------------------------------------- | --------------------- |
| 🤖 Production | `https://api.management.junction.com/` | `mg_*`                |

## Authentication

Junction Management API accepts a **Management Key**. Enterprise customers can request a Management Key
through your Junction Customer Success Manager.

Your API requests should present the Management Key under the `X-Management-Key` header. For example:

```bash cURL theme={null}
curl --request GET \
  --url "https://api.management.junction.com/v1/org/${ORG_ID}" \
  --header 'X-Management-Key: ${YOUR_MANAGEMENT_KEY}'
```

<Note>
  A [Team API Key](/api-details/junction-api#authentication) does not work with Junction Management API.

  Junction enforces the use of separate API credentials based on the principle of least privilege, especially
  considering the administrative power of Junction Management API.
</Note>
