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

# Generate Content Brief

> Generate content briefs from a goal, enriched with brand
context and trend signals. Returns multiple brief suggestions that can be
fed directly into `POST /v1/content/create`.

**Example workflow:**
1. Call this endpoint with a goal: "Increase Instagram engagement for our sneaker line"
2. Review the generated briefs (each is a self-contained content creation instruction)
3. Pass the best brief as the `brief` field to `POST /v1/content/create`

Each generated brief incorporates:
- Workspace brand DNA and voice attributes
- Current trend signals for the target platform
- Historical performance patterns


Generate structured content briefs grounded in your brand context, trend signals, and performance data.

Each brief includes a creative direction, suggested format, target platform, and recommended app. Use this as a planning step before content creation, or feed briefs directly into the create-content endpoint for fully automated production.

Returns up to `count` briefs (default 3, max 10) per request.


## OpenAPI

````yaml POST /v1/content/brief
openapi: 3.1.0
info:
  title: Lamina Apps API
  version: 1.0.0
  description: >
    Professional creative content production for AI agents. Create brand-aligned
    images, videos, and designs from natural-language briefs using 30+
    specialized AI pipelines.


    Unlike raw model APIs (DALL-E, Flux, Kling), Lamina automatically applies
    brand guidelines, selects the optimal multi-model pipeline, scores output
    quality, and delivers permanent CDN-hosted URLs with composability metadata
    for chaining.


    ## Authentication

    All endpoints require an API key passed via one of these headers:

    - `x-api-key: lma_your_key` (recommended)

    - `Authorization: Bearer lma_your_key`


    API keys are workspace-scoped. Create them in **Settings -> API Keys**.


    ## Quick Start (One-Call Path)

    `POST /v1/create` with `{ "brief": "product photo of sneakers", "sync": true
    }` — returns completed output inline with CDN URL.


    ## Quick Start (Advanced)

    1. `GET /v1/apps` -- browse 30+ specialized creative apps

    2. `GET /v1/apps/{appId}` -- inspect input parameters

    3. `POST /v1/apps/{appId}/runs?webhook=<url>` -- run with your inputs

    4. Receive results via webhook, poll `GET /v1/runs/{runId}`, or stream via
    `GET /v1/runs/{runId}/stream`


    ## Rate Limits

    All `/v1/*` endpoints are currently limited to 100 requests per minute per
    IP.

    On `429`, read the `RateLimit-*` and `Retry-After` headers before retrying.


    ## How Inputs Work

    When running an app, provide inputs as a JSON object keyed by parameter
    **name** (from the app details response).


    - **text** parameters: send a string value (e.g. a prompt or description)

    - **options** parameters: send the **label** of the option (e.g.
    `"Caucasian"`), not an internal value

    - **url** parameters: send a publicly accessible URL to an image or video


    Every parameter is returned with `required: true`. Parameters with a
    `default` can safely be omitted -- the app will use the default value.


    ## Endpoint Groups

    | Group | Purpose |

    |-------|---------|

    | **Apps** | Discover and inspect available content creation apps |

    | **Runs** | Run workflows, track progress, and retrieve results |

    | **Assets** | Browse generated images, videos, and text from past
    executions |

    | **Intelligence** | Brand context, performance prediction, recommendations,
    and trends |

    | **Publishing** | Publish content to connected social channels |

    | **Content** | One-call agent operations: create, score, brief, batch |

    | **Account** | Credit balance and rate limit visibility |

    | **Templates** | Content creation templates and strategies |

    | **Webhooks** | Webhook signature verification |
servers:
  - url: https://app.uselamina.ai
    description: Production
security:
  - apiKey: []
