Bronjoy
Developers

Bronjoy API keys and request authentication

How to create a Bronjoy API key, authenticate Integrations API v1 requests, fetch free slots and create a booking from your own site or CRM.

The Integrations API v1 gives access to one business's bookings, clients, services and schedule. A key acts as the business: bookings made through the API need no confirmation code.

The API and webhooks are part of the Avtopilot plan. Only the owner can create keys, and the business must be verified.

Create a key

  1. In the Bronjoy dashboard open Settings → API & webhooks.
  2. Under API keys click Create key.
  3. Under Name say what will use it, for example "Website" or "amoCRM".
  4. Choose when it Expires and create the key.
  5. Copy the key right away — it starts with bj_live_ and is never shown again.

You can have up to 10 active keys. Give each integration its own, so you can Revoke one without breaking the rest.

Call the API from your server only. Never put a key into a web page or a mobile app.

Authentication

Send the key in a header — either form works:

Authorization: Bearer bj_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
X-Api-Key: bj_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Endpoints

MethodPathWhat it does
GET/api/v1/organizationThe business
GET/api/v1/servicesServices
GET/api/v1/staffStaff
GET/api/v1/branchesBranches
GET/api/v1/availabilityFree slots for a service and date
GET/api/v1/appointmentsList bookings
POST/api/v1/appointmentsCreate a booking
GET/api/v1/appointments/{id}One booking
POST/api/v1/appointments/{id}/cancelCancel a booking
POST/api/v1/appointments/{id}/rescheduleReschedule a booking
GET/api/v1/clientsClients
GET/api/v1/clients/{id}One client

Parameters and response shapes are in the API reference.

Example: a booking from your own site

1. Free slots. Take service_id from /api/v1/services.

curl "https://api.bronjoy.com/api/v1/availability?service_id=12&date=2026-12-01" \
  -H "Authorization: Bearer $BRONJOY_KEY"

The response lists slots and the business's time zone.

2. Create a booking on one of those times:

curl -X POST "https://api.bronjoy.com/api/v1/appointments" \
  -H "Authorization: Bearer $BRONJOY_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1042" \
  -d '{
    "service_id": 12,
    "start_time": "2026-12-01T11:30:00+05:00",
    "client": { "name": "Anna", "phone": "+998901234567" },
    "notes": "First visit"
  }'
  • staff_id and branch_id are optional.
  • The client needs a phone or an email.
  • The time must be one of the /api/v1/availability slots. A taken or off-grid time returns 422.
  • Idempotency-Key protects against double bookings: a retry with the same key within 24 hours returns the first booking instead of making a new one.

The response is 201 with the booking under data. Webhooks use the same shape.

Limits and errors

CodeWhy
401No key, or the key is wrong, revoked or expired
403The plan has no API (upgrade_required: true, feature: "api_access")
422Invalid data, or the time is already taken
429More than 120 requests a minute per key

Other ways to authenticate

The Bronjoy apps use the same API with user tokens (/api/org/…, /api/client/…). For integrations use API keys: they're tied to one business, can be revoked and don't depend on a staff member. The token for the organization MCP server is created separately.

Copyright © 2026