> For the complete documentation index, see [llms.txt](https://docs.projetly.ai/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.projetly.ai/home/api-reference/documents.md).

# Documents

## All Documents

> This endpoint is used to fetch all documents for the current user

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/":{"get":{"operationId":"documents_list","description":"This endpoint is used to fetch all documents for the current user","summary":"All Documents","parameters":[{"in":"query","name":"items_per_page","schema":{"type":"integer"},"description":"Items Per Page","required":true},{"in":"query","name":"page","schema":{"type":"integer"},"description":"Page Number","required":true},{"in":"query","name":"reverse","schema":{"type":"boolean"},"description":"Sorting Order"},{"in":"query","name":"sort","schema":{"type":"string"},"description":"Sorting Key"}],"tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}}},"description":""}}}}}}
```

## Creates a new document

> This endpoint is used to save a new document for the current organization

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/":{"post":{"operationId":"documents_create","description":"This endpoint is used to save a new document for the current organization","summary":"Creates a new document","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"description":"No response body"}}}}}}
```

## Gets a document with the given id

> This endpoint is used to fetch a document detail for the current organization

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/{id}/":{"get":{"operationId":"documents_retrieve","description":"This endpoint is used to fetch a document detail for the current organization","summary":"Gets a document with the given id","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Edits the document with the given id

> This endpoint is used to edit an document for the current organization

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/{id}/":{"put":{"operationId":"documents_update","description":"This endpoint is used to edit an document for the current organization","summary":"Edits the document with the given id","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## Deletes the document with the given id

> This endpoint is used to delete an document for the current organization

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/{id}/":{"delete":{"operationId":"documents_destroy","description":"This endpoint is used to delete an document for the current organization","summary":"Deletes the document with the given id","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["Documents"],"responses":{"204":{"description":"No response body"}}}}}}
```

## GET /api/documents/activities/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/activities/":{"get":{"operationId":"documents_activities_retrieve","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## GET /api/documents/analytics/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/analytics/":{"get":{"operationId":"documents_analytics_retrieve","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Deletes the documents with the given ids

> This endpoint is used to bulk delete documents for the current organization

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/bulkdelete/":{"post":{"operationId":"documents_bulkdelete_create","description":"This endpoint is used to bulk delete documents for the current organization","summary":"Deletes the documents with the given ids","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Upload file chunk

> Upload a single chunk of the file

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/chunked-upload/chunk/":{"post":{"operationId":"documents_chunked_upload_chunk_create","description":"Upload a single chunk of the file","summary":"Upload file chunk","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## Complete chunked upload

> Complete the chunked upload by assembling all chunks

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/chunked-upload/complete/":{"post":{"operationId":"documents_chunked_upload_complete_create","description":"Complete the chunked upload by assembling all chunks","summary":"Complete chunked upload","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"description":"No response body"}}}}}}
```

## Initialize chunked upload

