> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adstellar.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Write text-only ad copy variants (headline, subheadline/primary text, CTA, optional offer + body) for the team's brand or product. Grounded in the brand kit when available. Free — no generation credits used.

> Write text-only ad copy variants (headline, subheadline/primary text, CTA, optional offer + body) for the team's brand or product. Grounded in the brand kit when available. Free — no generation credits used.



## OpenAPI

````yaml /openapi.json post /tools/generate_ad_copy
openapi: 3.1.0
info:
  title: AdStellar API
  version: 1.0.0
  description: >-
    Public REST API for AdStellar — creative generation, video generation,
    campaign management, and analytics. Every endpoint maps 1:1 to an AdStellar
    MCP tool.
servers:
  - url: https://app.adstellar.ai/api/v1
security: []
paths:
  /tools/generate_ad_copy:
    post:
      summary: >-
        Write text-only ad copy variants (headline, subheadline/primary text,
        CTA, optional offer + body) for the team's brand or product. Grounded in
        the brand kit when available. Free — no generation credits used.
      description: >-
        Write text-only ad copy variants (headline, subheadline/primary text,
        CTA, optional offer + body) for the team's brand or product. Grounded in
        the brand kit when available. Free — no generation credits used.
      operationId: generate_ad_copy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                productId:
                  description: >-
                    Product id — resolves the linked brand kit + product
                    description. Preferred when set.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                brandKitId:
                  description: >-
                    Brand kit id. Falls back to the product link or the
                    workspace default kit.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                count:
                  description: Number of variants (default 5).
                  type: integer
                  minimum: 1
                  maximum: 10
                tone:
                  description: Desired tone, e.g. "bold and punchy", "warm", "premium".
                  type: string
                  maxLength: 120
                length:
                  description: Rough copy length.
                  type: string
                  enum:
                    - short
                    - medium
                    - long
                adGoal:
                  description: What the ad should achieve, e.g. "drive free trial signups".
                  type: string
                  maxLength: 200
                customInstructions:
                  description: Any extra direction.
                  type: string
                  maxLength: 500
                workspaceId:
                  description: >-
                    Resolve the brand kit/product within one workspace this
                    credential can access. Omit to span all of them.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              additionalProperties: false
      responses:
        '200':
          description: Tool result
        '401':
          description: Missing or invalid API key
        '403':
          description: Missing required scope
        '429':
          description: Rate limit exceeded
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: AdStellar API key (ast_live_...)

````