Users

These API calls allow a logged in user to obtain information about which customers and products they have access to.

Get a list of customers

post
/list/customers

Get a list of customers to which a user is linked.

Body
userIdentityTokenstringRequired

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

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ
productstringOptional

Only list customers that have a certain product.

Example: videostream_manager
Responses
200

Success

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

{
  "userIdentityToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ",
  "product": "videostream_manager"
}
{
  "data": {
    "customers": [
      {
        "customerId": 1,
        "name": "Test Customer"
      }
    ]
  },
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Get a list of products

post
/list/products

Get a list of products for a customer to which a user is linked.

Body
userIdentityTokenstringRequired

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

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ
customerIdstring · numberRequired

The id of the customer.

Example: 456
Responses
200

Success

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

{
  "userIdentityToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ",
  "customerId": 456
}
{
  "data": {
    "products": [
      {
        "code": "videostream_manager",
        "name": "Videostream Manager",
        "subProducts": [
          {
            "subProductId": 1,
            "subProductName": "Sub product 1"
          }
        ]
      }
    ]
  },
  "meta": {
    "code": 200,
    "codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
    "generationTime": 0.011604,
    "time": "2018-06-05 23:43:41.227584",
    "version": 1
  }
}

Was this helpful?