Knowledge base · Your account

Create an API key

Make a key for scripts that list domains or manage mailboxes.

4 min read

An API key lets a script work with your account, for example to list your domains or create a mailbox, without your password. Most customers never need one.

Create a key

  1. Open API keys in the sidebar.
  2. Give the key a name that says what it is for.
  3. Add allowed IP addresses or ranges if the script runs from a fixed place. Leave it blank to allow any address.
  4. Create the key and copy the secret straight away. It starts with hq_ and is shown only once.

Use the key

The API base address is https://panel.xcelsus.io/api/v1. Send the key as Authorization: Bearer … or in an X-API-Key header.

  • GET /me returns the account for the key.
  • GET /domains lists your domains.
  • POST /domains/{uuid}/mailboxes creates a mailbox.
  • POST /mailboxes/{uuid}/password changes a mailbox password.
  • POST /mailboxes/{uuid}/delete deletes a mailbox.

Full examples are in the API wiki.

Manage keys

On the API keys page you can change a key’s allowed addresses, revoke it so it stops working, or delete it. Revoke any key you think has leaked.