Get List of Documents with Specified Parameters
Purpose
To get a list of documents with specified parameters.
HTTP Request URL
https://{zohoapis_domain}/writer/api/v1/documents
Query Parameters
Parameter | Data Type | Description |
Optional Parameters | ||
offset | Integer | Set offset parameter to get the list of documents from the respective page. By default, offset value will be 0. |
limit | Integer | Set document limit and retrieve the list of documents within the specified limit. By default, limit value will be taken as 10. |
sortby | String | created_time By default, the documents will be sorted and listed based on the modified_time. |
sort_order_by | String | ascending By default, the documents will be sorted and listed in the descending order. |
category | String | all By default, the category value will be all. Here, all the documents will be listed. |
resource_type | String | Enter the document type from which the specified list needs to be retrieved. Possible values: fillable/merge/sign |
Note: You can also fetch the list of all documents from Zoho Writer using this deluge task.
Sample Request
Copiedcurl "https://www.zohoapis.com/writer/api/v1/documents?limit=7&offset=5
&sortby=modified_time&sort_order_by=descending"
-X GET
-H "Authorization: Zoho-oauthtoken xyz"
Sample Response
Copied{
"offset": 2,
"documents": [
{
"document_name": "Presales tips",
"created_time": "2018-03-30T10:58:48Z",
"modified_time": "2018-03-30T13:54:51Z",
"preview_url": "https://writer.zoho.com/writer/preview/ponaz5c1a267e61074c50a012d8e4b519c755",
"creator_id": "4579020",
"download_url": "https://writer.zoho.com/api/v1/download/ponaz5c1a267e61074c50a012d8e4b519c755",
"open_url": "https://writer.zoho.com/writer/open/ponaz5c1a267e61074c50a012d8e4b519c755",
"document_id": "ponaz5c1a267e61074c50a012d8e4b519c755",
"lastmodified_by": [
{
"email_id": "amelia@zylker.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=4579020&fs=thumb",
"user_id": "4579020",
"display_name": "Amelia"
}
],
"created_by": "Amelia",
"published_url": "https://writer.zoho.com/writer/published/ponaz5c1a267e61074c50a012d8e4b519c755",
"document_type": "document"
},
{
"document_name": "Shared images",
"created_time": "2018-03-23T10:19:19Z",
"modified_time": "2018-03-23T13:52:58Z",
"preview_url": "https://writer.zoho.com/writer/preview/ponazbbf33e7932664100bd1f2dd342b88822",
"creator_id": "4579020",
"download_url": "https://writer.zoho.com/api/v1/download/ponazbbf33e7932664100bd1f2dd342b88822",
"open_url": "https://writer.zoho.com/writer/open/ponazbbf33e7932664100bd1f2dd342b88822",
"document_id": "ponazbbf33e7932664100bd1f2dd342b88822",
"lastmodified_by": [
{
"email_id": "amelia@zylker.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=4579020&fs=thumb",
"user_id": "4579020",
"display_name": "Amelia"
}
],
"created_by": "Amelia",
"published_url": "https://writer.zoho.com/writer/published/ponazbbf33e7932664100bd1f2dd342b88822",
"document_type": "document"
},
{
"document_name": "Investment details",
"created_time": "2018-03-21T10:23:24Z",
"modified_time": "2018-03-21T10:23:24Z",
"preview_url": "https://writer.zoho.com/writer/preview/ponaz12a14c978a764c9db6b94232b0a92e25",
"creator_id": "4579020",
"download_url": "https://writer.zoho.com/api/v1/download/ponaz12a14c978a764c9db6b94232b0a92e25",
"open_url": "https://writer.zoho.com/writer/open/ponaz12a14c978a764c9db6b94232b0a92e25",
"document_id": "ponaz12a14c978a764c9db6b94232b0a92e25",
"lastmodified_by": [
{
"email_id": "amelia@zylker.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=4579020&fs=thumb",
"user_id": "4579020",
"display_name": "Amelia"
}
],
"created_by": "Amelia",
"published_url": "https://writer.zoho.com/writer/published/ponaz12a14c978a764c9db6b94232b0a92e25",
"document_type": "document"
},
{
"document_name": "Sample Document",
"created_time": "2018-03-16T12:43:26Z",
"modified_time": "2018-03-16T15:33:52Z",
"preview_url": "https://writer.zoho.com/writer/preview/ponaz34571ac4b9d64b92954237afd19791d5",
"creator_id": "4579020",
"download_url": "https://writer.zoho.com/api/v1/download/ponaz34571ac4b9d64b92954237afd19791d5",
"open_url": "https://writer.zoho.com/writer/open/ponaz34571ac4b9d64b92954237afd19791d5",
"document_id": "ponaz34571ac4b9d64b92954237afd19791d5",
"lastmodified_by": [
{
"email_id": "amelia@zylker.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=4579020&fs=thumb",
"user_id": "4579020",
"display_name": "Amelia"
}
],
"created_by": "Amelia",
"published_url": "https://writer.zoho.com/writer/published/ponaz34571ac4b9d64b92954237afd19791d5",
"document_type": "document"
},
{
"document_name": "Finalised Document",
"created_time": "2018-03-16T11:06:03Z",
"modified_time": "2018-03-16T11:06:03Z",
"preview_url": "https://writer.zoho.com/writer/preview/ponazbf7688e056494f9a81c6a1a0231d52c5",
"creator_id": "4579020",
"download_url": "https://writer.zoho.com/api/v1/download/ponazbf7688e056494f9a81c6a1a0231d52c5",
"open_url": "https://writer.zoho.com/writer/open/ponazbf7688e056494f9a81c6a1a0231d52c5",
"document_id": "ponazbf7688e056494f9a81c6a1a0231d52c5",
"lastmodified_by": [
{
"email_id": "amelia@zylker.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=4579020&fs=thumb",
"user_id": "4579020",
"display_name": "Amelia"
}
],
"created_by": "Amelia",
"published_url": "https://writer.zoho.com/writer/published/ponazbf7688e056494f9a81c6a1a0231d52c5",
"document_type": "document"
}
],
"total_count": 9,
"limit": 5
}