> For the complete documentation index, see [llms.txt](https://docs.edgetag.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgetag.io/channels/meta/api.md).

# API

{% hint style="warning" %}
This section is intended for developers utilizing our APIs to add channels.
{% endhint %}

Below you will find the keys to generate secret payloads for adding or updating a channel via the [Script API](/api/api/script.md).

Refer to the [configuration page](/channels/meta/configuration.md) for detailed information on the purpose and usage of each input.

### FB\_ACCESS\_TOKEN

See the [config description](/channels/meta/onboarding.md#pixel-access-token).

**Example value**\
ECBBVs8c0W1kBPCZCm\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*w9O2kRWOQc9WKCa2lkzYiuGyZDZD

**Type**\
PASSWORD

**Optional**\
true

### FB\_PIXEL\_ID

Use for storing the Dataset ID, previously known as Pixel ID.

**Example value**\
45155\*\*\*7961584\
\
**Type**\
IDENTIFIER\
\
**Optional**\
false

### FB\_ACCOUNT\_ID

Use for storing Ad Account ID

**Example value**\
2383\*\*\*\*\*14400322\
\
**Type**\
TEXT\
\
**Optional**\
false

### FB\_PIXEL\_BROWSER

See the [config description](/channels/meta/configuration.md#enable-browser-pixel).

**Possible values**\
1 or 0

**Type**\
CHECKBOX

**Optional**\
true

### FB\_PRODUCT\_ID\_MAPPING

See the [config description](/channels/meta/configuration.md#product-id-mapping).

**Possible values**\
0 for Product ID\
1 for Variant ID\
2 for SKU&#x20;

**Type**\
TEXT

**Optional**\
true

### FB\_PIXEL\_LDU

See the [config description](/channels/meta/configuration.md#limited-data-use).

**Possible values**\
1 or 0

**Type**\
CHECKBOX

**Optional**\
true

### FB\_PIXEL\_TEST

See the [config description](/channels/meta/configuration.md#event-test-code).

**Example value**\
TEST1\*\*4

**Type**\
TEXT

**Optional**\
true

### FB\_PARAM\_SCRIPT

See the [config description](/channels/meta/configuration.md#enable-parameter-builder-library).

**Possible values**\
1 or 0

**Type**\
CHECKBOX

**Optional**\
true

### FB\_IS\_AUDIENCES\_ENABLED

See the [config description](/channels/meta/configuration.md#audiences)

**Possible values**\
1 or 0

**Type**\
CHECKBOX

**Optional**\
true

### FACEBOOK\_ACCESS\_TOKEN

In this secret, you would store the access token that you got back from the Facebook OAuth process.\
\
**Example value**\
EABBVs8c0W1kBPCZCm\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*w9O2kRWOQc9WKCa2lkzWiuGwZDZD\
\
**Type**\
PASSWORD\
\
**Optional**\
true - When `FB_IS_AUDIENCES_ENABLED` is 0\
false - When `FB_IS_AUDIENCES_ENABLED` is 1


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/channels/meta/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
