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

# Get a specific AI search result

> Return a persisted AI search result by ID. Poll this endpoint every 4–10 seconds while status is pending or processing. Once completed, result_data contains the full DataForSEO response.



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/projects/{project_id}/ai-search/{result_id}
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}/ai-search/{result_id}:
    get:
      tags:
        - AI Search
      summary: Get a specific AI search result
      description: >-
        Return a persisted AI search result by ID. Poll this endpoint every 4–10
        seconds while status is pending or processing. Once completed,
        result_data contains the full DataForSEO response.
      operationId: get_ai_search_result_v1_projects__project_id__ai_search__result_id__get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: result_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Result Id
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_AiSearchResultResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    APIResponse_AiSearchResultResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - $ref: '#/components/schemas/AiSearchResultResponse'
            - type: 'null'
      type: object
      title: APIResponse[AiSearchResultResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AiSearchResultResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        project_id:
          type: string
          format: uuid
          title: Project Id
        feature_type:
          type: string
          title: Feature Type
        status:
          type: string
          title: Status
        input_params:
          additionalProperties: true
          type: object
          title: Input Params
        result_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result 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
        - feature_type
        - status
        - input_params
        - created_at
        - updated_at
      title: AiSearchResultResponse
      description: |-
        Full AI search result record returned from the API.

        Attributes:
            id: Primary key UUID.
            project_id: Project this result belongs to.
            feature_type: Which AI search feature produced this result.
            status: Lifecycle state — pending, processing, completed, failed.
            input_params: Parameters that were supplied when the job was triggered.
            result_data: The DataForSEO response payload (null while pending/processing).
            error_message: Populated when status is failed.
            completed_at: Timestamp when the worker finished (or errored).
            created_by: UUID of the user who triggered the job.
            created_at: Row creation timestamp.
            updated_at: Last modification timestamp.
    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

````