# 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](https://docs.edgetag.io/api/api/script).

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

### BING\_TAG\_ID

Use for storing the Tag ID \
\
**Example value**\
343131504\
\
**Type**\
TEXT\
\
**Optional**\
false

### BING\_BROWSER\_PIXEL

See the [config description](/channels/bing/configuration.md).

**Possible values**\
1 or 0

**Type**\
CHECKBOX

**Optional**\
true

### BING\_MAPPED\_EVENTS

In this secret, store the stringified data array that maps between EdgeTag events and Bing events. Each array item contains exactly 2 elements: the EdgeTag standard event (e.g., Purchase) at index 0, and the corresponding Bing event name (e.g., purchase\_blotout) at index 1.

Example value

```javascript
[["PageView","page_view_blotout"],["Purchase","purchase_blotout"]]
```

**Type**\
TEXT

**Optional**\
false


---

# Agent Instructions: 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/bing/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.
