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

# Get Entity Sources

> List the per-resource provenance rows (incl. verbatim quotes) for an entity.

App-scoped, not user-scoped: every user of the app can read an entity's
sources — including quotes lifted from another user's resources — because
entities are the app's shared knowledge graph (see the module-docstring
tenancy contract).



## OpenAPI

````yaml https://app.stainlessapi.com/api/spec/documented/hyperspell.yaml get /entities/{entity_id}/sources
openapi: 3.1.0
info:
  title: Hyperspell API
  summary: >-
    Hyperspell is the memory layer for AI apps and agents. Through the API, you
    can add memories, connect data sources to index them in real-time, and
    search memories with our natural language query engine.
  termsOfService: https://hyperspell.com/blog/tos
  contact:
    name: Hyperspell
    url: https://hyperspell.com/
    email: hello@hyperspell.com
  version: 0.32.1
servers:
  - url: https://api.hyperspell.com
    description: Production
security:
  - APIKey: []
    AsUser: []
paths:
  /entities/{entity_id}/sources:
    get:
      tags:
        - entities
      summary: Get Entity Sources
      description: >-
        List the per-resource provenance rows (incl. verbatim quotes) for an
        entity.


        App-scoped, not user-scoped: every user of the app can read an entity's

        sources — including quotes lifted from another user's resources —
        because

        entities are the app's shared knowledge graph (see the module-docstring

        tenancy contract).
      operationId: get_entity_sources_entities__entity_id__sources_get
      parameters:
        - name: entity_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Entity Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 100
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntitySourcesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKey: []
        - AsUser: []
components:
  schemas:
    EntitySourcesResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/EntitySourceResponse'
          type: array
          title: Items
      type: object
      required:
        - items
      title: EntitySourcesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EntitySourceResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        resource_id:
          type: string
          title: Resource Id
        quote:
          anyOf:
            - type: string
            - type: 'null'
          title: Quote
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - resource_id
        - created_at
      title: EntitySourceResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKey:
      type: http
      description: >-
        API Key or JWT User Token. If using an API Key, set the X-As-User header
        to act as a specific user. A JWT User Token is always scoped to a
        specific user.
      scheme: bearer
      bearerFormat: Bearer <token>
    AsUser:
      type: apiKey
      description: >-
        Optionally set this header to act as a specific user when using an API
        Key, equivalent to first exchanging the API Key for a User Token
      in: header
      name: X-As-User

````