Endpoints
by @adamkristopher
Endpoints document management API toolkit. Scan documents with AI extraction and organize structured data into categorized endpoints. Use when the user asks to: scan a document, upload a file, list endpoints, inspect endpoint data, check usage stats, create or delete endpoints, get file URLs, or manage document metadata. Requires ENDPOINTS_API_KEY from endpoints.work dashboard.
List and Inspect
// Get all endpoints
const { categories } = await listEndpoints();
console.log(Found ${categories.length} categories);// Inspect specific endpoint
const details = await getEndpoint('/job-tracker/january');
console.log(Total items: ${details.totalItems});
Scan Documents
// Scan text content
const result = await scanText(
'Email from John Smith at Acme Corp about the Q1 contract renewal',
'business contacts'
);
console.log(Created endpoint: ${result.endpoint.path});// Scan a PDF file
const fileResult = await scanFile('./invoice.pdf', 'invoice tracker');
console.log(Extracted ${fileResult.entriesAdded} items);
Check Usage
const stats = await getStats();
console.log(Parses: ${stats.parsesUsed}/${stats.parsesLimit});
console.log(Storage: ${stats.storageUsed} bytes);
Install dependencies:
cd scripts && npm install
Configure credentials by creating a .env file in the project root:
ENDPOINTS_API_URL=https://endpoints.work
ENDPOINTS_API_KEY=ep_your_api_key_here
Prerequisites: An Endpoints account with an API key. Generate your API key from the API Keys page.
clawhub install endpoints