Prerequisites
https://github.com/sqlparser/sqlflow_public/tree/master/api#prerequisites
This article shows how to use the SQLFlow Rest API to communicate with the SQLFlow server and get the generated metadata and data lineage.
In order to use the SQLFlow rest API, you may connect to the SQLFlow Cloud server or setup a SQLFlow on-premise version on your owner server.
If you want to connect to the SQLFlow Cloud Server, you may request a 30 days premium account to get the necessary userId and secret code.
Once getting the premium account, please click the icon at the right top of the screen:

Click the
Account
menu item to see:
Here you can
- Copy the userId
- By default, the Secret key field is empty, please click the
generate
button to create a new secret key and copy this code.
- User ID
- Secrete Key
Always set userId to
gudu|0123456789
and keep userSecret
empty when connect to the SQLFlow on-premise version.- 1.TOKEN is not needed in the API calls when connect to the SQLFlow on-premise version
- 2.
userId
is always set togudu|0123456789
anduserSecret
is left empty when connecting to the SQLFlow on-premise version. - 3.The server port is 8081 by default for the SQLFlow on-premise version, and There is no need to specify the port.