Generate an API key
Generate and obtain an API key from the Anon Dashboard. See the Authentication guide for detailed instructions.
Only organization admins can generate API keys. Contact your Anon point-of-contact for assistance.
Make a POST request to create a modal embed URL
Here is the API Reference for this endpoint.Here is an example implementation to create a modal embed URLThe API will respond with an signed/encrypted URL.
Embed the migration modal (client-side)
Embed the migration modal using the signed URL in an iFrame.You can refer to this example Github repository with an implementationThe user can now interact with the modal within the iframe to start a migration. The modal will handle the entire migration flow.
Anon Modal Integration Demo
A full example implementation showing how to integrate the Anon migration modal into a Next.js application.
Configure client-side communication between the iFrame and your parent window
The Anon modal uses a structured event system to communicate user interactions and modal state to the parent window when embedded as an iframe. Events are sent via To listen for modal events, add a message event listener in your parent application. Always check the event source and type:
window.postMessage() and always include user and migration context.Modal Communication
Read comprehensive implementation guidance for
window.postMessage() eventsExample implementation
Configure server-side communication using webhooks
Your Anon organization can subscribe to webhook events to receive push‑style notifications whenever important events occur during the data‑migration lifecycle.All webhook events share the same payload format:
Create and add an endpoint
Navigate to dashboard.anon.com/webhooks and click
+ Add endpoint.Define your event source
Enter the HTTPS URL (e.g.
https://api.example.com/anon/webhooks) where you want to recieve events.Create and test events
- Click on Create. You’ll start receiving events immediately.
- You can create a Svix Play endpoint to test receiving events
- You can also send example events (svix.ping) through the Testing tab of your endpoint
Use the files API to retrieve extracted data
The files API allows you to list and retrieve files associated with migrations.
Responses from the files API are returned in a structured JSON format as shown:
Anon uses a medallion stricture to arrange files into three distinct layers that progressively improve data quality and structure. Bronze files are raw, unprocessed files from source systems. Silver files are standardized, machine-readable (typically JSON) files with enforced schemas.
That’s it! You’re now ready to implement and use Anon’s data migration agents!