Skip to main content
PUT
FIXED · call For new Google Calendar or Cal.com voice bookings, collect spelled name and email separately. Finish the combined read-back and get a later clear yes before the write, even with require_booking_confirmation=false. To reschedule or cancel an existing Cal.com appointment that changed across lookups, read back the current target in full and get a fresh yes. Google Calendar skips this; its moves and cancels follow require_booking_confirmation. Confirm success only after the calendar write succeeds. SMS uses its own flow. NOT OFFERED → do this instead · number The booking zone cannot change general call time. Set calcom_timezone_override on the number to an IANA zone, or null to inherit. Cal.com uses number → agent → saved connection → Europe/London. With a booking context, read effective_calcom_timezone and effective_calcom_timezone_source. Google Calendar keeps its own number-calendar setting. YOU CAN CHANGE · number Supported Google Calendar settings include availability hours, timezone and invitation behaviour. These configure that number’s booking calendar. timezone, hours, slot_minutes, calendar_id, send_invites. SCOPE · number For an owned number assigned to an agent, send only return_url to start Google Calendar consent. Open the returned url for the calendar owner. A competing calendar is refused. Read the number’s status after consent to confirm connection. Read the compact AI rules Save Cal.com settings for an owned phone number. This replaces the saved configuration for this integration; omitted configuration values do not preserve the old values.
Method: PUT ·
Success: 200 ·
Scope: Owning account
The important part
  • Only one booking calendar can cover a number. Start Google Calendar consent with the per-number connect endpoint, then open the returned URL for the calendar owner.
  • Save the setting for the exact owned target, then read it back to confirm.
  • Only one booking provider can be active for a number.
  • Available times and appointment length come from the Cal.com event type and its schedule. Nixflex saves no Cal.com hours or length setting.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential. When personal dashboard sessions are enabled, Owner and Admin sessions can write these settings; Member sessions can read only. Ownership checks still apply. Send Content-Type: application/json.

Request fields

Send a JSON object. Credential values must stay private. Per-number calendar settings override agent settings. A conflict with another booking calendar is checked only after number ownership. This endpoint does not connect or disconnect other integrations. Start Google Calendar consent with the per-number connect endpoint, then open the returned URL for the calendar owner. HTTP 409 booking_provider_conflict refuses a competing calendar before saving. The error identifies the connected provider in details.connected_provider. Number connections and the agent-level fallback are both checked; changing is_active does not bypass that guard. Number-level message pattern: CALENDAR is already connected to NUMBER. Only one booking calendar can be connected to a number at a time - the AI would be given both sets of booking tools and would silently use only one. Disconnect CALENDAR first, then connect Cal.com. Agent-level message pattern: CALENDAR is already connected to this agent, which covers every number on it. Only one booking calendar can be active at a time. Disconnect CALENDAR first, then connect Cal.com. CALENDAR and NUMBER are replaced with the connected calendar label and owned number.

Response fields

200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

Example request

Examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep NIXFLEX_API_KEY in your private process environment. The cURL example uses Bash. Use approved owned fixtures and keep configuration responses private. Python shows sync usage; AsyncNixflex uses the same method with async with and await. Configure the existing MCP installation for the same account at https://api.nixflex.com. Save the request JSON fields from the example below in request-12.json privately before using cURL or CLI; replace fixture credentials only in that private file. Review the target and payload before this write.
request-12.json
MCP does not offer this operation because it accepts private credentials or executable settings; use the API, Node, CLI or Python.

Example response

Illustrative 200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.

Errors

Failures return an error object with code, message, doc_url and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

Retry and idempotency

This is a replacement write with no idempotency token. Read the current settings after a timeout before deciding whether to resend. Never overwrite a newer configuration blindly.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Path Parameters

phoneNumber
string
required

Owned E.164 number. URL-encode the leading plus sign.

Body

application/json

Send a JSON object. Credential values must stay private.

api_key
string
required
write-only

Calendar API credential; trimmed and never returned by GET.

username
string
required

Calendar username; trimmed.

event_slug
string
required

Calendar event slug; trimmed.

is_active
boolean
default:true

Only literal false disables this configuration.

agent_id
string

Fallback agent ID used only when the number has no assigned agent; does not move the number.

default_timezone
string
default:Europe/London

Calendar time zone.

Response

OK

ok
boolean
required

Request succeeded.

phone_number
string
required

Owned phone number.

provider
string
required

Integration identifier.

Allowed value: "calcom"
is_active
boolean
required

Whether the saved integration is enabled.