
Start Your AI Journey Today
- Access 100+ AI APIs in a single platform.
- Compare and deploy AI models effortlessly.
- Pay-as-you-go with no upfront fees.
Learn how to redact documents using Eden AI’s OCR Anonymization API in JavaScript. Learn how to set up Axios, launch an async redaction job, retrieve the results, interpret the output, and manage optional job actions like listing and deleting.
Protecting sensitive information is essential in fields such as healthcare, legal services, and finance. Document anonymization, also known as Document Redaction, helps ensure that confidential data stays secure.
Eden AI offers an asynchronous OCR anonymization API that simplifies this task. In this guide, you’ll learn how to automate document redaction in JavaScript using Eden AI’s API, following a straightforward two-step process.
Document redaction, or Anonymization, involves concealing or removing sensitive details like names, dates, or ID numbers from documents.
This process safeguards privacy and helps organizations stay compliant with data protection laws by rendering confidential information inaccessible or hidden.
1. Create an account: If you don't have an Eden AI account, sign up for free with the following link. Then get your API key in the API Keys section, which you can use to access various AI services.
2. Access Document Parsing Tools: Once logged in, go to the document parsing section of the platform.
3. Choose the Document Redaction Feature: Select the Document Redaction tool. You can also explore other OCR tools.
The process is asynchronous to allow for better performance and scalability. Redacting a document can take time, especially for large files, so:
To make requests to the Eden AI API in JavaScript, you'll need the axios package.
Install it using npm:
Eden AI handles redaction in two phases:
Here’s how to send the POST request:
The response will include a job_id, which you'll use in the next step.
Use the job_id returned from the POST request to retrieve the redacted document and check job status:
In addition to launching and retrieving results from redaction jobs, Eden AI also provides optional endpoints for better job management:
Eden AI provides several advantages.
Choose from a variety of AI services and providers, making it easy to compare outputs and select the most effective solution for your use case.
Access multiple AI tools through a single API key, eliminating the need for separate integrations. Simplify your setup and accelerate your launch.
With a pay-as-you-go approach, you only pay for what you use. There are no upfront fees, giving you flexible and scalable access to powerful AI services.
With Eden AI and JavaScript, redacting documents becomes simple, secure, and scalable. Whether you need to anonymize sensitive data for legal, medical, or enterprise purposes, Eden AI offers a powerful toolset to get the job done in minutes.
Try it out today and secure your data with ease.
You can access the full documentation for Document Redaction here.
You can directly start building now. If you have any questions, feel free to chat with us!
Get startedContact sales