See Tonic's API Documentation for more detailed information on the different endpoints, their parameters, and their responses.
1. Create an API token
API tokens are created in the application on the user settings page. The user settings page can be found in the menu to the right side of the Generate button.
Once a token is created, set your authorization header to Authorization: Apikey <token>. This type of token does not expire but can be revoked by the user who created it.
2. Create a new workspace
/api/Workspace
If successful, the response would return the workspace id that was created.
3. Assign a new source database
/api/DataSource/source_db
Connect a source DB to your workspace that was created in the previous step.
4. Assign a new destination database
/api/DataSource/destination_db
Connect a destination database of the same type as the source database to your workspace.
5. Specify the table mode for the source database tables