Products

Get tokens to access products (other than datacore)

Get an Access Token for access to a product.

post
/products/token

This API calls are used primarily by Synergy Sports internal systems to authenticate to products other than Datacore.

Body
userIdentityTokenstringRequired

A user token received on login to the single sign on system.

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ
productstringRequired

The product you want the token for. Valid options available for the user can be obtained from the products/list call.

Example: videostream_manager
customerIdstringRequired

The customerId for the product you want a token for. Valid options available for the user can be obtained from the customers/list call.

Example: 345
scopesstring[]Optional

A list of permission scopes that you want for this token. If not provided then all available permissions will be added. You would use this if you want your token to have less permissions that you are normally allowed.

Example: ["read:organization","write:organization"]
Responses
200

Success

application/json
post
/products/token
POST /v1/products/token HTTP/1.1
Host: token.connect.sportradar.com
Content-Type: application/json
Accept: */*
Content-Length: 381

{
  "userIdentityToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ",
  "product": "videostream_manager",
  "customerId": 345,
  "scopes": [
    "read:organization",
    "write:organization"
  ]
}
{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRoaXMgaXMganVzdCBhIGR1bW15IGV4YW1wbGUgdG9rZW4uIFlvdSBkaWRuJ3QgcmVhbGx5IGV4cGVjdCBhbnl0aGluZyBpbnRlcmVzdGluZyBoZXJlIGRpZCB5b3U_IiwiaWF0IjoxNTE2MjM5MDIyfQ.kh8vizGTBesLJgW0XuFh4cQ9dhmtOIasg6Hb1Z_KgHg",
    "tokenType": "bearer",
    "expiresIn": 3600
  },
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Was this helpful?