Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Access to any NBIA Advanced REST API requires an authentication token. You must contact the TCIA Help Desk to receive the client_id and client_secret needed to generate a token.  If you want to access restricted collections, the TCIA Help Desk must give your user account permission to access them. 

...

Access to any NBIA Advanced REST API requires an authentication token. You must contact the TCIA Help Desk to receive the client_id and client_secret needed to generate a token. 

A request for a token takes the following structure. Refer to the table below for the correct username and password to pass in the call.

Code Block
titleStructure of a Request for a Token
curl -d "username=<username>&password=<password>&client_id=<theClientIDFromHelpDesk>&client_secret=<theClientSecretFromHelpDesk>&grant_type=password" -X POST -k https://services.cancerimagingarchive.net/nbia-api/oauth/token

...

If you don't have a TCIA account and want to test an API, you can access public data using the NBIA guest account with no password, as follows.

Code Block
curl -d "username=nbia_guest&password=&client_id=NBIA&grant_type=password" -X POST -k https://services.cancerimagingarchive.net/nbia-api/oauth/token


Request a token by interacting with the application in the following way.

...