Authentication
How to request and use Access Tokens.
1. Get your ClientID and Secret
2. Requesting the Access Token
ACCESS_TOKEN=$(curl --request POST https://api-gateway.instructure.com/ids/auth/login \
--user "${CLIENT_ID}:${SECRET}" \
--data-urlencode 'grant_type=client_credentials' | jq -r '.access_token')
echo $ACCESS_TOKEN3. Using the Access Token
curl --request GET 'https://api-gateway.instructure.com/dap/query/canvas/table' \
--header "Authorization: Bearer ${ACCESS_TOKEN}" Deprecation Notice for x-instauth Header Parameter
x-instauth Header ParameterLast updated