> Initialize a chunked file upload session for large files

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/chunked-upload/init/":{"post":{"operationId":"documents_chunked_upload_init_create","description":"Initialize a chunked file upload session for large files","summary":"Initialize chunked upload","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"description":"No response body"}}}}}}
```

## Get chunked upload status

> Get the status and progress of a chunked upload

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/chunked-upload/status/":{"get":{"operationId":"documents_chunked_upload_status_retrieve","description":"Get the status and progress of a chunked upload","summary":"Get chunked upload status","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## POST /api/documents/decline-signature/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/decline-signature/":{"post":{"operationId":"documents_decline_signature_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## GET /api/documents/download/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/download/":{"get":{"operationId":"documents_download_retrieve","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Download Signed Document

> Download signed document for a specific signer

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/download-signed/":{"get":{"operationId":"documents_download_signed_retrieve","description":"Download signed document for a specific signer","summary":"Download Signed Document","parameters":[{"in":"query","name":"attachment_id","schema":{"type":"string"},"description":"Document attachment ID","required":true},{"in":"query","name":"signer_email","schema":{"type":"string"},"description":"Email of the signer whose signed document to download","required":true}],"tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## POST /api/documents/engagement/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/engagement/":{"post":{"operationId":"documents_engagement_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Initiate E-Signature

> Initiate e-signature process for a document using DocuSeal

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/initiate-esign/":{"post":{"operationId":"documents_initiate_esign_create","description":"Initiate e-signature process for a document using DocuSeal","summary":"Initiate E-Signature","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/documents/options/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/options/":{"get":{"operationId":"documents_options_retrieve","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Accept Transfer Ownership

> Accept document ownership transfer. Recipient must call this to become the new owner.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/ownership/accept/":{"post":{"operationId":"documents_ownership_accept_create","description":"Accept document ownership transfer. Recipient must call this to become the new owner.","summary":"Accept Transfer Ownership","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## Initiate Transfer Ownership

> Initiate document ownership transfer to another user. Current owner sends transfer request.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/ownership/initiate/":{"post":{"operationId":"documents_ownership_initiate_create","description":"Initiate document ownership transfer to another user. Current owner sends transfer request.","summary":"Initiate Transfer Ownership","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## Publish Document

> Publish a draft EditorJS document

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/publish/":{"post":{"operationId":"documents_publish_create","description":"Publish a draft EditorJS document","summary":"Publish Document","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## Save Signature Template

> Save DocuSeal template\_id after configuring signature fields

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/save-signature-template/":{"post":{"operationId":"documents_save_signature_template_create","description":"Save DocuSeal template_id after configuring signature fields","summary":"Save Signature Template","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## Send for Signature

> Send document for signature to specified recipients

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/send-for-signature/":{"post":{"operationId":"documents_send_for_signature_create","description":"Send document for signature to specified recipients","summary":"Send for Signature","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/documents/send-reminder/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/send-reminder/":{"post":{"operationId":"documents_send_reminder_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## GET /api/documents/share/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/share/":{"get":{"operationId":"documents_share_retrieve","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## POST /api/documents/share/copy-link/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/share/copy-link/":{"post":{"operationId":"documents_share_copy_link_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## POST /api/documents/share/email/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/share/email/":{"post":{"operationId":"documents_share_email_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Get Signature Builder Token

> Get JWT token for DocuSeal builder to edit signature fields

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/signature-builder-token/":{"get":{"operationId":"documents_signature_builder_token_retrieve","description":"Get JWT token for DocuSeal builder to edit signature fields","summary":"Get Signature Builder Token","tags":["Documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/documents/signature-webhook/

> Public webhook endpoint for DocuSeal signature callbacks.\
> No authentication required - DocuSeal servers call this directly.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/signature-webhook/":{"post":{"operationId":"documents_signature_webhook_create","description":"Public webhook endpoint for DocuSeal signature callbacks.\nNo authentication required - DocuSeal servers call this directly.","tags":["Documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## Get Signer Slug

> Get DocuSeal signer slug for current user to sign document

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/signer-slug/":{"get":{"operationId":"documents_signer_slug_retrieve","description":"Get DocuSeal signer slug for current user to sign document","summary":"Get Signer Slug","tags":["Documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/documents/tag/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/tag/":{"post":{"operationId":"documents_tag_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## POST /api/documents/tag\_delete/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/tag_delete/":{"post":{"operationId":"documents_tag_delete_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## Get Template Roles

> Get signature roles from DocuSeal template

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}}},"paths":{"/api/documents/template-roles/":{"get":{"operationId":"documents_template_roles_retrieve","description":"Get signature roles from DocuSeal template","summary":"Get Template Roles","tags":["Documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/documents/validate/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/validate/":{"post":{"operationId":"documents_validate_create","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Attachment"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```

## GET /api/documents/versions/

> API endpoint that allows documents to be created, viewed, deleted or edited.

