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
CallGET /devapi/me. It returns the user who owns the key and their account, including your account ID.
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’s403response 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.