> 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/reddit/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.

### REDDIT\_ACCOUNT\_ID

This secret contains the string representing the account ID to which events are sent.

#### Example value

a2\_elhpnXpa7vk9

#### Type

TEXT

#### Optional

false

### REDDIT\_ACCESS\_TOKEN

This secret contains the OAuth token used to send events to the configured ad account.

#### Example value

EABBVs8c0W1kBPCZCm68oroxogec4DHZBYPYypyngXuOeDZCVDywtGcyxIKPao52ClOA7GAl4gf8bgZC66uCPhR4TsalZCsCVfpKf3Nhzvrm1fjiSbdvbFQVVGTsvs04r6RTC1xRUtUQxM8yvFqCpEArNXwZAMbZBxZBeNBjpqZC5qgxw9O2kRWOQc9WKCa2lkzWiuGwZDZD

#### Type

PASSWORD

#### Optional

false

### REDDIT\_BROWSER\_PIXEL

This secret contains a **1** or a **0,** indicating whether to use the Reddit Pixel in the browser to send events.

#### Possible values

1 or 0

#### Type

CHECKBOX

#### Optional

true

### REDDIT\_CONVERT\_CURRENCY

This secret may contain a currency to convert item and order prices to a specific currency before sending the event to Reddit. If empty, no conversion is applied to prices being sent.

#### Example value

USD

#### Type

TEXT

#### Optional

true


---

# 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/reddit/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.
