Reddit · Capability

Reddit Ads API — Ads

Reddit Ads API — Ads. 5 operations. Lead operation: List Ads. Self-contained Naftiko capability covering one Reddit business surface.

Run with Naftiko RedditAds

What You Can Do

GET
Listads — List Ads
/v1/accounts/{account-id}/ads
POST
Createad — Create an Ad
/v1/accounts/{account-id}/ads
GET
Getad — Get an Ad
/v1/accounts/{account-id}/ads/{ad-id}
PUT
Updatead — Update an Ad
/v1/accounts/{account-id}/ads/{ad-id}
DELETE
Deletead — Delete an Ad
/v1/accounts/{account-id}/ads/{ad-id}

MCP Tools

list-ads

List Ads

read-only idempotent
create-ad

Create an Ad

get-ad

Get an Ad

read-only idempotent
update-ad

Update an Ad

idempotent
delete-ad

Delete an Ad

idempotent

Capability Spec

ads-ads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Reddit Ads API — Ads
  description: 'Reddit Ads API — Ads. 5 operations. Lead operation: List Ads. Self-contained Naftiko capability covering one
    Reddit business surface.'
  tags:
  - Reddit
  - Ads
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    REDDIT_API_KEY: REDDIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: ads-ads
    baseUri: https://ads-api.reddit.com/api/v3
    description: Reddit Ads API — Ads business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_id-ads
      path: /accounts/{account_id}/ads
      operations:
      - name: listads
        method: GET
        description: List Ads
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ad_group_id
          in: query
          type: string
          description: Filter ads by ad group ID.
      - name: createad
        method: POST
        description: Create an Ad
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-ads-ad_id
      path: /accounts/{account_id}/ads/{ad_id}
      operations:
      - name: getad
        method: GET
        description: Get an Ad
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatead
        method: PUT
        description: Update an Ad
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletead
        method: DELETE
        description: Delete an Ad
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.REDDIT_API_KEY}}'
  exposes:
  - type: rest
    namespace: ads-ads-rest
    port: 8080
    description: REST adapter for Reddit Ads API — Ads. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/accounts/{account-id}/ads
      name: accounts-account-id-ads
      description: REST surface for accounts-account_id-ads.
      operations:
      - method: GET
        name: listads
        description: List Ads
        call: ads-ads.listads
        with:
          ad_group_id: rest.ad_group_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createad
        description: Create an Ad
        call: ads-ads.createad
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/ads/{ad-id}
      name: accounts-account-id-ads-ad-id
      description: REST surface for accounts-account_id-ads-ad_id.
      operations:
      - method: GET
        name: getad
        description: Get an Ad
        call: ads-ads.getad
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatead
        description: Update an Ad
        call: ads-ads.updatead
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletead
        description: Delete an Ad
        call: ads-ads.deletead
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ads-ads-mcp
    port: 9090
    transport: http
    description: MCP adapter for Reddit Ads API — Ads. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-ads
      description: List Ads
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ads-ads.listads
      with:
        ad_group_id: tools.ad_group_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-ad
      description: Create an Ad
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ads-ads.createad
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ad
      description: Get an Ad
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ads-ads.getad
      outputParameters:
      - type: object
        mapping: $.
    - name: update-ad
      description: Update an Ad
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ads-ads.updatead
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-ad
      description: Delete an Ad
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: ads-ads.deletead
      outputParameters:
      - type: object
        mapping: $.