curl -sS -f -u "superuser:superuser" "http://localhost:8080/rest/tokens" -X POST
The server first deletes any existing authentication tokens for the current user, if such tokens exist.
The server creates a new token, and returns the new token as the result.
example.paxata.com
/rest/datasource/imports/<dataSourceID>/<datafileId>