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

# Contactupdated

> Sent to your webhook URL when a `Contact.Updated` event happens, if the webhook subscribes to it. The body is the event payload. Failed deliveries (non-2xx or timeout) are retried up to 5 times with increasing delays.



## OpenAPI

````yaml /api-reference/openapi.json webhook Contact.Updated
openapi: 3.1.0
info:
  title: Gallabox Developer API
  version: 0.0.1
  summary: >-
    Send WhatsApp messages, manage contacts and conversations, and automate your
    Gallabox inbox.
  description: >
    The Gallabox Developer API lets your systems send WhatsApp and Instagram
    messages, keep contacts in sync, work

    the shared inbox, manage templates and broadcasts, and receive events
    through webhooks.


    ## Overview

    The API follows REST. URLs name resources, methods say what to do with them
    (`GET` reads, `POST` creates or

    acts, `PATCH` and `PUT` update, `DELETE` removes), request bodies are JSON
    (`Content-Type: application/json`),

    and every response is JSON. All requests go to `https://server.gallabox.com`
    over HTTPS, under `/devapi`.


    ## Concepts

    - **Account ID** (`accountId`): your Gallabox account. Most URLs contain it,
    as in
      `/devapi/accounts/{accountId}/contacts`, and it must be the account the API key belongs to. `GET /devapi/me`
      returns it.
    - **Channel ID** (`channelId`): one connected WhatsApp number, Instagram
    account, web chat or email inbox. Sending
      a message needs one. `GET /devapi/accounts/{accountId}/channels` lists them.
    - **Contact**, **conversation** and **message** IDs are 24-character
    hexadecimal strings returned by the API and
      included in webhook events.

    ## Authentication

    Create an API key on the **Settings** page in Gallabox. Send the key and its
    secret as headers on every

    request:


    ```http

    GET /devapi/me HTTP/1.1

    Host: server.gallabox.com

    apiKey: <your API key>

    apiSecret: <your API secret>

    ```


    `GET /devapi/me` is a good first call: it returns your user and account. A
    missing or wrong key returns `401`.

    Each key belongs to one account and has a permission scope (`all`,
    `restricted` or `read-only`) that decides

    what it may do.


    ## Rate limits

    - **General limit:** each account can make 200 requests a minute (your plan
    may allow more). Responses carry
      `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (when the window resets). Over the limit
      you get `429` with `X-RateLimit-Retry-After`, the seconds to wait.
    - **Message sending:** the send endpoints (marked `x-rate-limit:
    message-send`) use a separate limit per plan:
      8, 16 or 5,000 messages every 5 seconds. Over the limit you get `429` with `Retry-After`, the seconds to wait.

    ```http

    HTTP/1.1 429 Too Many Requests

    X-RateLimit-Limit: 200

    X-RateLimit-Remaining: 0

    X-RateLimit-Retry-After: 42


    {"status": "RequestLimitHit", "message": "Account rate limit exceeded. Too
    many requests per minute."}

    ```


    ## Plans and permissions

    Some endpoints need a plan feature (listed under `x-entitlements`) or a
    permission on the API key's role

    (listed under `x-permissions`). Either one missing returns `403`, and each
    endpoint's `403` response says

    which. If the account is disconnected, every call returns `402` until it is
    active again.


    ## Errors

    Errors return a JSON body with `status` and `message`. Validation errors
    (`422`) add `error`, a readable

    summary, and `errors`, the problem with each field.


    | Code | Meaning |

    | --- | --- |

    | `401` | The API key or secret is missing or wrong. |

    | `402` | The account is disconnected. |

    | `403` | The plan doesn't include the feature, or the key's role doesn't
    allow the action. |

    | `404` | The resource doesn't exist in this account. |

    | `421` | A send was refused because of the contact's settings, such as no
    opt-in. |

    | `422` | The request failed validation. |

    | `429` | Rate limit reached. |
  contact:
    name: Gallabox Support
    url: https://gallabox.com
  license:
    name: Proprietary
servers:
  - url: https://server.gallabox.com
    description: Production
security:
  - apiKey: []
    apiSecret: []
tags:
  - name: Account
    description: The API key's account and wallet balance.
  - name: Messages
    description: Send WhatsApp messages, track delivery and read message history.
  - name: Direct Send
    description: >-
      Send a Utility message without creating a template first; Meta creates the
      template automatically.
  - name: Instagram
    description: Send Instagram direct messages.
  - name: Contacts
    description: Create, update, find and delete contacts, and manage their tags.
  - name: Segments
    description: Saved contact filters, used as broadcast audiences.
  - name: Tags
    description: The account's tags.
  - name: Custom Fields
    description: Custom contact fields.
  - name: Conversations
    description: Assign, tag, resolve and annotate conversations in the shared inbox.
  - name: WhatsApp Templates
    description: Create, list and edit WhatsApp message templates.
  - name: Broadcasts
    description: Send a template to a segment and read per-recipient results.
  - name: Webhooks
    description: >-
      Subscribe a URL to account events. Event payloads are listed under
      Webhooks in the reference.
  - name: WhatsApp Groups
    description: Create and manage WhatsApp groups, their participants and messages.
  - name: Users and Teams
    description: Invite and remove users, set availability, and map users to teams.
  - name: Channels
    description: The account's WhatsApp, Instagram and other channels.
  - name: Click-to-WhatsApp Ads
    description: Report conversions from Click-to-WhatsApp ads to Meta.
  - name: Analytics
    description: Template analytics and exports.
  - name: Media
    description: Upload media to use in messages and templates.
paths: {}
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apiKey
      description: API key from Settings → API keys.
    apiSecret:
      type: apiKey
      in: header
      name: apiSecret
      description: Secret shown once when the API key is created.

````

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