Skip to main content

Search documents

GET /document
devhttps://api.sandbox.ovok.com

File search

Information such as id, contentType, fileName, public token.

Parameters

ParameterInDescriptionExample
_countqueryTotal amount of file informations per query10
_offsetqueryTotal amount of file informations to be skipped (page * count)0

Parameters

NameInTypeRequiredDescription
_countquerystringnoPage size — maximum number of documents to return in one response. Defaults to 100.
_offsetquerystringnoNumber of documents to skip before returning results. Combine with _count to paginate (offset = page × count).
_sortquerystringnoFHIR sort expression applied to the underlying DocumentReference search. Defaults to -_lastUpdated (most recently updated first).

Responses

CodeDescription
200Success.
400The request could not be operated by the server.
401The resource owner or authorization server denied the request.
404The requested resource could not be found.
422The request could not be validated by the server.
500The server encountered an unexpected condition. Please try again later.

200GetSearchFilesResponseDto (application/json)

  • total: number (required) — Total number of documents in the system.
  • resources: object[] (required)
    • id: string (required) — The ID of the DocumentReference resource.
    • meta: object — The metadata of the document.
    • author: object — The author of the document.
    • fileName: string — The name of the document.
    • contentType: string — The content type of the document.
    • uploadOptions: object — The upload options of the document.
    • publicToken: string — The public token of the document.

Example

{
"total": 100,
"resources": [
{
"id": "87ea5dfc-8b8e-384d-8489-79496e706390",
"fileName": "test.txt",
"contentType": "text/plain",
"publicToken": "example.jwt.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NzkzNTA5NzEsImV4cCI6MTc3OTM1NDU3MX0.PO6ZkOtyOEugGyNuZUyg_YxUt3ozpJ_QOdJuriC14uY"
}
]
}