API & Developer Hub
Integrate our powerful document management platform into your applications with ease.
Authentication
Secure your API requests using API keys. Manage your keys in theAPI Keys Management section.
Authorization: Bearer YOUR_API_KEY
API Endpoints
/api/documentsRetrieve the original version of all your documents.
/api/documents/:document_idRetrieve the latest version of a specific document.
/api/documents/:document_id/versionsRetrieve all versions of a document.
/api/documents/:document_id/versions/:version_idRetrieve a specific document version.
/api/documents/:document_id/versions/:version_id/sheetsRetrieve all sheets of a specific document version.
/api/documents/:document_id/versions/:version_id/sheets/:sheet_nameRetrieve the data of from a single sheet.
Query Parameters
Customize your API requests with these query parameters:
limit
Number of results to return (default: 20, max: 100)
?limit=50offset
Number of results to skip (for pagination)
?offset=20sort
Field to sort by (prefix with '-' for descending order)
?sort=-created_atfields
Comma-separated list of fields to include in the response
?fields=id,name,created_atfilter
Filter results based on field values
?filter[status]=active&filter[type]=spreadsheetCode Examples
Here's an example of how to fetch and filter document data using JavaScript:
const fetchDocumentData = async () => {
const documentId = '12345';
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://api.yourdomain.com';
try {
const response = await fetch(
`${baseUrl}/api/document/${documentId}/sheets/data?limit=50&sort=-updated_at&filter[status]=active`,
{
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
}
}
);
if (!response.ok) {
throw new Error('API request failed');
}
const data = await response.json();
console.log('Document data:', data);
} catch (error) {
console.error('Error fetching document data:', error);
}
};
fetchDocumentData();