Snapchat · Capability

Snapchat Ads API — Audience Segments

Snapchat Ads API — Audience Segments. 2 operations. Lead operation: List All Audience Segments for an Ad Account. Self-contained Naftiko capability covering one Snapchat business surface.

Run with Naftiko SnapchatAudience Segments

What You Can Do

GET
Listaudiencesegments — List All Audience Segments for an Ad Account
/v1/adaccounts/{ad-account-id}/segments
POST
Createaudiencesegment — Create an Audience Segment
/v1/adaccounts/{ad-account-id}/segments

MCP Tools

list-all-audience-segments-ad

List All Audience Segments for an Ad Account

read-only idempotent
create-audience-segment

Create an Audience Segment

Capability Spec

ads-audience-segments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Snapchat Ads API — Audience Segments
  description: 'Snapchat Ads API — Audience Segments. 2 operations. Lead operation: List All Audience Segments for an Ad Account.
    Self-contained Naftiko capability covering one Snapchat business surface.'
  tags:
  - Snapchat
  - Audience Segments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SNAPCHAT_API_KEY: SNAPCHAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: ads-audience-segments
    baseUri: https://adsapi.snapchat.com/v1
    description: Snapchat Ads API — Audience Segments business capability. Self-contained, no shared references.
    resources:
    - name: adaccounts-ad_account_id-segments
      path: /adaccounts/{ad_account_id}/segments
      operations:
      - name: listaudiencesegments
        method: GET
        description: List All Audience Segments for an Ad Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createaudiencesegment
        method: POST
        description: Create an Audience Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SNAPCHAT_API_KEY}}'
  exposes:
  - type: rest
    namespace: ads-audience-segments-rest
    port: 8080
    description: REST adapter for Snapchat Ads API — Audience Segments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/adaccounts/{ad-account-id}/segments
      name: adaccounts-ad-account-id-segments
      description: REST surface for adaccounts-ad_account_id-segments.
      operations:
      - method: GET
        name: listaudiencesegments
        description: List All Audience Segments for an Ad Account
        call: ads-audience-segments.listaudiencesegments
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createaudiencesegment
        description: Create an Audience Segment
        call: ads-audience-segments.createaudiencesegment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ads-audience-segments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Snapchat Ads API — Audience Segments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-audience-segments-ad
      description: List All Audience Segments for an Ad Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ads-audience-segments.listaudiencesegments
      outputParameters:
      - type: object
        mapping: $.
    - name: create-audience-segment
      description: Create an Audience Segment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ads-audience-segments.createaudiencesegment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.