action drchrono_documents_list { label: "documents_list" description: "Retrieve or search documents" provider: drchrono method: GET path: "/api/documents" encoding: json input: { type: "object" properties: { cursor: { type: "string" description: "The pagination cursor value." } doctor: { type: "integer" } page_size: { type: "integer" description: "Number of results to return per page." } patient: { type: "integer" } since: { type: "string" } } additionalProperties: false } output: { type: "object" description: "Paginated Result" properties: { data: { type: "array" description: "result data" items: { type: "object" required: ["doctor", "description", "date", "document", "patient"] properties: { archived: { type: "boolean" description: "`DELETE` operation will set this field to `true`" } date: { type: "string" } description: { type: "string" } doctor: { type: "integer" description: "ID of the doctor who owns the document" } document: { type: "string" description: "When creating, if you receive response as 201, but this field is `null`, please send a `GET` request with the created object's ID to retrieve the updated file URL" } id: { type: "integer" } metatags: { type: "string" description: "Array of tags represented as string. This should be quoted--e.g. `'[\"a\", \"b\"]'`--since this endpoint requires `multipart/form-data` encoding" } patient: { type: "integer" description: "ID of the patient the document concerns" } updated_at: { type: "string" } } } } next: { type: "string" description: "Next Paginated page" } previous: { type: "string" description: "Previous paginated page" } } } }