> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Google Calendar status

> Read the Google Calendar connection for an owned Nixflex number, including reconnect state and whether caller invitations are enabled.

**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](https://docs.nixflex.com/ai-rules.md#bookings-calendars)

Read the Google Calendar connection for an owned Nixflex number, including reconnect state and whether caller invitations are enabled.

Method: **GET** · Success: **200** · Scope: **Owning account**

**The important part**

* connected:false is different from a failed status read.
* needs\_reconnect asks for fresh consent; reconnect keeps business settings.

[Business guide](https://docs.nixflex.com/guides/business/google-calendar.md) · [Developer guide](https://docs.nixflex.com/actions/google-calendar.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Use `Authorization: Bearer KEY_ID:KEY_SECRET` for the owning account. An organisation API key has Owner authority. Personal sessions use the role rules documented in [Authentication](https://docs.nixflex.com/api-reference/authentication.md); do not treat a Member session as an API key.

## Request fields

| Field | Type | Required | Default and limits |
| - | - | - | - |
| `phoneNumber` (path) | string | Yes | Owned E.164 number. URL-encode the leading +. |

Do not send a request body.

`connected: true` means a saved connection exists. If `needs_reconnect: true`, ask for fresh consent; do not label it ready for booking. Disconnected or absent connections return `connected: false`. GET checks Google access with a bounded refresh. A temporary provider failure returns 503 and must not be displayed as a disconnected account. No credential is returned.

## Response fields

`200` returns the following shape.

| Field | Type | Meaning |
| - | - | - |
| `connected` | boolean | Always returned. |
| `account_email` | string or null | Always returned. |
| `calendar_id` | string | Always returned. |
| `connected_at` | string or null | Always returned. |
| `needs_reconnect` | boolean | Always returned. |
| `send_invites` | boolean | Always returned. |

`send_invites` is always a boolean; an absent saved value reads as true.

## Example request

Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. Set `NIXFLEX_API_KEY` privately; never print it.

```bash cURL (Bash) theme={"dark"}
curl --request GET \
  --url 'https://api.nixflex.com/v1/integrations/google-calendar/number/%2B12025550123' \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```javascript Node (HTTP) theme={"dark"}
const response = await fetch('https://api.nixflex.com/v1/integrations/google-calendar/number/%2B12025550123', {
  method: 'GET',
  headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
```

```python Python (HTTP) theme={"dark"}
import os, json
from urllib.request import Request, urlopen

request = Request('https://api.nixflex.com/v1/integrations/google-calendar/number/%2B12025550123', method='GET',
    headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
    result = json.load(response)
# Handle the private result without logging it.
```

```powershell PowerShell (HTTP) theme={"dark"}
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/integrations/google-calendar/number/%2B12025550123' -Headers $headers -DisableKeepAlive
# Handle $result privately.
```

## Example response

Illustrative response with placeholder identifiers.

```json Response theme={"dark"}
{
  "connected": false,
  "account_email": null,
  "calendar_id": "primary",
  "connected_at": null,
  "needs_reconnect": false,
  "send_invites": true
}
```

## Errors

Branch on `error.code`, not the wording of `error.message`. The envelope includes `type`, `code`, `message`, `doc_url` and `details`.

| Status / code | What it means | What to do |
| - | - | - |
| 401 · `unauthorized` | The credential is missing or invalid. | Check the full account credential and API host privately; stop the retry loop. |
| 403 · `permission_denied` | This actor cannot perform the operation. | Resolve the account or role restriction through an authorised person. |
| 403 · `account_unavailable` | The account is unavailable for this operation. | Resolve the account or role restriction through an authorised person. |
| 404 · `number_not_found` | The number is absent or inaccessible to this account. | Check the exact owned identifier and current resource state; do not probe another account. |
| 429 · `rate_limit_exceeded` | The request limit was reached. | Wait at least Retry-After and use a bounded read retry. |
| 503 · `calendar_unavailable` | The calendar operation or status check could not be completed. | Keep the last result unknown and use bounded read retries; do not replace it with empty data. |

Treat 503 as an unknown check result. Do not overwrite the last known connection state.

## Retry and idempotency

Use bounded retries only for temporary read failures. Keep the same filters while paging. See [retry rules](https://docs.nixflex.com/api-reference/retries.md).

## Related endpoints

* [Connect Google Calendar](https://docs.nixflex.com/api-reference/integration-settings/google-calendar.md)
* [Disconnect Google Calendar](https://docs.nixflex.com/api-reference/integration-settings/google-calendar-disconnect.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json GET /integrations/google-calendar/number/{phoneNumber}
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /integrations/google-calendar/number/{phoneNumber}:
    get:
      tags:
        - Google Calendar
      summary: Get Google Calendar status
      description: >-
        Organisation API key or verified dashboard session. Owner/Admin can
        write; Member can read. Other organisations cannot access this number.
      operationId: getNumberGoogleCalendar
      parameters:
        - name: phoneNumber
          in: path
          required: true
          description: Owned E.164 number. URL-encode the leading +.
          schema:
            type: string
            pattern: ^\+[1-9][0-9]{1,14}$
      responses:
        '200':
          description: 'Success. Cache-Control: no-store.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  connected:
                    type: boolean
                  account_email:
                    type:
                      - string
                      - 'null'
                  calendar_id:
                    type: string
                  connected_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  needs_reconnect:
                    type: boolean
                  send_invites:
                    type: boolean
                required:
                  - connected
                  - account_email
                  - calendar_id
                  - connected_at
                  - needs_reconnect
                  - send_invites
              example:
                connected: false
                account_email: null
                calendar_id: primary
                connected_at: null
                needs_reconnect: false
                send_invites: true
        '401':
          description: unauthorized. Standard error envelope; branch on error.code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                required:
                  - error
        '403':
          description: >-
            permission_denied, account_unavailable. Standard error envelope;
            branch on error.code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                required:
                  - error
        '404':
          description: number_not_found. Standard error envelope; branch on error.code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                required:
                  - error
        '429':
          description: rate_limit_exceeded. Standard error envelope; branch on error.code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                required:
                  - error
        '503':
          description: calendar_unavailable. Standard error envelope; branch on error.code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                required:
                  - error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.