DestinationsConnect Meta

Connect Meta

One-click Meta tracking — creates (or updates) BOTH halves of a deduplicated setup: the managed Meta Pixel browser tag (fired by the SDK with the event uuid as Meta's eventID) and a meta_capi server destination sending the same uuid as its CAPI event_id. Idempotent: reconnecting updates the stored config.

curl -X POST "https://mythic-analytics.gulp.workers.dev/client/v1/destinations/integrations/meta" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "pixel_id": "example_string",
  "capi_token": "example_string",
  "event_mapping": {},
  "test_event_code": "example_string",
  "browser_tag": true
}'
{
  "success": true,
  "data": {
    "platform": "example_string",
    "destination_id": "example_string",
    "tag_id": "example_string",
    "browser_tag": true,
    "dedup": {}
  }
}
POST
/client/v1/destinations/integrations/meta
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need destinations:read or destinations:write. See Using an mcp_ key over HTTP.

Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need destinations:read or destinations:write. See Using an mcp_ key over HTTP.
Content-Typestring
Required

The media type of the request body

Options: application/json
pixel_idstring
Required

Meta pixel id (15-16 digits).

Pattern: ^\d{15,16}$
capi_tokenstring

Conversions API system-user token. Required unless a meta_capi credential is already stored. Write-only — never returned.

event_mappingobject

Mythic event name -> Meta event name overrides, merged over the built-in standard-event defaults. Unmapped Mythic events are not sent to Meta.

test_event_codestring

Meta test event code for CAPI verification.

browser_tagboolean

Set false when the site already runs its own Meta pixel — Mythic then only sends CAPI. Default true.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need destinations:read or destinations:write. See Using an mcp_ key over HTTP.

Body

application/json
pixel_idstring
Required

Meta pixel id (15-16 digits).

capi_tokenstring

Conversions API system-user token. Required unless a meta_capi credential is already stored. Write-only — never returned.

event_mappingobject

Mythic event name -\> Meta event name overrides, merged over the built-in standard-event defaults. Unmapped Mythic events are not sent to Meta.

test_event_codestring

Meta test event code for CAPI verification.

browser_tagboolean

Set false when the site already runs its own Meta pixel — Mythic then only sends CAPI. Default true.

Responses