---
title: "Create a connector — estimate"
method: POST
path: "/v1/messaging/accounts/{accountId}/business-agent/connectors/estimate"
tags: ["Business Agent"]
---

# Create a connector — estimate

`POST /v1/messaging/accounts/{accountId}/business-agent/connectors/estimate`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/messaging/accounts/{accountId}/business-agent/connectors/estimate`
- Auth: HTTP bearer

Price the request without executing it. Same body as `POST /v1/messaging/accounts/{accountId}/business-agent/connectors`.

## Path parameters

- `accountId` string, required: WhatsApp social account id (the number must be managed through the Cloud API).

## Request body

- object
  - `name` string, required: Unique per number.
  - `base_url` string, uri, required: Public HTTPS URL reachable from Meta.
  - `auth_type` 'OAUTH2_CLIENT_CREDENTIALS' | 'API_KEY' | 'NONE', required
  - `auth_config` object
    - `api_key` object: Where the connector injects the API key on each call.
      - `headers` object[]
        - `value` string, required
        - `prefix` string
        - `field_name` string, required
      - `body_params` object[]
        - `value` string, required
        - `prefix` string
        - `field_name` string, required
      - `query_params` object[]
        - `value` string, required
        - `prefix` string
        - `field_name` string, required
    - `oauth2_client_credentials` object
      - `client_id` string, required
      - `token_url` string, uri, required
      - `client_secret` string, required
      - `scopes_to_request` string[]
      - `token_request_content_type` string
  - `description` string: Tell the agent what the service provides.
  - `connector_protocol` string
  - `requires_certificate` boolean
  - `user_auth_injection_config` object
    - `prefix` string
    - `location` string, required
    - `field_name` string, required

## Response `200`

Estimate

- Estimate
  - `operation` string
  - `estimated_credits` number
  - `credits_to_reserve` number
  - `estimated_usage` object
  - `note` string, nullable
  - `balance` object
    - `available` number
  - `sufficient` boolean

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
