Authentication with the Import API is done with a single API access token and your client ID.
You can generate an API access token by logging into your Stitch account and adding an Import API integration:
stitch_crmin the data warehouse.
This token has write access to your Stitch account. Do not distribute it to untrusted third parties.
You can authenticate to the API by providing your API access token in the Authorization header of your request.
curl -X POST https://api.stitchdata.com/v2/import/push \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer < access-token >' \ -d @filename
Note that you can push more than one table using the same API access token. Think of it this way: one schema for each API access token. All tables pushed using the same API access token will be housed in the same schema in your data warehouse.
Look at your URL while on the Dashboard page to find your client ID. It’s the four-digit number between client and pipeline:
Your client ID is included in the request body, in the
client_id field. See the Upsert Method section of the Import API Methods article for more info on this and the other required values.