---
agentTools:
  projectIndex: https://hermae.readme.io/llms.txt
---

# Get Active Sources

Get a record of sources powering your assistant.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.2.1",
    "title": "Hermae API",
    "description": "API for managing the Hermae application."
  },
  "servers": [
    {
      "url": "https://api.hermae.com"
    }
  ],
  "security": [
    {
      "HermaeKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "HermaeKeyAuth": {
        "type": "apiKey",
        "name": "x-hermae-key",
        "in": "header",
        "description": "Your API key for authentication."
      }
    },
    "schemas": {
      "OrganizationID": {
        "type": "string",
        "example": "A1B2C3D4E6"
      },
      "SpaceID": {
        "type": "string",
        "example": "A1B2C3D4E6"
      }
    },
    "parameters": {
      "OrganizationID": {
        "schema": {
          "$ref": "#/components/schemas/OrganizationID"
        },
        "required": true,
        "name": "organizationId",
        "in": "path"
      },
      "SpaceID": {
        "schema": {
          "$ref": "#/components/schemas/SpaceID"
        },
        "required": true,
        "name": "spaceId",
        "in": "path"
      }
    }
  },
  "paths": {
    "/organizations/{organizationId}/spaces/{spaceId}/sources": {
      "get": {
        "summary": "Get Active Sources",
        "description": "Get a record of sources powering your assistant.",
        "tags": [
          "Sources"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/OrganizationID"
          },
          {
            "$ref": "#/components/parameters/SpaceID"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 1,
              "default": 1
            },
            "required": false,
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Array of 25 source documents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number"
                    },
                    "returns": {
                      "type": "object",
                      "properties": {
                        "sources": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "key": {
                                "type": "string",
                                "maxLength": 256,
                                "description": "Unique identifier for this information that is consistent across updates."
                              },
                              "title": {
                                "type": "string",
                                "maxLength": 64,
                                "description": "Title of the content."
                              },
                              "content": {
                                "type": "string",
                                "maxLength": 100000,
                                "description": "Content of the source. Encrypted at rest."
                              },
                              "content_iv": {
                                "type": "string",
                                "description": "Initialization vector used for encryption and decryption."
                              },
                              "content_auth_tag": {
                                "type": "string",
                                "description": "Used for encryption / decryption processes."
                              },
                              "decrypted_content": {
                                "type": "string",
                                "description": "Decrypted content used for internal processing."
                              },
                              "url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Source page URL, where user can find more information."
                              },
                              "url_iv": {
                                "type": "string",
                                "description": "Initialization vector used for encryption and decryption."
                              },
                              "url_auth_tag": {
                                "type": "string",
                                "description": "Used for encryption / decryption processes."
                              },
                              "supplemental_content": {
                                "type": "string"
                              },
                              "space_id": {
                                "type": "string"
                              },
                              "organization_id": {
                                "type": "string"
                              },
                              "version": {
                                "type": "number",
                                "default": 0,
                                "description": "Version of this source. Increments one each upsert."
                              },
                              "metadata": {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              "last_updated": {
                                "type": "string"
                              },
                              "created_at": {
                                "type": "string"
                              },
                              "related_components": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "origin": {
                                "type": "string",
                                "maxLength": 16,
                                "description": "A string representing where this exchange originates from."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "source"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "key",
                              "title",
                              "content",
                              "content_iv",
                              "content_auth_tag",
                              "url_iv",
                              "url_auth_tag",
                              "space_id",
                              "organization_id",
                              "last_updated",
                              "created_at",
                              "origin",
                              "object"
                            ],
                            "description": "An object representing a document used for training."
                          }
                        }
                      },
                      "required": [
                        "sources"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "returns"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "message"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 66,
      "2": 111,
      "3": 18,
      "4": 218,
      "5": 98,
      "6": 116,
      "7": 0,
      "8": 18,
      "9": 82,
      "10": 77,
      "11": 93
    }
  }
}
```