Skip to main content
GET
/
user
/
getMe
Get current user
curl --request GET \
  --url https://api.4casters.io/user/getMe \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "user": {
      "id": "<string>",
      "username": "<string>",
      "displayBalance": 123,
      "creditLimit": 123,
      "liability": 123,
      "commissionCharged": 123,
      "maxLiability": 123,
      "matchedVolume": {},
      "openInterest": {},
      "isAdmin": true,
      "hasMarketMakerAccess": true,
      "isPro": true,
      "isDeposit": true,
      "isAlphaUser": true,
      "sportsbookDefault": true,
      "defaultRotationNumbers": true,
      "displayRotationNumbers": true,
      "viewOddsWithCommission": true,
      "defaultExpiry": 123,
      "defaultOffer": 123,
      "defaultSendOrderMessage": true,
      "sportsbookMinimumDisplay": 123,
      "showChatLastMessage": true,
      "yesNoSummary": true,
      "accessCode": "<string>",
      "code": "<string>",
      "p2pCode": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "emailConfirmation": true
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.4casters.io/llms.txt

Use this file to discover all available pages before exploring further.

Returns the currently-authenticated user’s account information including balance, credit limit, current liability, default odds format, and access flags.

Request

GET /user/getMe This endpoint takes no parameters. Authentication is required (see Authentication).
curl https://api.4casters.io/user/getMe \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

data
object

Example

{
  "data": {
    "user": {
      "id": "5fe37acbb5a23600123662c1",
      "username": "your_username",
      "type": "p2p",
      "oddsFormat": "american",
      "displayBalance": 1250.50,
      "creditLimit": 500,
      "liability": -125.00,
      "commissionCharged": 0.01,
      "hasMarketMakerAccess": false,
      "isAdmin": false,
      "isPro": false,
      "createdAt": "2020-12-23T17:14:09.000Z",
      "emailConfirmation": true
    }
  }
}

Authorizations

Authorization
string
header
required

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

Response

Current user info

data
object