POST https://automateddocs.com/api/document
Creates a new document based on the specified template and data.
Bearer {token}
multipart/form-data
Replace {token}
with your actual bearer token.
pdf
).1
for generating a test document. The default is 0
(not a test document).curl --request POST \
--url https://automateddocs.com/api/document \
--header 'Authorization: Bearer 2|7APNZflrkuxeKjJ6rRnsQpOKrv5y7ywasDbVZ1nI2e897de4' \
--header 'Content-Type: multipart/form-data' \
--form 'data={
"variable 1": "variable 1",
"tag 2": "pepe",
"tag 3": "",
"tag 4": "",
"tag 5": "",
"EXAMPLE_LIST": [
{
"LIST_ITEM": "item 1"
},
{
"LIST_ITEM": "item 2"
}
],
"TABLE": [
{
"COL_1": "sd",
"COL_2": "sad",
"COL_3": "asd",
"COL_4": "asd"
},
{
"COL_1": "123",
"COL_2": "456",
"COL_3": "789",
"COL_4": "098"
}
],
"IMAGE_TEST": "https://source.unsplash.com/user/c_v_r/300x300"
}' \
--form output_type=pdf \
--form 'output_filename=variable 1' \
--form template_id=5f2adff4-7969-4582-8bc6-68065b9bc952 \
--form test=0
GET https://automateddocs.com/api/document
Retrieves a list of documents generated from the templates. This includes metadata about each document such as its status, output type, expiration details, and URLs for downloading or accessing the document on the cloud.
This request requires an authentication token to be included in the header.
Authorization: Bearer {token}
Replace {token}
with your actual bearer token.
The response is in JSON format with the following structure:
{
"success": true,
"documents": {
"current_page": "integer",
"data": [
{
"id": "integer",
"status": "string",
"output_filename": "string or null",
"output_type": "string",
"template_id": "integer",
"editable": "integer",
"password": "string or null",
"test": "integer",
"expires_at": "datetime",
"expired": "integer",
"cloud_id": "string or null",
"cloud_url": "string or null",
"created_at": "datetime",
"updated_at": "datetime",
"download_url": "string"
}
// additional document objects
],
"first_page_url": "string",
"from": "integer",
"last_page": "integer",
"last_page_url": "string",
"links": [
{
"url": "string or null",
"label": "string",
"active": "boolean"
}
// additional link objects
],
"next_page_url": "string or null",
"path": "string",
"per_page": "integer",
"prev_page_url": "string or null",
"to": "integer",
"total": "integer"
}
}
GET https://automateddocs.com/api/document/{id}
Retrieves detailed information about a specific document identified by its ID.
This request requires an authentication token to be included in the header.
Authorization: Bearer {token}
Replace {token}
with your actual bearer token.
The response is in JSON format with the following structure:
{
"success": true,
"document": {
"id": "integer",
"status": "string",
"output_filename": "string or null",
"output_type": "string",
"template_id": "integer",
"editable": "integer",
"password": "string or null",
"test": "integer",
"expires_at": "datetime",
"expired": "integer",
"cloud_id": "string or null",
"cloud_url": "string",
"created_at": "datetime",
"updated_at": "datetime",
"download_url": "string"
}
}
DELETE http://automateddocs.test/api/document/{id}
Deletes a specific document identified by its ID.
This request requires an authentication token to be included in the header.
Authorization: Bearer {token}
Replace {token}
with your actual bearer token.
The response will be in JSON format, typically indicating success:
{
"success": true,
"message": "Document deleted successfully"
}