Documents
Operations related to document management
Enter the token in the format (Bearer )
72dcaac9-7398-408f-b4c0-c058d4a652edwebsinghajit@gmail.comJohnDoe1100.5200.5Invitation email sent successfully
Bad Request
User or document not found
POST /api/invite-for-sign HTTP/1.1
Host: localhost:8000
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"email": "websinghajit@gmail.com",
"firstname": "John",
"lastname": "Doe",
"page": 1,
"x": 100.5,
"y": 200.5
}{
"success": "invitation email sent",
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"email": "websinghajit@gmail.com"
}Allows authenticated users to upload a PDF document. The document is stored, and a thumbnail is generated.
PDF document file (Only PDF format allowed)
Document uploaded successfully
No document uploaded
Unauthorized
Invalid file format
POST /api/upload-document HTTP/1.1
Host: localhost:8000
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"success": "Document uploaded Successfully",
"url": "https://docufi3d.com/invite/72dcaac9-7398-408f-b4c0-c058d4a652ed",
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed"
}Allows authenticated users to delete a document by its UUID. If the document has not been signed, it is removed along with associated recipients and files.
The UUID of the document to be deleted
72dcaac9-7398-408f-b4c0-c058d4a652edDocument removed successfully
Invalid request or missing UUID
User not authenticated
Document cannot be deleted as it is signed
Document not found
DELETE /api/delete-document?uuid=72dcaac9-7398-408f-b4c0-c058d4a652ed HTTP/1.1
Host: localhost:8000
Accept: */*
{
"success": "Document Removed Successfully",
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed"
}Allows authenticated users to download a signed document using its UUID.
The UUID of the signed document to be downloaded
72dcaac9-7398-408f-b4c0-c058d4a652edSigned document download
Invalid request or missing UUID
User not authenticated
Document not found or not signed
GET /api/download-document?uuid=72dcaac9-7398-408f-b4c0-c058d4a652ed HTTP/1.1
Host: localhost:8000
Accept: */*
No content
Retrieves a list of all documents belonging to the authenticated user.
Successful retrieval of documents
User not authenticated
No document found
GET /api/documents HTTP/1.1
Host: localhost:8000
Accept: */*
{
"success": "List of all Documents",
"documents": [
{
"id": 1,
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"name": "Sample Document",
"status": 1,
"created_at": "2024-03-17T12:34:56Z",
"updated_at": "2024-03-17T12:34:56Z"
}
]
}Retrieves the status of a specific document belonging to the authenticated user.
The UUID of the document.
72dcaac9-7398-408f-b4c0-c058d4a652edSuccessful retrieval of document status
Missing UUID parameter
User not authenticated
No document found
GET /api/documents/status?uuid=72dcaac9-7398-408f-b4c0-c058d4a652ed HTTP/1.1
Host: localhost:8000
Accept: */*
{
"success": "List of all Documents",
"documents": [
{
"id": 1,
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"name": "Sample Document",
"status": 3,
"created_at": "2024-03-17T12:34:56Z",
"updated_at": "2024-03-17T12:34:56Z"
}
]
}Checks whether a document associated with a given UUID and email has been signed.
The UUID of the document.
72dcaac9-7398-408f-b4c0-c058d4a652edThe email address of the recipient.
websinghajit@gmail.comDocument signed status
Missing UUID parameter
User not authenticated
Document not signed
GET /api/documents/signed_status?uuid=72dcaac9-7398-408f-b4c0-c058d4a652ed&email=websinghajit%40gmail.com HTTP/1.1
Host: localhost:8000
Accept: */*
{
"success": "Document is signed"
}Sends a reminder email to a recipient for signing a document.
The UUID of the document.
72dcaac9-7398-408f-b4c0-c058d4a652edThe email address of the recipient.
websinghajit@gmail.comReminder email sent successfully
Missing or invalid parameters
User not authenticated
Document or recipient not found
POST /api/documents/reminder HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"email": "websinghajit@gmail.com"
}{
"success": "Email to recipients sent successfully",
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"email": "websinghajit@gmail.com"
}Allows an authenticated user to sign a document by providing a valid UUID.
Unique identifier of the document
72dcaac9-7398-408f-b4c0-c058d4a652edPage number where the signature should be placed
1X-coordinate of the signature placement
50Y-coordinate of the signature placement
100Document signed successfully
Bad request
Unauthorized
Not Found
POST /api/sign_document HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"uuid": "72dcaac9-7398-408f-b4c0-c058d4a652ed",
"page": 1,
"x": 50,
"y": 100
}{
"success": "document signed successfully."
}Last updated