Dream Sports Token Management API

The Token Management API from Dream Sports — 1 operation(s) for token management.

Operations 1

GET /v1/revocations Get token revocation list

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dream-sports-token-management-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dream-sports-token-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Guardian Token Management API
  version: 1.0.0
servers:
- url: https://auth.dream11.com/
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Token Management
paths:
  /v1/revocations:
    get:
      tags:
      - Token Management
      summary: Get token revocation list
      description: 'Retrieve the list of revoked tokens for the tenant within a time range.


        This endpoint provides information about tokens that have been revoked

        between the specified time range. If no ''from'' timestamp is provided,

        it defaults to current time minus access token expiry duration.


        **Time Range Logic:**

        - The endpoint automatically calculates the ''to'' timestamp as the current time

        - If ''from'' is not provided, it defaults to current time minus access token expiry

        - If ''from'' is before the allowed range, it gets adjusted to the minimum allowed time

        - If ''from'' is in the future, an error is returned


        **Response:**

        - Returns a list of revoked token identifiers (strings)

        - Includes the actual time range used for the query

        - Includes the access token expiry duration for reference

        '
      parameters:
      - $ref: '#/components/parameters/TenantIdHeader'
      - name: from
        in: query
        required: false
        description: Start timestamp (epoch seconds). If not provided, defaults to current time minus access token expiry
        schema:
          type: integer
          format: int64
          minimum: 0
          example: 1640995200
      responses:
        '200':
          description: Revocation list retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevocationsResponse'
        '400':
          description: Bad Request due to invalid timestamp parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_timestamp:
                  summary: Invalid timestamp format
                  value:
                    error:
                      code: invalid_request
                      message: Invalid timestamp
                future_timestamp:
                  summary: Future timestamp not allowed
                  value:
                    error:
                      code: invalid_request
                      message: from Timestamp is not in allowed range
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    RevocationsResponse:
      type: object
      description: Response containing revoked tokens within a time range
      required:
      - revocations
      - from
      - to
      - expiry
      properties:
        revocations:
          type: array
          description: List of revoked token identifiers
          items:
            type: string
          example:
          - token123
          - token456
          - token789
        from:
          type: integer
          format: int64
          description: Start timestamp (epoch seconds) for the query range
          example: 1640995200
        to:
          type: integer
          format: int64
          description: End timestamp (epoch seconds) for the query range
          example: 1641081600
        expiry:
          type: integer
          description: Access token expiry duration in seconds
          example: 3600
      example:
        revocations:
        - rft_abc123
        - rft_def456
        - rft_ghi789
        from: 1640995200
        to: 1641081600
        expiry: 3600
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code identifying the type of error
              example: invalid_request
            message:
              type: string
              description: Human-readable error message
              example: Something went wrong.
  parameters:
    TenantIdHeader:
      name: tenant-id
      in: header
      description: tenant-id of the client integrating with guardian
      required: true
      schema:
        type: string