Skip to main content
Every request sends your API key and secret as headers:

Create an API key

Go to Settings → Developer → API Keys in Gallabox and click Add new. Gallabox shows the secret only once, so store it safely. See API Keys for the full steps. Each key belongs to one account. In URLs that contain {accountId}, use the account the key belongs to.

Check that your key works

Call GET /devapi/me. It returns the user who owns the key and their account, including your account ID.
A missing or wrong key returns 401:

What a key is allowed to do

  • Permission scope. When you create a key, you choose All, Read only or Restricted. A request the key isn’t allowed to make returns 403. Each endpoint’s 403 response names the permission it needs.
  • Plan. Some endpoints need a feature of your Gallabox plan. Without it, they also return 403.
  • The key’s creator. A key works with the access of the user who created it. If that user is removed from the account, the key stops working.
Keep the secret on your server. Don’t put it in a website, a mobile app or anything else your customers can see.