Example API Call

Here is how you can add whitelist to a TN Profile.

 ### update whitelist
POST {{base_url}}/profile/tn/5469cd60-3abb-4162-ae34-47c56aae423a/whitelist
Content-Type: application/json
X-Auth-Token: {{token}}
{
  "add": [
    12345678200,
    12345678901,
    12345678902,
    12345678903,
    12345678999
  ]
}

In the above API, you can use a bearer instead of JWT.

After uploading they should assign all tn_leases to new whitelist profile like this:

PATCH {{base_url}}/lease/tn/<TNLEASE UUID | PHONE NUMBER>
Content-Type: application/json
X-Auth-Token: {{token}}
{
  "tn_profile": "5469cd60-3abb-4162-ae34-47c56aae423a"
}

Last updated