---
title: "Returns the document with the specified id."
method: GET
path: "/documents/{documentId}"
tags: ["documents"]
---

# Returns the document with the specified id.

`GET /documents/{documentId}`

<Check title="Required Permissions" icon="key">The user must have at least `read` permissions for the specified document.</Check>

## Path parameters

- `documentId` string, uuid, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- DocumentModel
  - `id` string, uuid — The id of the entity.
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.
  - `name` string, nullable — The name of the document.
  - `currentDocumentVersionId` string, uuid, nullable — The id of the current document version.
  - `documentSpaceId` string, uuid, nullable — The id of the document space.
  - `documentSpace` DocumentSpaceModel
    - `id` string, uuid — The id of the entity.
    - `createdOn` string, date-time — The date this entity was created.
    - `createdBy` string, uuid — The id of the user who created this entity.
    - `updatedOn` string, date-time — The date this entity was last modified.
    - `updatedBy` string, uuid — The id of the user who last modified this entity.
    - `name` string, nullable — The name of the document space.
    - `isExternal` boolean — Whether this document space is coming from an external workspace (awork Connect).
    - `emoji` string, nullable — The emoji of the document space.
    - `color` string, nullable — The color of the document space for display purposes in the app. Can be null when no color assigned.
    - `order` number, double, nullable — The order of the document space in the list of document spaces.
    - `workspaceAccessLevel` string, nullable — Determines the level of access to this document space granted to all workspace users. Can be either not set (no access), `read`, or `manage`.
    - `contributors` ContributorModel[], nullable — The contributors of this document space.
      - `id` string, uuid — The id of the contributor.
      - `userId` string, uuid — The id of the user this contributor references.
      - `accessLevel` string, nullable — Determines the level of access granted to this contributor with respect to the specific entity. Can be either set to `read` or `manage`.
      - `firstName` string, nullable — The first name of the user.
      - `lastName` string, nullable — The last name of the user.
      - `hasImage` boolean, nullable — Whether the user has an image.
      - `isDeactivated` boolean — Whether the user is deactivated.
    - `teams` EntityToTeamModel[], nullable — The teams this document space is connected to.
      - `id` string, uuid — The id of the entity to team.
      - `teamId` string, uuid — The id of the team this entity to team references.
      - `accessLevel` string, nullable — Determines the level of access granted to this entity to team with respect to the specific entity. Can be either set to `read` or `manage`.
      - `name` string, nullable — The name of the team.
      - `icon` string, nullable — The icon which is assigned to the team.
      - `color` string, nullable — The color of the team.
  - `parentId` string, uuid, nullable — The id of the document's parent document.
  - `projectId` string, uuid, nullable — The id of the project this document references.
  - `project` PermissionProject
    - `id` string, uuid
    - `name` string, nullable
    - `createdBy` string, uuid
    - `teams` PermissionTeam[], nullable
      - `id` string, uuid
      - `name` string, nullable
    - `members` PermissionProjectMember[], nullable
      - `id` string, uuid
      - `projectRoleId` string, uuid
      - `userId` string, uuid
    - `isPrivate` boolean
    - `isExternal` boolean
  - `taskId` string, uuid, nullable — The id of the task this document references.
  - `emoji` string, nullable — The emoji of the document.
  - `isPrivate` boolean — Whether the document is private.
  - `order` number, double, nullable — The order of the document in either the list of private docs, the referenced document space or in the referenced project.
  - `isExternal` boolean — Whether the document belongs to an external project.
  - `isHiddenForConnectUsers` boolean — Whether the document is hidden for connect users.
  - `contributors` DocumentContributorModel[], nullable — The contributors of this document.
    - `id` string, uuid — The id of the contributor.
    - `userId` string, uuid — The id of the user this contributor references.
    - `accessLevel` string, nullable — Determines the level of access granted to this contributor with respect to the specific entity. Can be either set to `read` or `manage`.
    - `firstName` string, nullable — The first name of the user.
    - `lastName` string, nullable — The last name of the user.
    - `hasImage` boolean, nullable — Whether the user has an image.
    - `isDeactivated` boolean — Whether the user is deactivated.
    - `documentId` string, uuid — The id of the referenced document.
    - `inheritedFromDocumentContributorId` string, uuid, nullable — The id of the contributor the permission has been inherited from.
    - `inheritedDocumentContributor` PermissionInheritedDocumentContributor
      - `documentId` string, uuid
      - `accessLevel` string, nullable
  - `teams` DocumentToTeamModel[], nullable — The teams this document is connected to.
    - `id` string, uuid — The id of the entity to team.
    - `teamId` string, uuid — The id of the team this entity to team references.
    - `accessLevel` string, nullable — Determines the level of access granted to this entity to team with respect to the specific entity. Can be either set to `read` or `manage`.
    - `name` string, nullable — The name of the team.
    - `icon` string, nullable — The icon which is assigned to the team.
    - `color` string, nullable — The color of the team.
    - `documentId` string, uuid — The id of the referenced document.
    - `inheritedFromDocumentToTeamId` string, uuid, nullable — The id of the document to team the permission has been inherited from.
    - `inheritedDocumentToTeam` PermissionInheritedDocumentToTeam
      - `documentId` string, uuid
      - `accessLevel` string, nullable
  - `workspaceAccessLevel` string, nullable — Determines the level of access to this document granted to all workspace users. Can be either not set (no access), `read`, or `manage`.
  - `inheritedWorkspaceAccessFromDocumentId` string, uuid, nullable — The id of the document the workspace access level permission has been inherited from.
  - `inheritedWorkspaceAccessFromDocument` PermissionInheritedWorkspaceAccessFromDocument
    - `workspaceAccessLevel` string, nullable
  - `movedToTrashOn` string, date-time, nullable — The date the document has been moved to the trash
  - `movedToTrashBy` string, uuid, nullable — The id of the user that moved the document to the trash.
  - `rootDocumentCreatedBy` string, uuid — The user id of the creator of the root document of this document's document tree.

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
