Make API Requests

All the Totogi APIs require an authorization header that contains a valid access token. Please refer to Get API keys to learn more about how you can retrieve the access token. Now you can start making API requests using your access token as described below.

Here’s a complete command that outputs the first 5 customer names using Customer Management API.

curl --location --request GET\?limit\=5\&sort\=name --header "Authorization:Bearer $(curl -X POST --data @aws-auth-data.json -H "X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth" -H "Content-Type: application/x-amz-json-1.1" | jq -r ".AuthenticationResult.AccessToken")" |jq ".[].name"