---
updatedAt: 2026-04-21T01:30:12.000Z
agentTools:
  projectIndex: https://developers.jasper.ai/llms.txt
---

# Retrieve knowledge items

Returns Knowledge items available to your workspace, ordered by most recently updated. Pagination defaults to page=1 and size=10. Omitted controls default independently. The legacy limit parameter overrides size. There is no fixed page-size cap. Controls must be positive safe integers (at most 9007199254740991), and (page-1) times the effective size must also be a safe integer; otherwise HTTP 400. Zero, negative, fractional and nonnumeric page, size or limit values return HTTP 400, even if size is overridden by limit. A page beyond the last returns empty data with the matching totalRecords, requested page and effective pageSize. No matches returns totalRecords=0. Follow pagination.next and pagination.prev to preserve q. Each request reads current Knowledge: additions, updates and deletions can change totals and page membership, so navigation is not a snapshot and items may repeat or be skipped. Example: GET /v1/knowledge?q=name%3ABrand&page=1&size=10. Follow the returned pagination.next URL until it is null.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/knowledge": {
      "get": {
        "description": "Returns Knowledge items available to your workspace, ordered by most recently updated. Pagination defaults to page=1 and size=10. Omitted controls default independently. The legacy limit parameter overrides size. There is no fixed page-size cap. Controls must be positive safe integers (at most 9007199254740991), and (page-1) times the effective size must also be a safe integer; otherwise HTTP 400. Zero, negative, fractional and nonnumeric page, size or limit values return HTTP 400, even if size is overridden by limit. A page beyond the last returns empty data with the matching totalRecords, requested page and effective pageSize. No matches returns totalRecords=0. Follow pagination.next and pagination.prev to preserve q. Each request reads current Knowledge: additions, updates and deletions can change totals and page membership, so navigation is not a snapshot and items may repeat or be skipped. Example: GET /v1/knowledge?q=name%3ABrand&page=1&size=10. Follow the returned pagination.next URL until it is null.",
        "operationId": "getKnowledgeDocuments",
        "parameters": [
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "You can use the `q` parameter to run a query parameter search. Query parameter search supports the following fields: `name`, `tags`, `metadata`, and `settings`.\n\nSupported operators: `AND` \n\nThe `AND` operator can be used to combine multiple search criteria. \n\n`NOTE`: The `AND` operator supports a maximum of `10` operators \n\nAvailable field examples: \n\n`name: value` \n\n`tags: value` \n\n`metadata[key]:value` \n\n`settings[appVisibility]:visible` \n\n`metadata[key1]:value1 AND metadata[key2]:value2` \n\n",
            "schema": {
              "example": "metadata[key]:value",
              "type": "string"
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Positive integer page number. Defaults to 1 independently of size or limit.",
            "schema": {
              "minimum": 1,
              "maximum": 9007199254740991,
              "default": 1,
              "example": 1,
              "type": "number"
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Positive integer items per page, with no fixed API cap (subject to safe-integer arithmetic). Defaults to 10; overridden by limit.",
            "schema": {
              "minimum": 1,
              "maximum": 9007199254740991,
              "default": 10,
              "example": 10,
              "type": "number"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Legacy alias for size. Takes precedence over size; positive integers only, with no fixed API cap (subject to safe-integer arithmetic).",
            "schema": {
              "minimum": 1,
              "maximum": 9007199254740991,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve knowledge items",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllKnowledgeResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. May be missing required fields or may have badly formatted inputs or options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Knowledge400Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. Unable to get knowledge items",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Knowledge500Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-API-Key": []
          },
          {
            "oauth2": [
              "user"
            ]
          }
        ],
        "summary": "Retrieve knowledge items",
        "tags": [
          "Knowledge"
        ]
      }
    }
  },
  "info": {
    "title": "Jasper API",
    "description": "Jasper API",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "Knowledge",
      "description": ""
    }
  ],
  "servers": [
    {
      "url": "https://api.jasper.ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-API-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Workspace authentication using API key tokens in the X-API-Key header."
      },
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.jasper.ai/oauth2/authorize",
            "tokenUrl": "https://api.jasper.ai/oauth2/token",
            "refreshUrl": "https://api.jasper.ai/oauth2/token",
            "scopes": {
              "user:read": "Read user information",
              "user": "Read and write user information"
            }
          }
        },
        "description": "User-level authentication using OAuth bearer tokens in the Authorization header."
      }
    },
    "schemas": {
      "Settings": {
        "type": "object",
        "properties": {
          "appVisibility": {
            "type": "string",
            "description": "Whether the Knowledge is available in the Jasper app. Provides a way to omit Knowledge items created from the API, from being available in the Jasper app experience. One of \"visible\" or \"hidden\". Defaults to \"visible\".",
            "enum": [
              "visible",
              "hidden"
            ],
            "default": "visible"
          },
          "autoSummary": {
            "type": "boolean",
            "description": "Specify if the summary should be created manually or automatically.",
            "default": true
          }
        }
      },
      "KnowledgeResponseDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The friendly name of the Knowledge item. Up to 100 characters.",
            "example": "Product Release Monthly Webinar - May 2023"
          },
          "file": {
            "type": "string",
            "description": "The filename or download URL of the Knowledge item source file. When available, this will be a signed URL for downloading the file.",
            "example": "jasperbrandvoice.pdf"
          },
          "metadata": {
            "type": "object",
            "description": "Set of key-value pairs that you can attach to a Knowledge. This can be useful for storing any additional information you wish, in a structured format. You can specify up to 10 keys, with key names up to 40 characters long and values up to 500 characters long.",
            "example": {
              "key1": "value1",
              "key2": "value2"
            }
          },
          "settings": {
            "description": "Additional configuration options.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Settings"
              }
            ]
          },
          "id": {
            "type": "string",
            "example": "kno_2ee766eaa4ef48e59da1d9602bfecf2d"
          },
          "createdAt": {
            "type": "string",
            "example": "2023-09-21T15:38:00.474Z"
          },
          "updatedAt": {
            "type": "string",
            "example": "2023-09-21T15:38:00.474Z"
          },
          "processingState": {
            "type": "string",
            "example": "InProgress"
          },
          "tags": {
            "example": [
              "tag1",
              "tag2"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "appUrl": {
            "type": "string",
            "description": "The client URL to view the Knowledge item in the Jasper app. Empty when no link can be resolved.",
            "example": "https://app.jasper.ai/jasper-iq/knowledge-base/kno_2ee766eaa4ef48e59da1d9602bfecf2d"
          },
          "url": {
            "type": "string",
            "description": "The original URL the Knowledge item was built from. Present for URL and website sources. Null for uploaded files and other source types.",
            "example": "https://giving.uchicago.edu",
            "nullable": true
          }
        },
        "required": [
          "name",
          "file"
        ]
      },
      "Knowledge400Error": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "example": "bce766ea-a4ef-48e5-9da1-d9602bfecf2d"
          },
          "resource": {
            "type": "string",
            "example": "knowledge"
          },
          "errors": {
            "example": [
              "error message"
            ],
            "type": "array",
            "items": {
              "type": "array"
            }
          }
        }
      },
      "Knowledge500Error": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "example": "bce766ea-a4ef-48e5-9da1-d9602bfecf2d"
          },
          "resource": {
            "type": "string",
            "example": "knowledge"
          },
          "errors": {
            "example": "Couldn't get the Knowledge item document",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "KnowledgePaginationResponseDto": {
        "type": "object",
        "properties": {
          "totalRecords": {
            "type": "number",
            "description": "The total number of Knowledge items in the response",
            "example": 1
          },
          "page": {
            "type": "number",
            "description": "The current page number of Knowledge items in the response",
            "example": 1,
            "default": 1
          },
          "size": {
            "type": "number",
            "description": "The number of Knowledge items per page in the response",
            "example": 10,
            "default": 10
          },
          "next": {
            "type": "object",
            "description": "The URL to the next page of Knowledge items in the response",
            "example": null
          },
          "prev": {
            "type": "object",
            "description": "The URL to the previous page of Knowledge items in the response",
            "example": null
          }
        },
        "required": [
          "totalRecords",
          "page",
          "size",
          "next",
          "prev"
        ]
      },
      "GetAllKnowledgeResponseDto": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "example": "bce766ea-a4ef-48e5-9da1-d9602bfecf2d"
          },
          "resource": {
            "type": "string",
            "example": "knowledge"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeResponseDto"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/KnowledgePaginationResponseDto"
          }
        }
      }
    }
  },
  "x-readme": {
    "metrics-enabled": false
  }
}
```