L’accès à l’API est sécurisé par un jeton JWT. Afin de générer ce jeton faudra utiliser l’endpoint authentification :
curl -X 'POST' \
'https://api.peopulse.com/api/token' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"username": "user@peopulse.com",
"password": "password",
"context": "PORTAIL_EU",
"customer": null
}'
Résultat :
{
"token": "eyJ0eXQiLCJhb1NiJ9..M---bRPQ7NdSLcgWxx_vTfCC_beCkdVnx4A3sVIDw3Es3dCPxbvK7NRoFAIv2Jw5qJc45iUP6EMzhFQG4oAMu4Wf4AI6Sw"
}