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.
Get a list of scopes/permissions currently authorized for your token.
Responses
200
Scope List Response
application/json
default
Error
application/json
get
/info/scopes/authorizedGET /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
default
Error
application/json
get
/info/scopes/availableGET /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
}
}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
default
Error
application/json
get
/info/access/authorizedGET /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
}
}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
default
Error
application/json
get
/info/access/availableGET /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?