CmsWager Integration Document
  • Introduction
  • Before Start
  • Sportsbook UI
    • Integration
    • Window Message Events
  • CmsWager Api
    • Summary
    • Authentication
    • API Reference
      • Login/Register User
      • Freebet and Bonus assignment
    • Errors
  • Client API Reference
    • Summary
    • Api Reference
      • Bet placement
      • Cancelling bets
      • Concluding bets
      • Reopening concluded bets
      • Partial Cashout
      • Insurance
  • Frontend Api (optional)
    • Summary
    • Api Reference
      • Components
        • Top Leagues
        • Prematch Active Sports
        • Prematch Sport Menu
        • Last minute
        • Live now (reduced)
      • Matches
        • Tournament Odds
        • Match Odds
  • Appendix
    • Transaction types
    • Bet Status
    • Bet Type
    • Error Codes
Powered by GitBook
On this page
  1. CmsWager Api

Authentication

Getting an Access Token

Method: POST Content-Type: application/json URL: https://testapi.cmswager.com/api/v1/get_token

Parameter
Type
Mandatory
Description

clientUsername

String

Client username, provided by CmsWager

clientPassword

String

Client password, provided by CmsWager

Example Request

{
    "clientUsername": "test",
    "clientPassword": "test"
}

Example Response

{
    "data": {
        "token": "B9MfbOYi7JCv8wqaLexrHRprjp62Sst7ZYNPRSEm",
        "type": "Bearer",
        "expiry": 3600
    },
    "result": "success"
}

The received access token needs to be sent via subsequent requests, as a Bearer token inside the headers.

PreviousSummaryNextAPI Reference

Last updated 11 months ago