v1

latestOpenAPI 3.0.02026-07-14800227.2 KB
Documents

Return a list of company documents.

This endpoint returns a paginated list of the company documents.

get/documents/company

Query parameters

offsetnumber
Example:1

Optional filter for pagination proposals. Determines the number of pages to skip when pagination is being used. If this value is not provided, by default the offset will be 1.

limitnumber
Example:25

Optional filter for pagination proposals. The maximum number of rows to retrieve which determines the size of the page. If this value is not provided then the limit will be 50 users. The maximum value of the limit is 100 users per page. Only are valid the following limit values: 25, 50 and 100.

Headers

Authorizationstring required
Example:Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FwaS5rZW5qby5pbyIsInN1YiI6IjYwZjBhOTE2MjE0OTg3MjU2YmU5YzhmZiIsImF1ZCI6Imh0dHBzOi8vYXBpLmtlbmpvLmlvIiwiaWF0IjoxNjI2Mzg1MTE1LCJuYmYiOjE2MjYzODUxMTUsImV4cCI6MTYyNjU1NzkxNSwiYWNjZXNzVHlwZSI6IkFwaUFjY2VzcyIsInNfb3JnSWQiOiI2MGYwNGVhN2RmN2JhMjFlY2U0YmYzYzIifQ.cxG_7dIS-VbmDXdJuLkekoyuyCIzQG2fMcgc0nkfbWE8cihhcb5FnALbQkjU9b5-qVcEoMHZlSuUA-jMEBMMVQ

A valid bearer token.

Response

OK.

Example response

{
  "data": [
    {
      "_id": "60a2db290da29e126a18789a",
      "name": "company-core-values.pdf",
      "url": "https://files.kenjo.io/production/80a2db290da29e126a18789f/documents/HTd2siqazFfwTBfRd7Pc6_Core%20Values.pdf",
      "_updatedAt": "2018-04-09T16:31:21",
      "tags": [
        {
          "_id": "70a2db290da29e126a18789f",
          "name": "HR"
        },
        {
          "_id": "70a2db290da29e126a18789e",
          "name": "Basics"
        }
      ]
    },
    {
      "_id": "60a2db290da29e126a18789b",
      "name": "strategy.png",
      "url": "https://files.kenjo.io/production/80a2db290da29e126a18789a/documents/HTd2siqazFfwTBfRd7Pc7_Strategy.png",
      "_updatedAt": "2020-25-05T19:00:00",
      "tags": [
        {
          "_id": "70a2db290da29e126a18789e",
          "name": "Basics"
        }
      ]
    },
    {
      "_id": "60a2db290da29e126a18789c",
      "name": "data-protection.doc",
      "url": "https://files.kenjo.io/production/80a2db290da29e126a18789d/documents/HTd2siqazFfwTBfRd7Pc8_Data%20Protection.doc",
      "_updatedAt": "2018-01-01T00:15:00",
      "tags": []
    }
  ],
  "metadata": {
    "count": 2,
    "offset": 1,
    "limit": 50,
    "total": 2
  }
}