Before you start
API access is included on Tier 4 and above. On a lower plan, Settings → Developer stays locked until the plan is upgraded or Lunacal turns the feature on for that account. Agency client accounts do not see the Developer tab.
- Sign in to Lunacal.
- Open Settings → Developer.
- Create a key and store it somewhere only your server can read. The steps are on Create and use an API key.
How a request is shaped
A successful call returns the result as JSON. A failed call returns JSON with a
message field. The status codes are explained on Errors.
Keep the key in an environment variable named LUNACAL_API_KEY. The examples on these pages use that name.
What you can call
If the account later drops below Tier 4, most of these routes answer
403. Creating and cancelling a booking still accept a key that was valid when it was issued. See Errors.
Try it
This call returns the profile of the key’s owner. You needid, email, username, and timeZone for almost every other call. The response also includes plan and branding fields that the Lunacal app uses. Rely on the four fields above.