tags:
  - name: Create
    description: Create content from briefs, run specific apps, and use templates
  - name: Discover
    description: Find and inspect available apps and their input schemas
  - name: Track
    description: Monitor execution progress, retrieve results, and browse generated assets
  - name: Intelligence
    description: >-
      Brand context, performance prediction, content recommendations, and trend
      signals
  - name: Distribute
    description: Publish content to social channels and transfer assets to CDN
  - name: Score
    description: Evaluate content quality, brand alignment, and engagement potential
  - name: Account
    description: Credit balance, rate limits, and health checks
  - name: Webhooks
    description: Webhook signature verification for secure callback handling
paths:
  /v1/content/brief:
    post:
      tags:
        - Create
      summary: Generate Content Brief
      description: >
        Generate content briefs from a goal, enriched with brand

        context and trend signals. Returns multiple brief suggestions that can
        be

        fed directly into `POST /v1/content/create`.


        **Example workflow:**

        1. Call this endpoint with a goal: "Increase Instagram engagement for
        our sneaker line"

        2. Review the generated briefs (each is a self-contained content
        creation instruction)

        3. Pass the best brief as the `brief` field to `POST /v1/content/create`


        Each generated brief incorporates:

        - Workspace brand DNA and voice attributes

        - Current trend signals for the target platform

        - Historical performance patterns
      operationId: createBrief
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                goal:
                  type: string
                  description: >-
                    Goal or objective for the content (e.g. "Increase engagement
                    for our sneaker line").
                platform:
                  type: string
                  nullable: true
                  description: Target platform to optimize briefs for.
                modality:
                  type: string
                  nullable: true
                  description: Desired content modality (e.g. `image`, `video`).
                count:
                  type: integer
                  default: 3
                  maximum: 10
                  description: Number of brief variations to generate.
                brandProfileId:
                  type: string
                  format: uuid
                  nullable: true
                  description: Brand profile to incorporate into briefs.
              required:
                - goal
            example:
              goal: Increase Instagram engagement for our new sneaker collection
              platform: instagram
              modality: image
              count: 3
      responses:
        '200':
          description: Generated content briefs
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    description: >-
                      Generated briefs. Structure varies based on the
                      workspace's intelligence model.
              example:
                data:
                  briefs:
                    - brief: >-
                        Create a lifestyle photo of sneakers on a skateboarder
                        in an urban park, golden-hour lighting, warm tones, shot
                        from low angle to emphasize the shoes
                      platform: instagram
                      modality: image
                      reasoning: >-
                        Lifestyle imagery is your top-performing pattern (+3.2x
                        engagement). Low-angle urban shots align with current
                        streetwear trends.
                    - brief: >-
                        Flat-lay composition of the full sneaker colorway lineup
                        on a concrete surface with coffee and sunglasses props,
                        overhead shot, minimalist styling
                      platform: instagram
                      modality: image
                      reasoning: >-
                        Product flat-lays with lifestyle props drive strong
                        save-to-like ratios. Concrete texture matches brand's
                        urban identity.
                    - brief: >-
                        Close-up macro shot of sneaker texture and stitching
                        details, shallow depth of field, studio lighting with
                        warm accent
                      platform: instagram
                      modality: image
                      reasoning: >-
                        Detail shots generate high comment engagement. Studio
                        lighting with warm accents matches brand's visual
                        identity.
        '400':
          description: Missing required goal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: goal is required (string)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    Error:
      type: object
      description: Standard error response
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message
        details:
          type: array
          items:
            type: string
          description: Additional validation error details (present on 400 responses)
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
          example:
            error: Invalid API key
    TooManyRequests:
      description: >-
        Rate limit exceeded. All `/v1/*` endpoints are currently limited to 100
        requests per minute per IP.
      headers:
        RateLimit-Policy:
          description: Active rate limit policy.
          schema:
            type: string
            example: 100;w=60
        RateLimit-Limit:
          description: Max requests allowed in the current window.
          schema:
            type: integer
            example: 100
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 0
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            example: 60
      content:
        text/plain:
          schema:
            type: string
          example: Too many requests from this IP, please try again in a minute
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Workspace API key. Prefix: `lma_`. Example: `lma_abc123...`'

````