Skip to Content
HelvetlyDocs
API referenceDocuments

List documents

Needs a token with the read:documents scope (or write:documents). Authentication

Try in Playground sends a real request to app.helvetly.com with a token you paste. It stays in this browser tab only (session storage) and goes to no one else.

GET
/api/v1/documents

Document metadata (name, size, kind, links), paged.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A personal API token, hvt_…, with scopes such as read:* or write:invoices

Query Parameters

page?integer

Page number, from 1.

Range1 <= value
Default1
page_size?integer

Items per page.

Range1 <= value <= 500
Default100
search?string

Matches the name.

folder_id?string

A folder id, or root for the top level; empty for all.

client_id?string

Only documents linked to this client.

kind?string

File kind.

Value in"pdf""image""spreadsheet""document""presentation""text""archive"
from?string

Uploaded on or after.

Formatdate
to?string

Uploaded on or before.

Formatdate
sort?string

One of name, size, created_at, updated_at, kind; prefix - for descending. Default name.

Response Body

OK

application/json
  1. response
data*array<>
meta*

Paging of a list: page/page_size in, totals out.

Example Request
curl -X GET 'https://app.helvetly.com/api/v1/documents'
Example Response
{  "data": [    {      "id": "string",      "name": "string",      "folder_id": "string",      "folder": {        "id": "string",        "name": "string"      },      "size": 0,      "content_type": "string",      "kind": "pdf",      "previewable": true,      "sha256": "string",      "links": [        {          "type": "string",          "id": "string",          "label": "string",          "retains": true        }      ],      "retained_until": "2019-08-24",      "uploaded_by": {        "id": "string",        "name": "string"      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "deleted_by": {        "id": "string",        "name": "string"      },      "purge_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "page": 0,    "page_size": 0,    "total": 0,    "total_pages": 0  }}