Token Information

These API calls allow a logged in user to obtain information about their current token and what permissions/access they can request on subsequent tokens.

Return the list of authorized scopes/permissions for your token

get
/info/scopes/authorized

Get a list of scopes/permissions currently authorized for your token.

Responses
200

Scope List Response

application/json
get
/info/scopes/authorized
GET /v1/info/scopes/authorized HTTP/1.1
Host: token.connect.sportradar.com
Accept: */*
{
  "data": [
    "read:organization"
  ],
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Return the list of all scopes/permissions that you could request for your token

get
/info/scopes/available

Get a list of scopes/permissions available for you to request for your token.

Responses
200

Scope List Response

application/json
get
/info/scopes/available
GET /v1/info/scopes/available HTTP/1.1
Host: token.connect.sportradar.com
Accept: */*
{
  "data": [
    "read:organization"
  ],
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Return the list of the currently authorized access for your token

get
/info/access/authorized

Get a list of access currently authorized for your token. This call will only work where the token is for datacore.

Responses
200

Access List Response

application/json
get
/info/access/authorized
GET /v1/info/access/authorized HTTP/1.1
Host: token.connect.sportradar.com
Accept: */*
{
  "data": {
    "organizations": [
      {
        "sport": "basketball",
        "organizationId": "b1a23",
        "nameLocal": "National Basketball League",
        "nameLatin": "National Basketball League"
      }
    ],
    "organizationGroups": [
      {
        "sport": "basketball",
        "orgGroup": "aubb"
      }
    ]
  },
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Return the list of all access that you could request for your token

get
/info/access/available

Get a list of access available for you to request for your token. This call will only work where the token is for datacore.

Responses
200

Access List Response

application/json
get
/info/access/available
GET /v1/info/access/available HTTP/1.1
Host: token.connect.sportradar.com
Accept: */*
{
  "data": {
    "organizations": [
      {
        "sport": "basketball",
        "organizationId": "b1a23",
        "nameLocal": "National Basketball League",
        "nameLatin": "National Basketball League"
      }
    ],
    "organizationGroups": [
      {
        "sport": "basketball",
        "orgGroup": "aubb"
      }
    ]
  },
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Was this helpful?