Documents

List all recently viewed documents

Changed on

This method will list all documents recently viewed by the current user.

post/documents.viewed

Request

  • Base URL
    https://app.getoutline.com/api
  • URL
    https://app.getoutline.com/api/documents.viewed
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://app.getoutline.com/oauth/authorize
      Token URL: https://app.getoutline.com/oauth/token scopes: read, write

Request body

offsetnumber
limitnumber
sort'updatedAt' | 'createdAt'

The field to sort by. Note that sorting is by a column of the view record, not the document itself.

direction'ASC' | 'DESC'

Example request

{
  "limit": 25,
  "direction": "DESC"
}

Response

OK

Example response

{
  "data": [
    {
      "title": "Welcome to Acme Inc",
      "icon": "🎉",
      "text": "…",
      "urlId": "hDYep1TPAM",
      "createdBy": {
        "name": "Jane Doe"
      },
      "updatedBy": {
        "name": "Jane Doe"
      },
      "deletedBy": {
        "name": "Jane Doe"
      }
    }
  ],
  "policies": [
    {
      "abilities": {
        "read": true,
        "update": true,
        "delete": false
      }
    }
  ],
  "pagination": {
    "limit": 25
  }
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      response property data/items/url deprecated

    • breaking

      added subschema #2 to the request body allOf list

    • warning

      removed from the request body allOf list