Get Document

GET /api/v1.0/docs/{document_id}

This endpoint fetch a particular document based on document id.

Path parameters

  • document_id string Required

    Document ID

Responses

  • 200 application/json

    Success Response

    Hide response attributes Show response attributes object
    • id string Required
    • name string Required
    • access_type string Required
    • type string Required
    • subtype string Required
    • external_id string Required
    • content object Required
    • author string Required
    • project_id string Required
    • tasks array[string] Required
    • archived boolean Required
    • members array[object] Required
      Hide members attributes Show members attributes object
      • id string Required
      • permission string Required
      • is_author boolean Required
      • active boolean Required
      • last_seen string(date-time) Required
      • last_edited string(date-time) Required
    • discussion_keys array[string] Required
    • public_token string Required
    • share_token string Required
    • created_at string(date-time) Required
    • comments number Required
    • hasAccess boolean Required
    • labels array[string] Required
    • folder string Required
    • order number Required
    • multipage boolean Required
    • parent_doc_id string Required
  • 401

    The client request has not been completed because it lacks valid authentication credentials for the requested resource.

  • 403

    The client does not have access rights to the content.

  • 405

    The request method is known by the server but is not supported by the target resource.

GET /api/v1.0/docs/{document_id}
curl \
 --request GET 'https://openapi.niftypm.com/api/v1.0/docs/{document_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "name": "string",
  "access_type": "string",
  "type": "string",
  "subtype": "string",
  "external_id": "string",
  "content": {},
  "author": "string",
  "project_id": "string",
  "tasks": [
    "string"
  ],
  "archived": true,
  "members": [
    {
      "id": "string",
      "permission": "string",
      "is_author": true,
      "active": true,
      "last_seen": "2025-05-04T09:42:00Z",
      "last_edited": "2025-05-04T09:42:00Z"
    }
  ],
  "discussion_keys": [
    "string"
  ],
  "public_token": "string",
  "share_token": "string",
  "created_at": "2025-05-04T09:42:00Z",
  "comments": 42.0,
  "hasAccess": true,
  "labels": [
    "string"
  ],
  "folder": "string",
  "order": 42.0,
  "multipage": true,
  "parent_doc_id": "string"
}