IP Whitelist Management
Hostsβ
| Environment | Host |
|---|---|
| Test | https://test-my.tokenex.com |
| Production (US) | https://my.tokenex.com |
| Production (EU) | https://eu-my.tokenex.com |
Routesβ
| HTTP Verb | Route | Description |
|---|---|---|
| GET | /api/api/ip/{TokenExID} | Retrieve a list of IP Whitelists and their Descriptions for the given TokenEx ID. |
| POST | /api/api/ip/{TokenExID} | Add a new IP Whitelist (CIDR) entry to the given TokenEx ID. |
| PUT | /api/api/ip/{TokenExID}/{CIDR} | Update the Description for the given IP Whitelist (CIDR). Note: the CIDR must include the IP and the Range, in XXX.XXX.XXX.XXX/XX format. |
| DELETE | /api/api/ip/{TokenExID}/{CIDR} | Delete the given IP Whitelist (CIDR) entry. Note: the CIDR must include the IP and the Range, in XXX.XXX.XXX.XXX/XX format. |
Examplesβ
GET Requestβ
GET /api/api/ip/12345 HTTP/1.1
Host: test-my.tokenex.com
Content-Type: application/json
Authorization: {Your Authorization Value}
GET Responseβ
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 85
[{"ip":"0.0.0.0/0","description":""},{"ip":"1.2.3.4/32","description":"Testing IP"}]
POST Requestβ
POST /api/api/ip/12345 HTTP/1.1
Host: test-my.tokenex.com
Content-Type: application/json
Authorization: {Your Authorization Value}
{"ip":"0.0.0.0/32","description":"New entry"}
POST Responseβ
HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
PUT Requestβ
PUT /api/api/ip/12345/0.0.0.0/32 HTTP/1.1
Host: test-my.tokenex.com
Content-Type: application/json
Authorization: {Your Authorization Value}
{"description":"Updated Description"}
PUT Responseβ
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
DELETE Requestβ
DELETE /api/api/ip/12345/0.0.0.0/32 HTTP/1.1
Host: test-my.tokenex.com
Content-Type: application/json
Authorization: {Your Authorization Value}
DELETE Responseβ
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8