```json
{"openapi":"3.0.3","info":{"title":"Projetly API","version":"1.0.0"},"servers":[{"url":"https://api.app.projetly.io"}],"security":[{"bearerAuth":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained from /api/login/. Pass as: Authorization: Bearer <token>"}},"schemas":{"Attachment":{"type":"object","description":"Serializer for Documents.\n\nRecognized primitve fields:\n\n    * ``StringField``\n    * ``URLField``\n    * ``EmailField``\n    * ``IntField``\n    * ``LongField``\n    * ``FloatField``\n    * ``DecimalField``\n    * ``BooleanField``\n    * ``DateTimeField``\n    * ``ComplexDateTimeField``\n    * ``ObjectIdField``\n    * ``SequenceField`` (assumes it has integer counter)\n    * ``UUIDField``\n    * ``GeoPointField``\n    * ``GeoJsonBaseField`` (all those fields)\n    * ``DateField``\n\nCompound fields: ``ListField`` and ``DictField`` are mapped to corresponding DRF fields, with respect to nested field specification.\n\nThe ``ReferenceField`` is handled like ``ForeignKey`` in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as ``str(id)``).\n\nFor ``EmbeddedDocumentField`` also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.\n\nGeneric fields ``GenericReferenceField`` and ``GenericEmbeddedDocumentField`` are handled by their own with corresponding serializer fields.\n\nNot well supported or untested:\n\n    ``FileField``\n    ``ImageField``\n    ``BinaryField``\n\nAll other fields are mapped to ``DocumentField`` and probably will work wrong.","properties":{"id":{"type":"string","readOnly":true},"attach_id":{"type":"string"},"organization":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"sub_module":{"type":"string"},"storage_type":{"type":"string"},"reference_id":{"type":"string","nullable":true},"account_id":{"type":"string","nullable":true},"file_name":{"type":"string"},"zip_file_name":{"type":"string"},"file_type":{"type":"string","maxLength":225},"file_size":{"type":"integer"},"file_path":{"type":"string"},"file_icon":{"type":"string"},"version":{"type":"integer","nullable":true},"description":{"type":"string"},"creation_time":{"type":"string","format":"date-time"},"last_update_time":{"type":"string","format":"date-time"},"is_deleted":{"type":"boolean"},"created_by":{"type":"string"},"is_private":{"type":"boolean"},"show_download_icon":{"type":"boolean","default":true},"tags":{"type":"array","items":{}},"private_users":{"type":"array","items":{}},"parent_attach_id":{"type":"string","nullable":true},"show_in_document":{"type":"boolean"},"document_name":{"type":"string"},"latest_version":{"type":"boolean","default":true},"view_count":{"type":"integer"},"download_count":{"type":"integer"},"share_count":{"type":"integer"},"in_line_type":{"type":"integer"},"file_hash":{"type":"string","nullable":true},"public_config":{"type":"object","additionalProperties":{},"nullable":true},"external_file_url":{"type":"string","nullable":true},"menu_type":{"type":"string","nullable":true},"editorjs_content":{"type":"object","additionalProperties":{},"nullable":true},"editor_html_content":{"type":"string","nullable":true},"is_editorjs_document":{"type":"boolean"},"document_status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatusEnum"}],"default":"published"},"published_at":{"type":"string","format":"date-time","nullable":true},"signature_status":{"nullable":true,"default":"none","oneOf":[{"$ref":"#/components/schemas/SignatureStatusEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"signatures_required":{"type":"integer","nullable":true},"signatures_completed":{"type":"integer","nullable":true},"signature_enabled":{"type":"boolean"},"external_template_id":{"type":"integer","nullable":true},"external_template_slug":{"type":"string","nullable":true},"external_frozen_template_id":{"type":"integer","nullable":true},"external_frozen_template_slug":{"type":"string","nullable":true},"external_submission_id":{"type":"integer","nullable":true},"signature_recipients":{"type":"array","items":{},"nullable":true},"external_signed_document_url":{"type":"string","nullable":true},"external_audit_log_url":{"type":"string","nullable":true},"signed_at":{"type":"string","format":"date-time","nullable":true},"is_signed_version":{"type":"boolean"},"original_attach_id":{"type":"string","nullable":true},"version_type":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/VersionTypeEnum"},{"$ref":"#/components/schemas/BlankEnum"},{"$ref":"#/components/schemas/NullEnum"}]}},"required":["attach_id","document_name","id","organization"]},"DocumentStatusEnum":{"enum":["draft","published"],"type":"string","description":"* `draft` - draft\n* `published` - published"},"SignatureStatusEnum":{"enum":["none","pending","partial","signed","declined"],"type":"string","description":"* `none` - none\n* `pending` - pending\n* `partial` - partial\n* `signed` - signed\n* `declined` - declined"},"BlankEnum":{"enum":[""]},"NullEnum":{"enum":[null]},"VersionTypeEnum":{"enum":["edit","signature"],"type":"string","description":"* `edit` - edit\n* `signature` - signature"}}},"paths":{"/api/documents/versions/":{"get":{"operationId":"documents_versions_retrieve","description":"API endpoint that allows documents to be created, viewed, deleted or edited.","tags":["Documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}},"description":""}}}}}}
```
