Requiring access tokens for ndt7

Posted by Stephen Soltesz on 2020-09-10
ndt, ndt7

Starting October 7th, 2020, the ndt7 server on the M-Lab platform will require access tokens issued by the Locate API v2 to run a measurement.


With the ndt7 migration, clients began using access tokens. However, the NDT server does not yet require access tokens. On October 7th, we will require ndt7 clients to provide access tokens when running a measurement.

The Locate API v2 issues signed JSON web tokens (access tokens) that the target service verifies.

All officially supported clients use the Locate API v2 and provide access tokens to the ndt7 server automatically.

Third-party clients should migrate to the Locate API v2 to use access tokens too.

Get Access Tokens

To get an access token for ndt7, query the Locate API. Each result includes a set of URL templates as key and a complete URL as the value which includes the access token.

  "results": [
      "machine": "",
      "location": {
        "city": "New York",
        "country": "US"
      "urls": {
        "wss:///ndt/v7/download": "wss://",
        "wss:///ndt/v7/upload": "wss://",

Use Access Tokens

Clients do not have to interpret access tokens. Clients are only responsible for delivering the access token to the target service. For ndt7, the HTTP request parameters include the access token value, and are delivered automatically by typical HTTP or websocket libraries when making a connection.


If you have questions, please let us know.


As of 2021-02-02, access tokens are now required on M-Lab servers for ndt7 measurements.

Back to Top