Get Documents
This endpoint fetch lsit of all the documents based on given query parameters.
Query parameters
-
project_id
string Required Project ID
-
task_id
string Required Task ID
-
parent_doc_id
string Parent Document ID
-
limit
string No of records per page
-
offset
string Record Offset
-
folder_id
string Folder ID
-
name
string Document Name
-
tag
string Document Tag
-
sort
string Sorting order, default is descending
Values are
ascending
ordescending
.
Responses
-
200 application/json
Success Response
-
The client request has not been completed because it lacks valid authentication credentials for the requested resource.
-
The client does not have access rights to the content.
-
The request method is known by the server but is not supported by the target resource.
GET
/api/v1.0/docs
curl \
--request GET https://openapi.niftypm.com/api/v1.0/docs?project_id=string&task_id=string \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"items": [
{
"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"
}
],
"hasMore": false
}