Dataleon: Empowering Automation with AI-powered Data Processing
Dataleon provides a powerful suite of AI APIs designed to streamline data processing tasks and unlock valuable information from various document formats. Their machine learning models extract and classify data with exceptional accuracy, automating workflows and eliminating manual data entry.
Authentication:
Dataleon utilizes API keys for authentication. You can obtain your free API key by creating an account on the Dataleon platform.
Here's a breakdown of some key Dataleon API endpoints along with JavaScript example code snippets for each:
1. KYC ID Verification (KYC)
- This endpoint verifies user identities using government-issued IDs and documents.
- Type: POST
- JavaScript Example: (Note: Potentially requires a paid plan)
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.dataleon.ai/kyc/v1/documents';
const data = new FormData();
data.append('document', file); // Replace with your ID document file
data.append('country', 'US'); // Specify the country of the ID
const headers = {
Authorization: `Bearer ${apiKey}`,
};
fetch(url, { method: 'POST', headers, body: data })
.then((response) => response.json())
.then((data) => {
console.log('ID Verification Result:', data);
})
.catch((error) => console.error(error));
2. KYC Business Verification (KYB)
- This endpoint verifies business information using official documents.
- Type: POST
- JavaScript Example: (Note: Potentially requires a paid plan)
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.dataleon.ai/kyb/v1/documents';
const data = new FormData();
data.append('document', file); // Replace with your business document file
const headers = {
Authorization: `Bearer ${apiKey}`,
};
fetch(url, { method: 'POST', headers, body: data })
.then((response) => response.json())
.then((data) => {
console.log('Business Verification Result:', data);
})
.catch((error) => console.error(error));
3. Proof of Address (POA)
- This endpoint verifies user addresses using documents like utility bills.
- Type: POST
- JavaScript Example: (Note: Potentially requires a paid plan)
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.dataleon.ai/poa/v1/documents';
const data = new FormData();
data.append('document', file); // Replace with your address document file
const headers = {
Authorization: `Bearer ${apiKey}`,
};
fetch(url, { method: 'POST', headers, body: data })
.then((response) => response.json())
.then((data) => {
console.log('Proof of Address Result:', data);
})
.catch((error) => console.error(error));
4. Finance API
- This endpoint analyzes various financial documents like invoices or receipts.
- Type: POST
- JavaScript Example:
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.dataleon.ai/finance/v1/documents';
const data = new FormData();
data.append('document', file); // Replace with your financial document file
const headers = {
Authorization: `Bearer ${apiKey}`,
};
fetch(url, { method: 'POST', headers, body: data })
.then((response) => response.json())
.then((data) => {
console.log('Financial Data Extracted:', data);
})
.catch((error) => console.error(error));
5. Text Classification (Beta)
- This endpoint classifies text data into predefined categories.
- Type: POST
- JavaScript Example: (Note: Beta functionality)
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.dataleon.ai/text-classification/v1/classify';
const data = {
"text": "This is an invoice for office supplies."
};
const headers = {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
};
fetch(url, { method: 'POST', headers, (body: JSON.stringify(data)) })
.then(response => response.json())
.then(data => {
console.log('Text Classification:', data);
})
.catch(error => console.error(error));
Exploring More with Dataleon
Dataleon offers a free tier with limited usage, along with paid plans that unlock additional features and capabilities. Explore their comprehensive documentation to delve deeper into each API endpoint, advanced functionalities, and pricing options. By leveraging Dataleon's AI-powered data processing tools, you can streamline workflows, extract valuable insights from various documents, and empower automation within your applications.