---
title: "RedditCapiExport: Create job"
method: POST
path: "/job/reddit-capi-export"
tags: ["Jobs"]
---

# RedditCapiExport: Create job

`POST /job/reddit-capi-export`

## Request

- Base URL: `https://api.lytics.io/v2`
- URL: `https://api.lytics.io/v2/job/reddit-capi-export`
- Auth: API key in header `Authorization`

Create a RedditCapiExport job

## Query parameters

- `account_id` string

## Request body `*/*`

- object
  - `auth_ids` string[]: Authorization IDs associated with the Job
  - `config` object, required: Job configuration, unique per-workflow
    - `action_source` 'WEBSITE' | 'APP' | 'PHYSICAL_STORE' | 'OTHER': Select where the conversion event occurred (website, app, etc.). If not selected, this field will not be sent to Reddit.
    - `ad_account_id` string, required: Enter your Reddit Ads Account ID
    - `audience_events` 'enters_only' | 'exits_only': Select which type of audience trigger events to send to Pinterest. By default both enters and exits with be sent.
    - `click_id` string: Select the Lytics user field that contains the Reddit click ID.
    - `conversion_id` string: Select the Lytics user field that contains the conversion ID that will be used for deduplication in Reddit.
    - `country_code` string: Select the 2 letter country code where the users are located. If not provided, "US" will be used as default.
    - `currency_code` 'AED' | 'AUD' | 'BRL' | 'CAD' | 'CNY' | 'EUR' | 'GBP' | 'INR' | 'JPY' | 'MXN' | 'SAR' | 'SEK' | 'SGD' | 'TRY' | 'USD': Select the currency code, three letter code in ISO-4217 format. If not provided, "USD" will be used as default.
    - `event_timestamp` string: Select the Lytics user field that contains the timestamp of the event. The timestamp must not be older than 7 days. If left empty, current timestamp will be used.
    - `event_type` string: Select the type of the conversion event. If not selected, the event will be sent with **lytics_audiences}** custom name.
    - `field_changes` string[]: Select up to 75 user fields to trigger user change events. For any user in the exported audience, if any of the selected field values change, then the user field change event will be sent to the Reddit API.
    - `item_count` string: Select the Lytics user field that contains the number of item sold.
    - `segment_ids` string[], required: Select the Lytics audiences that contains the users to export
    - `user_data_mapping` object[]: Map Lytics user fields to Reddit User Data. Atleast one user data or click id must be provided.
    - `value` string: Select the Lytics user field that contains monetary value of the event.
    - `withbackfill` boolean: Select this to immediately push users who currently exist in the selected Lytics audience. Deselecting will only push users as they leave or enter the audience
  - `description` string: A user-defined description
  - `drop_events_during_quiet_window` boolean
  - `expires_at` string, date-time
  - `monitoring` object: Inline monitoring config. On write: omit to keep, null to clear, or a config to set.
  - `name` string, required: A user-defined name
  - `quiet_period` integer
  - `quiet_time_of_day` string
  - `quiet_timezone` string

## Response `201`

RedditCapiExport Job

- object
  - `_meta` object: Response Metadata
  - `data` object: Response Payload
    - `account_id` string: Lytics Account ID
    - `anomaly_rule` ModelsAnomalyRuleResp
      - `aid` integer
      - `checks` ModelsRuleCheckConfigReq[]
        - `allowable_violations` integer
        - `interval` string
        - `lookback_count` integer
        - `max_threshold` integer
        - `metric_type` string
        - `min_threshold` integer
        - `type` string
        - `variance_pct` number
      - `created` string
      - `id` string
      - `subject_id` string
      - `subject_type` string
      - `updated` string
    - `api_token_auth_id` string: this is set when work is create using access token
    - `auth_ids` string[]: Authorization IDs associated with the Job
    - `config` object, required: Job configuration, unique per-workflow
      - `action_source` 'WEBSITE' | 'APP' | 'PHYSICAL_STORE' | 'OTHER': Select where the conversion event occurred (website, app, etc.). If not selected, this field will not be sent to Reddit.
      - `ad_account_id` string, required: Enter your Reddit Ads Account ID
      - `audience_events` 'enters_only' | 'exits_only': Select which type of audience trigger events to send to Pinterest. By default both enters and exits with be sent.
      - `click_id` string: Select the Lytics user field that contains the Reddit click ID.
      - `conversion_id` string: Select the Lytics user field that contains the conversion ID that will be used for deduplication in Reddit.
      - `country_code` string: Select the 2 letter country code where the users are located. If not provided, "US" will be used as default.
      - `currency_code` 'AED' | 'AUD' | 'BRL' | 'CAD' | 'CNY' | 'EUR' | 'GBP' | 'INR' | 'JPY' | 'MXN' | 'SAR' | 'SEK' | 'SGD' | 'TRY' | 'USD': Select the currency code, three letter code in ISO-4217 format. If not provided, "USD" will be used as default.
      - `event_timestamp` string: Select the Lytics user field that contains the timestamp of the event. The timestamp must not be older than 7 days. If left empty, current timestamp will be used.
      - `event_type` string: Select the type of the conversion event. If not selected, the event will be sent with **lytics_audiences}** custom name.
      - `field_changes` string[]: Select up to 75 user fields to trigger user change events. For any user in the exported audience, if any of the selected field values change, then the user field change event will be sent to the Reddit API.
      - `item_count` string: Select the Lytics user field that contains the number of item sold.
      - `segment_ids` string[], required: Select the Lytics audiences that contains the users to export
      - `user_data_mapping` object[]: Map Lytics user fields to Reddit User Data. Atleast one user data or click id must be provided.
      - `value` string: Select the Lytics user field that contains monetary value of the event.
      - `withbackfill` boolean: Select this to immediately push users who currently exist in the selected Lytics audience. Deselecting will only push users as they leave or enter the audience
    - `created` string
    - `deleted` boolean: The Job has been deleted
    - `description` string: A user-defined description
    - `drop_events_during_quiet_window` boolean
    - `expires_at` string, date-time
    - `id` string: A Lytics-assigned, immutable unique ID for the Job
    - `meta` object: Extra meta data about the job
    - `monitoring` object: Inline monitoring config. On write: omit to keep, null to clear, or a config to set.
    - `name` string, required: A user-defined name
    - `quiet_period` integer
    - `quiet_time_of_day` string
    - `quiet_timezone` string
    - `sleep_until` string
    - `status` 'runnable' | 'sleeping' | 'paused' | 'completed' | 'fault' | 'failed' | 'killed' | 'deleted' | 'unknown': The status of the job
    - `updated` string
    - `user_id` string: The user ID that created or updated the job
    - `workflow` string: The workflow slug
    - `workflow_id` string: The workflow ID
  - `request_id` string
  - `status` integer: HTTP Status Code

## Other responses

- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-11-03** `d8e975057aec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lytics/apis/lytics-api/changes/job/reddit-capi-export/post.md)

---

[API](https://skmtc.dev/lytics/apis/lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/lytics-api/revisions/d8e975057aec?raw)
