Request:
curl --location --request POST 'https://webapi.aristotle.com/Token/Authentication/GenerateToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"prefix": "Demo",
"apiName": "External",
"username": "486B0DB8-76E8-4167-86FA-CCD2CBA32B13",
"password": "demoPassword1!"
}'
Response:
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTY29wZSI6IkVYVEVSTkFMIiwiUHJlZml4IjoiT3NjYXIyIiwiVXNlciI6IjdmNGQ2YzJkMDFhMTM0N2ZiMmViMWE0MTJkZWU3NWE0ZDA3MjM3MDExYjhkNGZjMzIzNDJhYTkxMmNiOTMyYmMiLCJuYmYiOjE2NjA1ODMxMTgsImV4cCI6MTY2MDU4MzE3OCwiaXNzIjoiand0LXRva2VuLXNlcnZpY2UiLCJhdWQiOiJFWFRFUk5BTCJ9.D3f-6mxLvjN1o7ektTgFOEhQSp8QHo0nXis5u130UF8",
"refreshToken": "MsrcqHjcnaL6ANqpTLD9pCDR3sCWlZpq/tleWeZzu/M="
}
curl --location --request GET 'https://webapi.aristotle.com/Individual/Individual/4dfe39b0-1aec-4c48-8682-3a8114d85ead' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTY29wZSI6IkVYVEVSTkFMIiwiUHJlZml4IjoiT3NjYXIyIiwiVXNlciI6IjdmNGQ2YzJkMDFhMTM0N2ZiMmViMWE0MTJkZWU3NWE0ZDA3MjM3MDExYjhkNGZjMzIzNDJhYTkxMmNiOTMyYmMiLCJuYmYiOjE2NjA1ODMxNzcsImV4cCI6MTY2MDU4MzIzNywiaXNzIjoiand0LXRva2VuLXNlcnZpY2UiLCJhdWQiOiJFWFRFUk5BTCJ9.rf3gCNy13vfA_F8OzHnoM9bdjEkSNgIhR62rBw6TMno'
curl --location --request POST 'https://webapi.aristotle.com/Token/Authentication/RefreshToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTY29wZSI6IkVYVEVSTkFMIiwiUHJlZml4IjoiT3NjYXIyIiwiVXNlciI6IjdmNGQ2YzJkMDFhMTM0N2ZiMmViMWE0MTJkZWU3NWE0ZDA3MjM3MDExYjhkNGZjMzIzNDJhYTkxMmNiOTMyYmMiLCJuYmYiOjE2NjA1ODMxNzcsImV4cCI6MTY2MDU4MzIzNywiaXNzIjoiand0LXRva2VuLXNlcnZpY2UiLCJhdWQiOiJFWFRFUk5BTCJ9.rf3gCNy13vfA_F8OzHnoM9bdjEkSNgIhR62rBw6TMno",
"refreshToken": "237c73JJpZaRfoggfB5B79XErUsWz+Qry5UZmu6KBE0="
}'
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTY29wZSI6IkVYVEVSTkFMIiwiUHJlZml4IjoiT3NjYXIyIiwiVXNlciI6IjdmNGQ2YzJkMDFhMTM0N2ZiMmViMWE0MTJkZWU3NWE0ZDA3MjM3MDExYjhkNGZjMzIzNDJhYTkxMmNiOTMyYmMiLCJuYmYiOjE2NjA1ODMyOTEsImV4cCI6MTY2MDU4MzM1MSwiaXNzIjoiand0LXRva2VuLXNlcnZpY2UiLCJhdWQiOiJFWFRFUk5BTCJ9.MOkYagnEBoWzGVowzDdhMF1MCv6LNpovBZcpNyxY9GU",
"refreshToken": "Dniy9QBzC6QnGsVAiVhbc6QNCcoF4glv0lEzCQWHwYs="
}