The CURL request:

curl --location 'https://www5.wipo.int/am/oauth2/access_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: amarouteid=.wipoama4' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=das-api/office-exchange' \
--data-urlencode 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
--data-urlencode 'client_assertion=<< your jwt-assertion>>'

Request sample:

curl --location 'https://www5.wipo.int/am/oauth2/access_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: amarouteid=.wipoama4' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=das-api/office-exchange' \
--data-urlencode 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
--data-urlencode 'client_assertion=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkYXMtaWItcGN0MS1hcGktaWQiLCJzdWIiOiJkYXMtaWItcGN0MS1hcGktaWQiLCJhdWQiOiJodHRwczovL3d3dzUud2lwby5pbnQvYW0vb2F1dGgyL2FjY2Vzc190b2tlbiIsImV4cCI6MTY4MDAwNTE3NX0.najo7_C46T_vM5JfbnUxCyLhBQM2RKxVKy0Hi50Gz_k5Psnucy3lB9i3LWTreVmV0iXPno0fT8A84L7u6fIMsQ'

Expected response:

{"access_token":"<<the token that is generated for you>>","scope":"das-api/office-exchange","token_type":"Bearer","expires_in":3599}

Sample response:

{"access_token":"eyJ0eXAiOiJKV1QiLCJraWQiOiI3bEhXSFovZ1h6ajJ4WFdBcXFQMVRIUDdHZzA9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkYXMtaWItcGN0MS1hcGktaWQiLCJjdHMiOiJPQVVUSDJfU1RBVEVMRVNTX0dSQU5UIiwiYXVkaXRUcmFja2luZ0lkIjoiZmIwN2I5MjctOTg4MC00ZjM0LTg5YzUtMTgzYmJjODEwYWZhLTYxODgzNiIsImlzcyI6Imh0dHBzOi8vd3d3NS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