cURL Example


The cURL example below sends a request to the API gateway. Note that JWT generation is not included in this script. The JWT needs to be generated less than 5 seconds before it’s used for this authorization.

Replace:

The JWT and URL used below are examples. Yours will be different, and the URL will depend on the data provider string you’re assigned.

curl \
--header 'Authorization: C2C:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJleGFtcGxlLmNvbSIsInN1YiI6IkV4YW1wbGUgSldUIiwiaWF0IjoxNzM0NzU3NTIxfQ.cg7nXc6vtmqBXM1E_H0UZ2bW7qajFmIctfHS-j0B1PA' \
--header 'x-salesforce-region: <REGION>' \
--header 'Content-Type: application/json' \
--data '{"tdsContent":"<BASE64_URLENCODED_TDS>"}' \
https://api.salesforce.com/analytics/integration/explore-in-tableau/v1/upload-tds-content/example