Converly Destinations API

The Destinations API from Converly — 4 operation(s) for destinations.

GitHub OpenAPI

Operations 7

GET /destinations Get destinations #
POST /destinations Create destinations #
GET /destinations/{id} Get destinations by id #
DELETE /destinations/{id} Delete destinations by id #
GET /destinations/{id}/conversions Get destinations by id conversions #
POST /destinations/{id}/conversions Create destinations by id conversions #
POST /destinations/oauth-handoffs Create destinations oauth handoffs #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/converly-io:converly-io-destinations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

converly-io-destinations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Converly Io Destinations API
  version: 1.0.0
  description: 'Operations tagged Destinations across 2 of this provider''s published API definitions: converly-io-openapi.json, converly-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.converly.io/api/v1
tags:
- name: Destinations
paths:
  /destinations:
    get:
      description: 'List the server-side destination types with their connection state, one item per type — `connected: true/false` indicates whether credentials are configured. Browser-side pixel destinations never appear here; they are catalogue-only via /v1/destination-types. has_more is always false; pagination is vestigial here.'
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
        required: false
        description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
        name: site_id
        in: query
      responses:
        '200':
          description: List of destinations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedDestinations'
      tags:
      - Destinations
      summary: Get destinations
      x-summary-source: derived
      operationId: getDestinations
      x-operation-id-source: derived
    post:
      description: 'Connect Meta via paste-token. For a Meta reconnect result with next_action=retry_check or wait, POST {destination_type: ''meta'', attempt_id} without credentials to check the same saved candidate and recover its exact receipt. This uses the same authenticated site and never prepares a replacement attempt. Incomplete Meta results include reconnect and return connect_incomplete (400 for access_denied, otherwise 503). Google Ads and Google Analytics connect through POST /destinations/oauth-handoffs; a `google-analytics` body here answers 400 unsupported_destination and nothing is sent anywhere. Cross-service idempotency.'
      security:
      - BearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDestinationBody'
      responses:
        '201':
          description: Destination connected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '400':
          description: Validation failure, unsupported_destination for a `google-analytics` body (connect GA4 through POST /destinations/oauth-handoffs), credentials_rejected, Meta access_denied with its reconnect result, or connection_restart_required when the requested Meta attempt cannot be resumed (start a new connection; no reconnect envelope).
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ErrorEnvelope'
                - type: object
                  properties:
                    reconnect:
                      type: object
                      additionalProperties: {}
        '502':
          description: Delivery service failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: Meta connection incomplete or current metadata unavailable. Follow reconnect.next_action; retry a retained candidate by posting its attempt_id. A complete receipt remains authoritative even when the current metadata read failed.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ErrorEnvelope'
                - type: object
                  properties:
                    reconnect:
                      type: object
                      additionalProperties: {}
      tags:
      - Destinations
      summary: Create destinations
      x-summary-source: derived
      operationId: postDestinations
      x-operation-id-source: derived
    servers:
    - url: https://app.converly.io/api/v1
  /destinations/{id}:
    get:
      description: Get one destination's state.
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          enum:
          - dest_google-ads
          - dest_meta
          - dest_google-analytics
          - dest_reddit-ads
          - dest_linkedin-ads
          - dest_tiktok-ads
          - dest_chatgpt-ads
        required: true
        name: id
        in: path
      - schema:
          type: string
          description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
        required: false
        description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
        name: site_id
        in: query
      responses:
        '200':
          description: The destination.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '404':
          description: Structured error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Destinations
      summary: Get destinations by id
      x-summary-source: derived
      operationId: getDestinationsById
      x-operation-id-source: derived
    delete:
      description: Disconnect a destination — removes its stored credential in the delivery service. Powers the native builder's 'Disconnect' button. Requires the narrow `destinations:disconnect` scope (held by site-scoped plugin tokens so Wix can disconnect without carrying destinations:write). Removal only — never exposes credential material.
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          enum:
          - dest_google-ads
          - dest_meta
          - dest_google-analytics
          - dest_reddit-ads
          - dest_linkedin-ads
          - dest_tiktok-ads
          - dest_chatgpt-ads
        required: true
        name: id
        in: path
      - schema:
          type: string
          description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
        required: false
        description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
        name: site_id
        in: query
      responses:
        '200':
          description: Disconnected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationDisconnectResponse'
        '400':
          description: no_site_configured — the account has no site
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Structured error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '502':
          description: delivery_service_error — the disconnect failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Destinations
      summary: Delete destinations by id
      x-summary-source: derived
      operationId: deleteDestinationsById
      x-operation-id-source: derived
    servers:
    - url: https://app.converly.io/api/v1
  /destinations/{id}/conversions:
    get:
      description: 'List the conversion actions / pixel events in a connected destination (the picker source the native builder reads). destinations:read — a site-scoped Wix token can re-list + pick. ?refresh=true forces a delivery-side cache refresh. ?site_id targets a specific site''s connected ad account: optional on single-site accounts, REQUIRED for account-wide credentials on multi-site accounts (a site-scoped credential may only pass its own site). The body is a passthrough of the delivery service''s conversions response. For the five membership-validated destinations (reddit-ads, tiktok-ads, pinterest-ads, snapchat-ads, chatgpt-ads) the values served here are the ONLY values flow writes accept.'
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          enum:
          - dest_google-ads
          - dest_meta
          - dest_google-analytics
          - dest_reddit-ads
          - dest_linkedin-ads
          - dest_tiktok-ads
          - dest_chatgpt-ads
        required: true
        name: id
        in: path
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
        required: false
        name: refresh
        in: query
      - schema:
          type: string
          description: Prefixed site id (site_…) whose connected ad account to read. Required on multi-site accounts for account-wide credentials.
        required: false
        description: Prefixed site id (site_…) whose connected ad account to read. Required on multi-site accounts for account-wide credentials.
        name: site_id
        in: query
      responses:
        '200':
          description: Conversions list (delivery-service passthrough).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversionsListResponse'
        '400':
          description: no_site — the account has no site configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Structured error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Google Ads connection absent for this site (delivery envelope passthrough, both error and error_code carry google_ads_connection_absent).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAdsConnectionAbsentResponse'
      tags:
      - Destinations
      summary: Get destinations by id conversions
      x-summary-source: derived
      operationId: getDestinationsByIdConversions
      x-operation-id-source: derived
    post:
      description: 'Create a NEW conversion in a connected destination''s ad account — Google Ads (category required), LinkedIn OAuth connections (category + conversion_method from the list''s creatable_methods), and provisioned ChatGPT Ads (event_type). Whether a given connection can create is connection-dependent: read supports_create from the conversions list, never assume. Accepts EITHER destinations:write or the narrower destination_conversions:write (the agent scope, which does not authorize credential ingestion); plugin tokens hold neither. This writes a PERMANENT object into the customer''s real ad account — a ChatGPT Ads conversion event can never be deleted. Send an Idempotency-Key header: it is forwarded to the delivery-side at-most-once ledger, so a retry after an ambiguous timeout replays instead of double-creating (keyless requests currently warn via Deprecation/Warning headers and get NO duplicate protection; the key becomes mandatory after the announced grace window). ?site_id as on GET — and it matters more here.'
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          enum:
          - dest_google-ads
          - dest_meta
          - dest_google-analytics
          - dest_reddit-ads
          - dest_linkedin-ads
          - dest_tiktok-ads
          - dest_chatgpt-ads
        required: true
        name: id
        in: path
      - schema:
          type: string
          description: Prefixed site id (site_…) whose connected ad account to create in. Required on multi-site accounts for account-wide credentials.
        required: false
        description: Prefixed site id (site_…) whose connected ad account to create in. Required on multi-site accounts for account-wide credentials.
        name: site_id
        in: query
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: {}
      responses:
        '201':
          description: Created conversion (delivery-service passthrough — status mirrors the delivery response, 201 on create).
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
        '400':
          description: no_site
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Structured error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Destinations
      summary: Create destinations by id conversions
      x-summary-source: derived
      operationId: postDestinationsByIdConversions
      x-operation-id-source: derived
    servers:
    - url: https://app.converly.io/api/v1
  /destinations/oauth-handoffs:
    post:
      description: Start an OAuth flow for a Google destination. Google Ads returns the canonical Converly hosted handoff page, which prepares a scoped attempt before consent. Google Analytics retains a direct Google consent URL with state `hdf:google-analytics:`. 30-min TTL. Meta uses POST /handoffs instead.
      security:
      - BearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOAuthHandoffBody'
      responses:
        '201':
          description: Handoff with OAuth URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Handoff'
        '400':
          description: Structured error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: oauth_not_configured — server missing GOOGLE_OAUTH_CLIENT_ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Destinations
      summary: Create destinations oauth handoffs
      x-summary-source: derived
      operationId: postDestinationsOauthHandoffs
      x-operation-id-source: derived
    servers:
    - url: https://app.converly.io/api/v1
