Authentication

Overview

The Playbetr API is a REST API.

Base URL:

https://api.playbetr.com/api/v1/

Authorization

The Playbetr System utilizes token based authentication for all API requests. Each Client is assigned a unique token that is used to identify and authenticate the Client on each API request. The token should be sent in the HTTP headers in the following format:

Authorization: Bearer {token}

Your token can be found in your user account at https://manage.playbetr.com.

Return Codes

The following are the return codes and their descriptions used by the Playbetr System.

  • 200: Success - The request completed successfully.
  • 400: Bad request - The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).
  • 403: Forbidden - The request is valid, but the server refuses to complete the request because the client does not have the proper permissions.
  • 451: Token Not Found - The supplied session token was not found.
  • 452: User Id Not Found - The supplied user id was not found.
  • 453: Game Not Found - The requested game was not found.
  • 454: Insufficient Funds - The user does not have enough funds to complete the request.
  • 500: General Internal Server Error - There was a general server error.