> ## 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.

# Add GEO topics

> Add keywords/topics for AI visibility tracking.



## OpenAPI

````yaml https://api.surnex.io/openapi.json post /v1/projects/{project_id}/geo/topics
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/projects/{project_id}/geo/topics:
    post:
      tags:
        - GEO / AI Visibility
      summary: Add GEO topics
      description: Add keywords/topics for AI visibility tracking.
      operationId: add_topics_v1_projects__project_id__geo_topics_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - 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/AddGeoTopicsRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_list_GeoTopicResponse__'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AddGeoTopicsRequest:
      properties:
        keywords:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Keywords
          description: >-
            List of keywords/topics to track for AI visibility. Maximum 100
            keywords per request. Duplicates are silently ignored.
        location_code:
          type: integer
          title: Location Code
          description: DataForSEO location code (e.g. 2840 = United States).
        language_code:
          type: string
          maxLength: 10
          title: Language Code
          description: Language code for AI queries (e.g., 'en', 'de', 'fr').
      type: object
      required:
        - keywords
        - location_code
        - language_code
      title: AddGeoTopicsRequest
      description: |-
        Request body for adding GEO / AI Visibility topics to a project.

        Topics represent keyword phrases for which the platform will track
        how often the project's domain is cited in AI-generated responses.
    APIResponse_list_GeoTopicResponse__:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - items:
                $ref: '#/components/schemas/GeoTopicResponse'
              type: array
            - type: 'null'
          title: Data
      type: object
      title: APIResponse[list[GeoTopicResponse]]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GeoTopicResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        project_id:
          type: string
          format: uuid
          title: Project Id
        keyword:
          type: string
          title: Keyword
        location_code:
          type: integer
          title: Location Code
        language_code:
          type: string
          title: Language Code
        is_active:
          type: boolean
          title: Is Active
        ai_search_volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ai Search Volume
          description: Estimated monthly AI search volume for this keyword.
        last_snapshot_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Snapshot At
          description: Timestamp of the most recent AI mention snapshot.
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - project_id
        - keyword
        - location_code
        - language_code
        - is_active
        - created_at
      title: GeoTopicResponse
      description: Serialised representation of a GeoTopic ORM record.
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````