Generating a JWT

The API is enabled with JSON Web Token (JWT) token security policy and follows the steps below to request the JWT token and then request the performance measurement data.

  1. Request JWT token, for example:
curl -X POST --location 'https://login.microsoftonline.com/e741d71c-c6b6-47b0-803c-0f3b32b07556/oauth2/v2.0/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={{your_client_id}}' \
--data-urlencode 'client_secret={{your_client_secret}}' \
--data-urlencode 'Content-Type=application/x-www-form-urlencoded' \
--data-urlencode 'scope=api://{{api_id}}/.default'

Replace the variables shown below with your own:

  • {{ your_client_id}} - your client application id
  • {{ your_client_secret}} - your client application secret
  • {{ api_id}} - the API ID which you are requesting data, and this ID should be provided to you when your access request is approved
  1. Request Actual Data using JWT token

Example script:

curl -X GET --location 'https://networkperformance.nprd.gw.att.com/api/v1/performanceMeasurement?colleciton=RAN&IMSI={{your_requst_IMSI}}' \
--header 'Authorization: Bearer {{JWT_token}}'

Replace the variables shown below with your own:

  • {{ your_requst_IMSI}} - The IMSI the request is for.
  • {{ JWT_token}} - The JWT token value acquired in step 1.