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

# Start backlink profile analysis

> Start a full backlink profile analysis for the project domain. Creates a DB record and enqueues a worker job that fetches summary, backlinks, referring domains, anchors, TLD distribution, and new/lost data from DataForSEO. Poll GET /backlinks/profile to track progress.



## OpenAPI

````yaml https://api.surnex.io/openapi.json post /v1/projects/{project_id}/backlinks/analyze
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}/backlinks/analyze:
    post:
      tags:
        - Backlink Analysis
      summary: Start backlink profile analysis
      description: >-
        Start a full backlink profile analysis for the project domain. Creates a
        DB record and enqueues a worker job that fetches summary, backlinks,
        referring domains, anchors, TLD distribution, and new/lost data from
        DataForSEO. Poll GET /backlinks/profile to track progress.
      operationId: start_backlink_analysis_v1_projects__project_id__backlinks_analyze_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/StartBacklinkAnalysisRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_BacklinkProfileResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    StartBacklinkAnalysisRequest:
      properties:
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
          description: >-
            Domain to analyze. Defaults to the project's configured domain. Must
            match the project domain if set.
      type: object
      title: StartBacklinkAnalysisRequest
      description: Request body for starting a new backlink profile analysis.
    APIResponse_BacklinkProfileResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - $ref: '#/components/schemas/BacklinkProfileResponse'
            - type: 'null'
      type: object
      title: APIResponse[BacklinkProfileResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BacklinkProfileResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        project_id:
          type: string
          format: uuid
          title: Project Id
        domain:
          type: string
          title: Domain
        status:
          type: string
          title: Status
        summary_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Summary Data
        backlinks_data:
          anyOf:
            - additionalProperties: true
              type: object
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Backlinks Data
        referring_domains_data:
          anyOf:
            - additionalProperties: true
              type: object
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Referring Domains Data
        anchors_data:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Anchors Data
        tld_data:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Tld Data
        new_lost_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: New Lost Data
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        created_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - project_id
        - domain
        - status
        - created_at
        - updated_at
      title: BacklinkProfileResponse
      description: Full backlink profile 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

````