TikTok · Capability

TikTok API for Business — Ad Groups

TikTok API for Business — Ad Groups. 2 operations. Lead operation: Create Ad Group. Self-contained Naftiko capability covering one Tiktok business surface.

Run with Naftiko TiktokAd Groups

What You Can Do

POST
Createadgroup — Create Ad Group
/v1/open-api/v1-3/adgroup/create
GET
Getadgroups — Get Ad Groups
/v1/open-api/v1-3/adgroup/get

MCP Tools

create-ad-group

Create Ad Group

get-ad-groups

Get Ad Groups

read-only idempotent

Capability Spec

business-ad-groups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TikTok API for Business — Ad Groups
  description: 'TikTok API for Business — Ad Groups. 2 operations. Lead operation: Create Ad Group. Self-contained Naftiko
    capability covering one Tiktok business surface.'
  tags:
  - Tiktok
  - Ad Groups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TIKTOK_API_KEY: TIKTOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: business-ad-groups
    baseUri: https://business-api.tiktok.com
    description: TikTok API for Business — Ad Groups business capability. Self-contained, no shared references.
    resources:
    - name: open_api-v1.3-adgroup-create
      path: /open_api/v1.3/adgroup/create/
      operations:
      - name: createadgroup
        method: POST
        description: Create Ad Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: open_api-v1.3-adgroup-get
      path: /open_api/v1.3/adgroup/get/
      operations:
      - name: getadgroups
        method: GET
        description: Get Ad Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: advertiser_id
          in: query
          type: string
          required: true
        - name: campaign_id
          in: query
          type: string
          description: Filter by campaign ID
        - name: page
          in: query
          type: integer
        - name: page_size
          in: query
          type: integer
    authentication:
      type: apikey
      key: Access-Token
      value: '{{env.TIKTOK_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: business-ad-groups-rest
    port: 8080
    description: REST adapter for TikTok API for Business — Ad Groups. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/open-api/v1-3/adgroup/create
      name: open-api-v1-3-adgroup-create
      description: REST surface for open_api-v1.3-adgroup-create.
      operations:
      - method: POST
        name: createadgroup
        description: Create Ad Group
        call: business-ad-groups.createadgroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/open-api/v1-3/adgroup/get
      name: open-api-v1-3-adgroup-get
      description: REST surface for open_api-v1.3-adgroup-get.
      operations:
      - method: GET
        name: getadgroups
        description: Get Ad Groups
        call: business-ad-groups.getadgroups
        with:
          advertiser_id: rest.advertiser_id
          campaign_id: rest.campaign_id
          page: rest.page
          page_size: rest.page_size
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: business-ad-groups-mcp
    port: 9090
    transport: http
    description: MCP adapter for TikTok API for Business — Ad Groups. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-ad-group
      description: Create Ad Group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: business-ad-groups.createadgroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ad-groups
      description: Get Ad Groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: business-ad-groups.getadgroups
      with:
        advertiser_id: tools.advertiser_id
        campaign_id: tools.campaign_id
        page: tools.page
        page_size: tools.page_size
      outputParameters:
      - type: object
        mapping: $.