> ## 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 broken resources

> List all broken resources (images, CSS files, JavaScript files) discovered during the crawl with their HTTP status codes and the pages they were found on.



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/projects/{project_id}/audits/{audit_id}/resources
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}/audits/{audit_id}/resources:
    get:
      tags:
        - Site Audit
      summary: Get broken resources
      description: >-
        List all broken resources (images, CSS files, JavaScript files)
        discovered during the crawl with their HTTP status codes and the pages
        they were found on.
      operationId: get_resources_v1_projects__project_id__audits__audit_id__resources_get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: audit_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Audit 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_BrokenResourceResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    APIResponse_BrokenResourceResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - $ref: '#/components/schemas/BrokenResourceResponse'
            - type: 'null'
      type: object
      title: APIResponse[BrokenResourceResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BrokenResourceResponse:
      properties:
        audit_id:
          type: string
          format: uuid
          title: Audit Id
        resources:
          items:
            $ref: '#/components/schemas/BrokenResourceItem'
          type: array
          title: Resources
        total:
          type: integer
          title: Total
          default: 0
      type: object
      required:
        - audit_id
      title: BrokenResourceResponse
      description: All broken resources found within an audit.
    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
    BrokenResourceItem:
      properties:
        page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Url
        resource_url:
          type: string
          title: Resource Url
        resource_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Resource Type
          description: '''image'', ''stylesheet'', ''script'', etc.'
        status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Status Code
      type: object
      required:
        - resource_url
      title: BrokenResourceItem
      description: A single broken resource (image, CSS, JS) detected during the crawl.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````