components:
  schemas:
    MetaCredentials:
      type: object
      properties:
        access_token:
          type: string
          minLength: 20
          description: Meta Graph API access token. ≥20 chars.
        meta_pixel_id:
          type: string
          pattern: ^\d+$
          description: Meta pixel id — numeric string.
      required:
      - access_token
      - meta_pixel_id
    Handoff:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/HandoffId'
        purpose:
          type: string
          enum:
          - connect_destination
          - connect_trigger_source
          - add_card
          - complete_signup
          - device_code_signup
        status:
          type: string
          enum:
          - pending
          - completed
          - cancelled
          - expired
        url:
          type: string
          description: 'For `/v1/handoffs` and Google Ads `/v1/destinations/oauth-handoffs`: a Converly-hosted connect page. Opening is read-only; the human starts authorization there. GA4 `/v1/destinations/oauth-handoffs` retains a direct Google consent URL.'
        short_code:
          type:
          - string
          - 'null'
        result:
          type:
          - object
          - 'null'
          additionalProperties: {}
          description: 'Populated when status === ''completed''. For connect_destination: { destination_id, destination_type, customer_id?, descriptive_name?, connected_email? } — destination_id is the `dest_<slug>` id used by GET /v1/destinations/{id}/conversions. Prepared Google Ads and Meta completions also include reconnect with its immutable receipt and connection_revision. The result stays historical after a later renewal; current access, setup and intake are separate connection_snapshot facts. Meta retains its fixed pixel through disconnect and token replacement. Google Analytics (GA4) connections additionally carry { property_id?, stream_id?, measurement_id? }, and customer_id mirrors property_id. For connect_trigger_source (created via the MCP surface): { integration_id, integration_label, connected_email? }.'
        expires_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
      - id
      - purpose
      - status
      - url
      - short_code
      - result
      - expires_at
      - completed_at
      - created_at
    CreateOAuthHandoffBody:
      type: object
      properties:
        destination_type:
          type: string
          enum:
          - google-ads
          - google-analytics
          description: Only Google destinations — Meta uses a different flow.
        return_url:
          type: string
          maxLength: 500
          format: uri
        site_id:
          type: string
          description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
      required:
      - destination_type
    PaginatedDestinations:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Destination'
        has_more:
          type: boolean
        next_cursor:
          type:
          - string
          - 'null'
      required:
      - data
      - has_more
      - next_cursor
    ConversionsListResponse:
      type: object
      properties:
        conversions:
          type: array
          items:
            type: object
            properties:
              usable:
                type: boolean
                description: Google Ads only. Whether this conversion action's type can receive the sends Converly makes today (browser and multi-source events). When false, flow writes and publishes that pick this conversion are refused; pick an entry whose usable is true, or create one. A missing usable field means no verdict, not unusable. usable true does not mean instantly sendable, because a newly created action takes a few minutes to activate at Google.
              reason:
                type: string
                description: Machine reason code, present only when usable is false (for example google_ads_wrong_type, meaning Google created this action itself and its type cannot receive conversions from Converly).
            additionalProperties: {}
        supports_custom:
          type: boolean
        supports_create:
          type: boolean
        creatable_methods:
          type: array
          items:
            type: string
        discovery_supported:
          type: boolean
        reason:
          type: string
        last_synced_at:
          type:
          - string
          - 'null'
        stale:
          type: boolean
      required:
      - conversions
    Destination:
      type: object
      properties:
        id:
          type: string
          enum:
          - dest_google-ads
          - dest_meta
          - dest_google-analytics
          - dest_reddit-ads
          - dest_linkedin-ads
          - dest_tiktok-ads
          - dest_chatgpt-ads
          description: Literal destination id — NOT a UUID. One per destination type; hardcoded, globally unique.
        integration:
          type: string
          enum:
          - google-ads
          - meta
          - google-analytics
          - reddit-ads
          - linkedin-ads
          - tiktok-ads
          - chatgpt-ads
        name:
          type: string
        status:
          type: string
          description: 'Detail beyond `connected`, when the delivery service reports it: `pending` | `rejected` | `cancelled` | `connection_broken`. Omitted for never-touched destinations. A `connection_broken` destination still HAS a stored credential and is still disconnectable, even though `connected` is false.'
        connection_type:
          type: string
          description: '`oauth` | `oauth_or_paste_token`. Differs from `/v1/destination-types.connection_types[]` — that one is the list of methods that exist; this is the current preferred path.'
        connected:
          type: boolean
        connection_metadata:
          type: object
          additionalProperties: {}
          description: 'Non-secret destination metadata. Google Ads and Meta include connection_snapshot version 2: fixed target, binding_id, connection_revision and independent access, setup and intake facts. A retained target remains after disconnect; completion does not prove attribution or reporting.'
        reconnect:
          type: object
          additionalProperties: {}
          description: Meta manual-connect result. Complete includes an immutable receipt for the exact attempt and connection revision; it is independent of later current-state reads.
      required:
      - id
      - integration
      - name
      - connection_type
      - connected
      - connection_metadata
      description: Proxy view over the delivery service's destination state. Destinations live in the delivery service, not the frontend DB.
    CreateDestinationBody:
      anyOf:
      - type: object
        properties:
          destination_type:
            type: string
            enum:
            - meta
          site_id:
            type: string
            description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
          credentials:
            $ref: '#/components/schemas/MetaCredentials'
        required:
        - destination_type
        - credentials
        additionalProperties: false
      - type: object
        properties:
          destination_type:
            type: string
            enum:
            - meta
          site_id:
            type: string
            description: The site (prefixed site_… id) whose connections this call reads or changes. Required for account-wide keys on accounts with more than one site (otherwise 400 site_id_required, listing the sites). A site-scoped token uses its bound site.
          attempt_id:
            type: string
            format: uuid
            description: Public attempt_id from a prior Meta reconnect result. Recheck its saved candidate under the same authenticated site; omit credentials.
        required:
        - destination_type
        - attempt_id
        additionalProperties: false
      description: 'Meta paste-token connect, or same-candidate Meta retry using attempt_id. Provide either credentials or attempt_id, never both. Does NOT support `google-ads` or `google-analytics`: both connect through POST /destinations/oauth-handoffs (a `google-analytics` body here answers 400 unsupported_destination).'
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
              - invalid_request_error
              - authentication_error
              - permission_error
              - not_found_error
              - rate_limit_error
              - delivery_service_error
              - internal_error
              - idempotency_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
          required:
          - type
          - code
          - message
      required:
      - error
    HandoffId:
      type: string
      pattern: ^hdf_[0-9A-Za-z]{22}$
    DestinationDisconnectResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
          - destination
        disconnected:
          type: boolean
          enum:
          - true
        notices:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Stable machine readable identifier, e.g. `provider_grant_retained` (the shared Google sign in grant was kept) or `remote_measurement_secret_retained` (GA4 Measurement Protocol secrets Converly created could not be removed yet).
              message:
                type: string
                description: Human readable sentence, written once on the delivery side. Show it verbatim.
            required:
            - code
            - message
          description: Present when the disconnect left something outstanding that the caller must surface. Omitted when there is nothing to report.
        cleanup_pending:
          type: boolean
          description: GA4 only. True when remote Measurement Protocol secrets remain and a later DELETE of the same destination retries the cleanup. Omitted for destinations without remote cleanup.
      required:
      - id
      - object
      - disconnected
    GoogleAdsConnectionAbsentResponse:
      type: object
      properties:
        error:
          type: string
          enum:
          - google_ads_connection_absent
        error_code:
          type: string
          enum:
          - google_ads_connection_absent
        user_message:
          type: string
        hint:
          type: string
        details:
          type: string
      required:
      - error
      - error_code
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_live_...
    InternalBearer:
      type: http
      scheme: bearer
      bearerFormat: JOBS_SECRET
      description: Shared internal secret. This is NOT an sk_live_* API key. Used by /v1/signup and internal job endpoints.
x-refined-from:
- converly-io-openapi.json
- converly-io-openapi.yml