http
GET /projects/{project_reference}/knowledge/retrieval-documentsList retrieval documents. Requires project.knowledge.read.
Servers
JSON
1[2 {3 "url": "https://api.veryfront.com"4 }5]Authentication
JSON
1[2 {3 "bearerAuth": []4 },5 {6 "apiKeyAuth": []7 }8]JSON
1{2 "bearerAuth": {3 "type": "http",4 "scheme": "bearer",5 "bearerFormat": "JWT or API Key",6 "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."7 },8 "apiKeyAuth": {9 "type": "apiKey",10 "in": "header",11 "name": "X-API-Key",12 "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."13 }14}Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| project_reference | path | Yes | Project ID or slug. A project you cannot read is not_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated. |
| limit | query | No | |
| cursor | query | No | Opaque page_info.next from the previous page. A cursor this list did not issue is invalid_input. |
Parameter contracts
JSON
1[2 {3 "schema": {4 "type": "string",5 "description": "Project ID or slug. A project you cannot read is not_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated."6 },7 "required": true,8 "description": "Project ID or slug. A project you cannot read is not_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated.",9 "name": "project_reference",10 "in": "path"11 },12 {13 "schema": {14 "type": "integer",15 "minimum": 1,16 "maximum": 100,17 "default": 20,18 "description": "Records per page. Integer from 1 to 100; defaults to 20."19 },20 "required": false,21 "name": "limit",22 "in": "query"23 },24 {25 "schema": {26 "type": "string",27 "minLength": 1,28 "maxLength": 2048,29 "description": "Opaque page_info.next from the previous page. A cursor this list did not issue returns 400."30 },31 "required": false,32 "description": "Opaque page_info.next from the previous page. A cursor this list did not issue is invalid_input.",33 "name": "cursor",34 "in": "query"35 }36]Responses
200
A page of retrieval documents.
JSON
1{2 "description": "A page of retrieval documents.",3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "data": {9 "type": "array",10 "items": {11 "type": "object",12 "properties": {13 "id": {14 "type": "string",15 "format": "uuid",16 "description": "Retrieval document ID."17 },18 "revision": {19 "type": "string",20 "pattern": "^[a-f0-9]{64}$",21 "description": "Opaque revision of this record. Send it as expected_revision to update or delete exactly this version."22 },23 "title": {24 "type": "string",25 "description": "Document title."26 },27 "source": {28 "type": "string",29 "description": "Upstream source reference, such as a file path or URL; empty when not set."30 },31 "type": {32 "type": "string",33 "description": "Document type label; empty when not set."34 },35 "metadata": {36 "type": "object",37 "additionalProperties": {},38 "description": "Structured metadata stored with the record: an object of string keys to JSON values."39 },40 "created_at": {41 "type": "string",42 "format": "date-time",43 "description": "When the record was created (RFC 3339, UTC)."44 },45 "updated_at": {46 "type": "string",47 "format": "date-time",48 "description": "When the record last changed (RFC 3339, UTC)."49 }50 },51 "required": [52 "id",53 "revision",54 "title",55 "source",56 "type",57 "metadata",58 "created_at",59 "updated_at"60 ]61 },62 "description": "Retrieval document records behind ragStore(), oldest first with ID as tie-breaker. Read the ID and current revision before updating or deleting. Follow the next cursor until null to read every record."63 },64 "page_info": {65 "$ref": "#/components/schemas/PageInfo"66 }67 },68 "required": [69 "data",70 "page_info"71 ]72 }73 }74 }75}400
invalid_input: invalid limit or cursor
JSON
1{2 "description": "invalid_input: invalid limit or cursor",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}401
unauthenticated
JSON
1{2 "description": "unauthenticated",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}404
not_found: project not found or not visible
JSON
1{2 "description": "not_found: project not found or not visible",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}500
internal
JSON
1{2 "description": "internal",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}Referenced contracts
components/schemas/PageInfo
JSON
1{2 "type": "object",3 "properties": {4 "self": {5 "type": [6 "string",7 "null"8 ],9 "description": "Cursor pointing to the current page"10 },11 "first": {12 "type": "null",13 "description": "First page cursor (always null for cursor-based pagination)"14 },15 "next": {16 "type": [17 "string",18 "null"19 ],20 "description": "Cursor for the next page (null if no more pages)"21 },22 "prev": {23 "type": [24 "string",25 "null"26 ],27 "description": "Cursor for the previous page (null if on first page)"28 }29 },30 "required": [31 "self",32 "first",33 "next",34 "prev"35 ]36}components/schemas/Problem
JSON
1{2 "type": "object",3 "properties": {4 "cause": {5 "type": "string",6 "enum": [7 "schedule_concurrency_forbidden",8 "schedule_fire_in_progress",9 "schedule_run_limit_reached"10 ],11 "description": "Schedule admission refusal."12 },13 "idempotency": {14 "type": "object",15 "properties": {16 "state": {17 "type": "string",18 "enum": [19 "in_progress",20 "payload_mismatch",21 "outcome_unknown"22 ]23 },24 "operation": {25 "type": "string",26 "minLength": 127 },28 "retryable": {29 "type": "boolean"30 },31 "retry_after_seconds": {32 "type": [33 "integer",34 "null"35 ],36 "minimum": 037 },38 "expires_at": {39 "type": [40 "string",41 "null"42 ]43 },44 "recovery": {45 "type": "object",46 "properties": {47 "available": {48 "type": "boolean"49 },50 "description": {51 "type": "string"52 },53 "resource_url": {54 "type": "string"55 }56 },57 "required": [58 "available",59 "description"60 ]61 }62 },63 "required": [64 "state",65 "operation",66 "retryable",67 "retry_after_seconds",68 "expires_at"69 ],70 "description": "Replay status, retry timing, and recovery lookup."71 },72 "type": {73 "type": "string",74 "description": "URI reference identifying the problem type",75 "example": "https://api.veryfront.com/errors/validation-failed"76 },77 "title": {78 "type": "string",79 "description": "Short human-readable summary of the problem",80 "example": "Validation Failed"81 },82 "status": {83 "type": "integer",84 "minimum": 100,85 "maximum": 599,86 "description": "HTTP status code",87 "example": 40088 },89 "code": {90 "type": "string",91 "description": "Stable machine-readable error code",92 "example": "RUN_INVALID_INPUT"93 },94 "detail": {95 "type": "string",96 "description": "Human-readable explanation specific to this occurrence",97 "example": "The 'email' field must be a valid email address"98 },99 "instance": {100 "type": "string",101 "description": "URI reference identifying the specific occurrence",102 "example": "/projects/my-project/members"103 },104 "slug": {105 "type": "string",106 "description": "Stable identifier for the problem type",107 "example": "validation-failed"108 },109 "category": {110 "type": "string",111 "enum": [112 "AUTH",113 "RESOURCE",114 "VALIDATION",115 "DATABASE",116 "SUBSCRIPTION",117 "INTEGRATION",118 "INTERNAL"119 ],120 "description": "API error category",121 "example": "VALIDATION"122 },123 "suggestion": {124 "type": "string",125 "description": "Suggested action to resolve the problem",126 "example": "Check the request body and query parameters against the API documentation."127 },128 "errors": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "field": {134 "type": "string",135 "description": "Field path that caused the error",136 "example": "email"137 },138 "message": {139 "type": "string",140 "description": "Error message for this field",141 "example": "Invalid email format"142 },143 "code": {144 "type": "string",145 "description": "Error code for this field",146 "example": "INVALID_FORMAT"147 }148 },149 "required": [150 "field",151 "message"152 ]153 },154 "description": "Detailed field-level errors for validation failures"155 }156 },157 "required": [158 "type",159 "title",160 "status"161 ]162}Operation contract
JSON
1{2 "operationId": "listRetrievalDocuments",3 "tags": [4 "knowledge/Documents/Retrieval documents"5 ],6 "summary": "List retrieval documents",7 "description": "List retrieval documents. Requires project.knowledge.read.",8 "parameters": [9 {10 "schema": {11 "type": "string",12 "description": "Project ID or slug. A project you cannot read is not_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated."13 },14 "required": true,15 "description": "Project ID or slug. A project you cannot read is not_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated.",16 "name": "project_reference",17 "in": "path"18 },19 {20 "schema": {21 "type": "integer",22 "minimum": 1,23 "maximum": 100,24 "default": 20,25 "description": "Records per page. Integer from 1 to 100; defaults to 20."26 },27 "required": false,28 "name": "limit",29 "in": "query"30 },31 {32 "schema": {33 "type": "string",34 "minLength": 1,35 "maxLength": 2048,36 "description": "Opaque page_info.next from the previous page. A cursor this list did not issue returns 400."37 },38 "required": false,39 "description": "Opaque page_info.next from the previous page. A cursor this list did not issue is invalid_input.",40 "name": "cursor",41 "in": "query"42 }43 ],44 "responses": {45 "200": {46 "description": "A page of retrieval documents.",47 "content": {48 "application/json": {49 "schema": {50 "type": "object",51 "properties": {52 "data": {53 "type": "array",54 "items": {55 "type": "object",56 "properties": {57 "id": {58 "type": "string",59 "format": "uuid",60 "description": "Retrieval document ID."61 },62 "revision": {63 "type": "string",64 "pattern": "^[a-f0-9]{64}$",65 "description": "Opaque revision of this record. Send it as expected_revision to update or delete exactly this version."66 },67 "title": {68 "type": "string",69 "description": "Document title."70 },71 "source": {72 "type": "string",73 "description": "Upstream source reference, such as a file path or URL; empty when not set."74 },75 "type": {76 "type": "string",77 "description": "Document type label; empty when not set."78 },79 "metadata": {80 "type": "object",81 "additionalProperties": {},82 "description": "Structured metadata stored with the record: an object of string keys to JSON values."83 },84 "created_at": {85 "type": "string",86 "format": "date-time",87 "description": "When the record was created (RFC 3339, UTC)."88 },89 "updated_at": {90 "type": "string",91 "format": "date-time",92 "description": "When the record last changed (RFC 3339, UTC)."93 }94 },95 "required": [96 "id",97 "revision",98 "title",99 "source",100 "type",101 "metadata",102 "created_at",103 "updated_at"104 ]105 },106 "description": "Retrieval document records behind ragStore(), oldest first with ID as tie-breaker. Read the ID and current revision before updating or deleting. Follow the next cursor until null to read every record."107 },108 "page_info": {109 "$ref": "#/components/schemas/PageInfo"110 }111 },112 "required": [113 "data",114 "page_info"115 ]116 }117 }118 }119 },120 "400": {121 "description": "invalid_input: invalid limit or cursor",122 "content": {123 "application/problem+json": {124 "schema": {125 "$ref": "#/components/schemas/Problem"126 }127 }128 }129 },130 "401": {131 "description": "unauthenticated",132 "content": {133 "application/problem+json": {134 "schema": {135 "$ref": "#/components/schemas/Problem"136 }137 }138 }139 },140 "404": {141 "description": "not_found: project not found or not visible",142 "content": {143 "application/problem+json": {144 "schema": {145 "$ref": "#/components/schemas/Problem"146 }147 }148 }149 },150 "500": {151 "description": "internal",152 "content": {153 "application/problem+json": {154 "schema": {155 "$ref": "#/components/schemas/Problem"156 }157 }158 }159 }160 },161 "x-documentation-source-tag": "Project documents",162 "x-canonical-documentation": {163 "domain": "knowledge",164 "resource": "Documents",165 "subgroup": "Retrieval documents",166 "name": "List retrieval documents",167 "description": "List retrieval documents. Requires project.knowledge.read.",168 "operationId": "listRetrievalDocuments"169 },170 "x-mint": {171 "href": "/cloud/rest/api-reference/knowledge-documents-retrieval-documents/list-retrieval-documents"172 }173}