Prerequisites
What you need depends on the guide you follow:API key
Create the key under Settings → API Keys with these permissions:- Read and write on
datasetsandconnections - Write on
uploads - Read on
installations
webhooks if you want delivery notifications. See API Keys for the procedure and the Permissions Reference for what each resource covers.
Create it from a shared team account rather than a personal login, so the integration keeps working when someone changes roles.
Reddit Connector installed
The Reddit Connector is app23. Find your installation of it:
"app_id": 23, install the Reddit Connector from the Narrative Marketplace.
A connected Reddit profile
A connector profile holds the Reddit authorization that every delivery uses. One profile reaches every ad account that the approving Reddit user can manage. To deliver to your own Reddit Ads account, create a profile and approve Narrative on Reddit once, as described in Connect your Reddit Ads account. To deliver to an account someone else owns, invite a partner instead. The partner’s approval creates the profile.Set up API access
The guides talk to two hosts, and each takes its own credential:Get an installation token
The Reddit connector authenticates requests with an installation token, which you get by exchanging your API key. Use the installation ID from Reddit Connector installed:access_token as $INSTALLATION_TOKEN. It lasts about three hours, so request a new one at the start of each run of your integration.
Confirm that both hosts answer:
api.narrative.io and the installation token to reddit.narrativeconnectors.com.
Connect your Reddit Ads account
Connect your Reddit Ads account once. Every delivery after that runs from your API key.1
Create a profile
In Narrative, go to Installed Apps → Reddit Connector. In the Profiles tab, click Add profile, enter a profile name, and click Create profile.
2
Approve Narrative on Reddit
Click Connect to Reddit, sign in to the Reddit account that manages your ad accounts, and click Allow. The profile shows Connected once Reddit confirms.
url in a browser before expires_at, sign in to Reddit, and approve Narrative. The profile then uses your Reddit authorization.
Find your profile
GET /profiles lists every Reddit profile in your company. To read one:
status is enabled. Record its id.
List your ad accounts
Audiences are created under a Reddit ad account. List the ad accounts the profile can deliver to:a2_. To read one ad account:
Connection settings
For thequick_settings each connection accepts and how a delivery treats existing and new rows, see API connection settings on the Reddit Connector reference page.
Delivery notifications
The Reddit Connector reports each delivery as an app webhook event. Subscribe a webhook to app23 to receive them:
secret to verify each delivery. The connector sends these events:
Read a subscription with
GET /webhooks/{webhook_id}. To stop the notifications, delete the subscription with DELETE /webhooks/{webhook_id}. See App subscription for the subscription fields and Verifying deliveries for checking the secret.
Related content
Reddit Connector
Supported identifiers, profiles, and invites
Connector Interfaces
Why a dataset connects to an interface rather than a connector
Webhook Event Reference
Subscription fields, delivery payloads, and verification
API Keys
Create and rotate keys for programmatic access

