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

# Generate content brief

> Generate a content outline with subtopics and suggested questions for a topic. Results are cached for 24 hours for identical topics.



## OpenAPI

````yaml https://api.surnex.io/openapi.json post /v1/content/brief
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/content/brief:
    post:
      tags:
        - Content Generation
      summary: Generate content brief
      description: >-
        Generate a content outline with subtopics and suggested questions for a
        topic. Results are cached for 24 hours for identical topics.
      operationId: generate_brief_v1_content_brief_post
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentBriefRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_ContentBriefResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContentBriefRequest:
      properties:
        topic:
          type: string
          maxLength: 500
          minLength: 1
          title: Topic
          description: Content topic to outline.
        target_keywords:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 10
            - type: 'null'
          title: Target Keywords
          description: Optional focus keywords.
      type: object
      required:
        - topic
      title: ContentBriefRequest
      description: Request for AI-generated content outline/brief.
    APIResponse_ContentBriefResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - $ref: '#/components/schemas/ContentBriefResponse'
            - type: 'null'
      type: object
      title: APIResponse[ContentBriefResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ContentBriefResponse:
      properties:
        topic:
          type: string
          title: Topic
        subtopics:
          items:
            $ref: '#/components/schemas/SubtopicItem'
          type: array
          title: Subtopics
        content_depth:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Depth
        format_recommendations:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Format Recommendations
      type: object
      required:
        - topic
        - subtopics
      title: ContentBriefResponse
      description: Response containing a content outline/brief.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SubtopicItem:
      properties:
        title:
          type: string
          title: Title
          description: Subtopic heading.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Brief description of the subtopic.
        questions:
          items:
            type: string
          type: array
          title: Questions
          description: Suggested questions to answer.
      type: object
      required:
        - title
      title: SubtopicItem
      description: A single subtopic in a content brief.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````