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

# Get Resource

> Retrieve a single resource.



## OpenAPI

````yaml GET /items/{itemId}/resources/{resourceId}
openapi: 3.1.0
info:
  title: Haystack API
  description: Content management and semantic search API for Haystack
  version: 2.0.0
  contact:
    name: Haystack Support
    email: support@thehaystack.ai
    url: https://thehaystack.ai
servers:
  - url: https://api.thehaystack.ai/v2/haystack
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Items
    description: Content item management
  - name: Collections
    description: Top-level content organization
  - name: Series
    description: Multi-part content grouping
  - name: Speakers
    description: Content presenter management
  - name: Media
    description: Video and audio asset management
  - name: Search
    description: Semantic content search
  - name: Analytics
    description: Usage statistics and metrics
  - name: Resources
    description: Attach supplementary files, links, and videos to items
  - name: Scriptures
    description: Attach Bible references to items
  - name: Chapters
    description: Time-based chapter markers on media assets
  - name: Stats
    description: Analytics and reporting
  - name: Frontend
    description: Public frontend configuration
paths:
  /items/{itemId}/resources/{resourceId}:
    get:
      tags:
        - Resources
      summary: Get resource
      description: Retrieve a single resource.
      parameters:
        - name: itemId
          in: path
          required: true
          schema:
            type: integer
        - name: resourceId
          in: path
          required: true
          schema:
            type: integer
        - name: _expand
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
              enum:
                - resourceType
          style: form
          explode: true
      responses:
        '200':
          description: Resource details
          content:
            application/json:
              schema:
                type: object
                properties:
                  resource:
                    $ref: '#/components/schemas/ItemResource'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ItemResource:
      type: object
      properties:
        id:
          type: integer
        itemId:
          type: integer
        title:
          type: string
        subTitle:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        resourceTypeId:
          type: integer
          nullable: true
        displayOrder:
          type: integer
          nullable: true
        contentType:
          type: string
          enum:
            - file
            - link
            - video
        fileMimeType:
          type: string
          nullable: true
        fileSizeBytes:
          type: integer
          nullable: true
        externalPlatform:
          type: string
          enum:
            - youtube
            - vimeo
          nullable: true
        externalPlatformId:
          type: string
          nullable: true
        thumbnailImgUrl:
          type: string
          nullable: true
          description: URL to the resource thumbnail image
        url:
          type: string
          nullable: true
          description: URL to access the resource (file URL or external link)
        resourceType:
          allOf:
            - $ref: '#/components/schemas/ResourceType'
          nullable: true
          description: Included when _expand contains 'resourceType'
        linkTarget:
          type: string
          nullable: true
          description: Target URL for link-type resources
    Error:
      type: object
      properties:
        result:
          type: string
          enum:
            - error
        error:
          type: object
          properties:
            type:
              type: string
            message:
              type: string
    ResourceType:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
          description: Display name for the resource category
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your API token from the Haystack dashboard

````