---
agentTools:
  projectIndex: https://developer.moxionpower.com/llms.txt
---

# Authentication

How to authenticate against the Moxion Developer API

# Getting an API Key

Before creating an <<glossary:API Key>>, an identity in the form of a <<glossary:Service Account>> must be created. Service Accounts can be created by <<glossary:Account Admin>>s in the `API` tab of their `Settings` page. If you would like to request the <<glossary:Account Admin>> role for your user, please reach out to your account manager or email <help@moxionpower.com>.

Once a Service Account is created, API Keys for that Service Account can be created in the same tab. By default, Service Accounts have no roles or permissions; these must \[ currently ] be set up manually by Moxion personnel. Please reach out to your account manager or email <help@moxionpower.com> to request permissions for your Service Account.

# Bearer Tokens

The API key should be included as the `Authorization` header with a `bearer `prefix.

```curl
curl 'http://api.moxionpower.com/developer/v1/organizations' \
  -H 'Authorization: bearer <YOUR TOKEN HERE>'
```