1. login
Kickbase API v4
  • v4
    • leagues
      • {leagueId}
        • market
          • {playerId}
            • offers
              • {offerId}
                • accept
                  • POST /v4/leagues/{leagueId}/market/{playerId}/offers/{offerId}/accept
                  • Accept Manager Offer
                • decline
                  • POST /v4/leagues/{leagueId}/market/{playerId}/offers/{offerId}/decline
                  • Decline Manager Offer
                • DELETE /v4/leagues/{leagueId}/market/{playerId}/offers/{offerId}
              • POST /v4/leagues/{leagueId}/market/{playerId}/offers
            • sell
              • POST /v4/leagues/{leagueId}/market/{playerId}/sell
              • Accept Kickbase Offer
            • DELETE /v4/leagues/{leagueId}/market/{playerId}
          • GET /v4/leagues/{leagueId}/market
          • POST /v4/leagues/{leagueId}/market
        • scoutedplayers
          • {playerId}
            • DELETE /v4/leagues/:leagueId/scoutedplayers/:playerId
            • POST /v4/leagues/{leagueId}/scoutedplayers/{playerId}
          • DELETE /v4/leagues/{leagueId}/scoutedplayers
          • GET /v4/leagues/{leagueId}/scoutedplayers
        • users
          • {userId}
            • teamcenter
              • GET /v4/leagues/{leagueId}/users/{userId}/teamcenter
            • unlock
              • POST /v4/leagues/{leagueId}/users/{userId}/unlock
            • DELETE /v4/leagues/{leagueId}/users/{userId}
        • activitiesFeed
          • {activityId}
            • comments
              • GET /v4/leagues/{leagueId}/activitiesFeed/{activityId}/comments
              • POST /v4/leagues/{leagueId}/activitiesFeed/{activityId}/comments
            • GET /v4/leagues/{leagueId}/activitiesFeed/{activityId}
          • GET /v4/leagues/{leagueId}/activitiesFeed
        • battles
          • {type}
            • users
              • GET /v4/leagues/{leagueId}/battles/{type}/users
        • lineup
          • overview
            • GET /v4/leagues/{leagueId}/lineup/overview
          • selection
            • GET /v4/leagues/{leagueId}/lineup/selection
          • teams
            • GET /v4/leagues/{leagueId}/lineup/teams
          • clear
            • POST /v4/leagues/{leagueId}/lineup/clear
          • fill
            • POST /v4/leagues/{leagueId}/lineup/fill
          • GET /v4/leagues/{leagueId}/lineup
          • POST /v4/leagues/{leagueId}/lineup
        • managers
          • {managerId}
            • dashboard
              • GET /v4/leagues/{leagueId}/managers/{managerId}/dashboard
            • performance
              • GET /v4/leagues/{leagueId}/managers/{managerId}/performance
            • squad
              • GET /v4/leagues/{leagueId}/managers/{managerId}/squad
            • transfer
              • GET /v4/leagues/{leagueId}/managers/{managerId}/transfer
        • me
          • budget
            • GET /v4/leagues/{leagueId}/me/budget
          • GET /v4/leagues/{leagueId}/me
        • overview
          • GET /v4/leagues/{leagueId}/overview
        • players
          • {playerId}
            • marketValue
              • {timeframe}
                • GET /v4/leagues/{leagueId}/players/{playerId}/marketValue/{timeframe}
            • performance
              • GET /v4/leagues/{leagueId}/players/{playerId}/performance
            • transferHistory
              • GET /v4/leagues/{leagueId}/players/{playerId}/transferHistory
            • transfers
              • GET /v4/leagues/{leagueId}/players/{playerId}/transfers
            • marketvalue
              • {timeframe}
                • Market Value
            • GET /v4/leagues/{leagueId}/players/{playerId}
        • ranking
          • GET /v4/leagues/{leagueId}/ranking
        • settings
          • managers
            • GET /v4/leagues/{leagueId}/settings/managers
          • GET /v4/leagues/{leagueId}/settings
          • POST /v4/leagues/{leagueId}/settings
        • squad
          • GET /v4/leagues/{leagueId}/squad
        • teamcenter
          • myeleven
            • GET /v4/leagues/{leagueId}/teamcenter/myeleven
        • teams
          • {teamId}
            • teamprofile
              • Profile
        • user
          • achievements
            • {type}
              • GET /v4/leagues/{leagueId}/user/achievements/{type}
            • GET /v4/leagues/{leagueId}/user/achievements
        • image
          • POST /v4/leagues/{leagueId}/image
        • join
          • {code}
            • POST /v4/leagues/{leagueId}/join/{code}
          • POST /v4/leagues/{leagueId}/join
        • reset
          • POST /v4/leagues/{leagueId}/reset
        • resetteams
          • POST /v4/leagues/{leagueId}/resetteams
        • setteamseen
          • POST /v4/leagues/{leagueId}/setteamseen
      • list
        • GET /v4/leagues/list
      • recommended
        • GET /v4/leagues/recommended
      • selection
        • GET /v4/leagues/selection
      • GET /v4/leagues
    • competitions
      • {competitionId}
        • matchdays
          • GET /v4/competitions/{competitionId}/matchdays
        • playercenter
          • {playerId}
            • GET /v4/competitions/{competitionId}/playercenter/{playerId}
        • players
          • search
            • GET /v4/competitions/{competitionId}/players/search
          • {playerId}
            • marketValue
              • {timeframe}
                • GET /v4/competitions/{competitionId}/players/{playerId}/marketValue/{timeframe}
            • performance
              • GET /v4/competitions/{competitionId}/players/{playerId}/performance
            • marketvalue
              • {timeframe}
                • Market Value
            • GET /v4/competitions/{competitionId}/players/{playerId}
          • GET /v4/competitions/{competitionId}/players
        • ranking
          • GET /v4/competitions/{competitionId}/ranking
        • table
          • GET /v4/competitions/{competitionId}/table
        • teams
          • {teamId}
            • teamcenter
              • GET /v4/competitions/{competitionId}/teams/{teamId}/teamcenter
            • teamprofile
              • GET /v4/competitions/{competitionId}/teams/{teamId}/teamprofile
      • GET /v4/competitions
    • matches
      • {matchId}
        • betlink
          • GET /v4/matches/{matchId}/betlink
        • details
          • GET /v4/matches/{matchId}/details
    • live
      • eventtypes
        • GET /v4/live/eventtypes
    • user
      • targets
        • {connection}
          • DELETE /v4/user/targets/{connection}
        • POST /v4/user/targets
      • me
        • GET /v4/user/me
      • settings
        • image
          • POST /v4/user/settings/image
        • GET /v4/user/settings
        • PUT /v4/user/settings
      • forgotpassword
        • POST /v4/user/forgotpassword
      • login
        • POST /v4/user/login
          POST
      • password
        • POST /v4/user/password
      • refreshtokens
        • POST /v4/user/refreshtokens
      • register
        • POST /v4/user/register
      • DELETE /v4/user
        DELETE
    • challenges
      • favorites
        • {favoriteUserId}
          • DELETE /v4/challenges/favorites/{favoriteUserId}
        • POST /v4/challenges/favorites
      • socialhub
        • {followedUserId}
          • DELETE /v4/challenges/socialhub/{followedUserId}
        • invitation
          • GET /v4/challenges/socialhub/invitation
        • search
          • GET /v4/challenges/socialhub/search
        • GET /v4/challenges/socialhub
        • POST /v4/challenges/socialhub
      • archive
        • GET /v4/challenges/archive
      • lobby
        • archive
          • GET /v4/challenges/lobby/archive
        • divisionLadder
          • GET /v4/challenges/lobby/divisionLadder
        • explore
          • {challengeId}
            • GET /v4/challenges/lobby/explore/{challengeId}
          • GET /v4/challenges/lobby/explore
        • overview
          • live
            • GET /v4/challenges/lobby/overview/live
          • GET /v4/challenges/lobby/overview
        • profile
          • GET /v4/challenges/lobby/profile
        • skillPoints
          • summary
            • GET /v4/challenges/lobby/skillPoints/summary
          • collect
            • POST /v4/challenges/lobby/skillPoints/collect
      • overview
        • GET /v4/challenges/overview
      • recommended
        • GET /v4/challenges/recommended
      • selection
        • GET /v4/challenges/selection
      • {challengeId}
        • favorites
          • search
            • GET /v4/challenges/{challengeId}/favorites/search
          • GET /v4/challenges/{challengeId}/favorites
        • lineup
          • livepitch
            • GET /v4/challenges/{challengeId}/lineup/livepitch
          • overview
            • GET /v4/challenges/{challengeId}/lineup/overview
          • selection
            • GET /v4/challenges/{challengeId}/lineup/selection
          • teams
            • GET /v4/challenges/{challengeId}/lineup/teams
          • clear
            • POST /v4/challenges/{challengeId}/lineup/clear
          • fill
            • POST /v4/challenges/{challengeId}/lineup/fill
        • perfectlineup
          • GET /v4/challenges/{challengeId}/perfectlineup
        • performance
          • GET /v4/challenges/{challengeId}/performance
        • profile
          • GET /v4/challenges/{challengeId}/profile
        • ranking
          • GET /v4/challenges/{challengeId}/ranking
        • table
          • {userId}
            • GET /v4/challenges/{challengeId}/table/{userId}
          • GET /v4/challenges/{challengeId}/table
        • top10
          • GET /v4/challenges/{challengeId}/top10
        • join
          • POST /v4/challenges/{challengeId}/join
      • join
        • POST /v4/challenges/join
    • bonus
      • collect
        • GET /v4/bonus/collect
    • chat
      • leagueselection
        • {leagueId}
          • users
            • GET /v4/chat/leagueselection/{leagueId}/users
        • GET /v4/chat/leagueselection
      • refreshtoken
        • GET /v4/chat/refreshtoken
    • base
      • items
        • {itemId}
          • click
            • POST /v4/base/items/{itemId}/click
          • GET /v4/base/items/{itemId}
      • news
        • permanent
          • {competitionId}
            • GET /v4/base/news/permanent/{competitionId}
        • {competitionId}
          • GET /v4/base/news/{competitionId}
      • predictions
        • teams
          • {competitionId}
            • GET /v4/base/predictions/teams/{competitionId}
      • stage
        • GET /v4/base/stage
      • overview
        • Base Overview
    • config
      • onboarding
        • GET /v4/config/onboarding
      • version
        • GET /v4/config/version
      • GET /v4/config
    • invitations
      • {code}
        • validate
          • GET /v4/invitations/{code}/validate
      • {leagueId}
        • code
          • GET /v4/invitations/{leagueId}/code
    • onboarding
      • challenge
        • {challengeId}
          • lineup
            • fill
              • POST /v4/onboarding/challenge/{challengeId}/lineup/fill
        • GET /v4/onboarding/challenge
      • freetrial
        • GET /v4/onboarding/freetrial
      • gameMode
        • recommendation
          • GET /v4/onboarding/gameMode/recommendation
      • league
        • invitation
          • {code}
            • validate
              • GET /v4/onboarding/league/invitation/{code}/validate
      • rushasset
        • GET /v4/onboarding/rushasset
      • training
        • challenge
          • GET /v4/onboarding/training/challenge
    • products
      • purchase
        • POST /v4/products/purchase
      • GET /v4/products
    • promotion
      • GET /v4/promotion
    • refiner
      • identify
        • GET /v4/refiner/identify
    • settings
      • subscriptionStatus
        • GET /v4/settings/subscriptionStatus
    • support
      • contactinfo
        • GET /v4/support/contactinfo
    • usertracking
      • firsttransfer
        • GET /v4/usertracking/firsttransfer
      • firsttransferseen
        • POST /v4/usertracking/firsttransferseen
  1. login

POST /v4/user/login

POST
https://api.kickbase.com/v4/user/login

User Login#

This endpoint authenticates a user and returns an access token for subsequent API requests.

Overview#

The login endpoint validates user credentials (email and password) and returns an authentication token upon successful authentication. This token should be used in the Authorization header for all authenticated API requests.

Request Body Parameters#

The request accepts a JSON payload with the following parameters:
ParameterTypeRequiredDescription
emstringYesUser's email address
passstringYesUser's password

Example Request Body#

{
  "em": "user@example.com",
  "pass": "your_password"
}

Response Codes#

200 OK#

Successful authentication. Returns user data and authentication token.
Response Structure:
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user": {
    "id": "user_id",
    "email": "user@example.com",
    ...
  }
}

401 Unauthorized#

Authentication failed due to invalid credentials.
Response Structure:
{
  "err": 1,
  "errMsg": "AccessDenied",
  "svcs": []
}
Common causes:
Incorrect email address
Incorrect password
Account does not exist
Account may be locked or disabled

Authentication Flow#

1.
Send Login Request: POST credentials to /v4/user/login
2.
Receive Token: On success, extract the authentication token from the response
3.
Store Token: Save the token securely (e.g., in an environment variable)
4.
Use Token: Include the token in subsequent API requests using the Authorization header

Usage Notes#

Token Storage: Store the returned authentication token in the token environment variable for reuse across requests
Token Expiration: Tokens may expire after a certain period. If you receive 401 errors on authenticated endpoints, re-authenticate to obtain a new token
Security: Never commit credentials or tokens to version control. Use Postman environment variables to manage sensitive data
Rate Limiting: Multiple failed login attempts may result in temporary account lockout

Variables Used#

This request uses the following environment variables:
baseUrl - Base API URL
email - User email address
password - User password

Request

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.kickbase.com/v4/user/login' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "pass": "password",
    "em": "username@toplevel.domain"
}'
Response Response Example
OK
{
    "u": {
        "email": "user@example.com",
        "notifications": 17407,
        "cover": "user/123abc.png",
        "flags": 32,
        "proExpiry": "1970-00-00T00:00:00Z",
        "vemail": "user@example.com",
        "perms": [
            3001,
            15
        ],
        "id": "1234",
        "name": "Player",
        "profile": "https://kickbase.b-cdn.net/user/123abc.png,
        "mfacp": [],
        "uim": "user/123abc.png"
    },
    "srvl": [
        {
            "id": "1234",
            "cpi": "1",
            "name": "League",
            "creator": "Creator",
            "creatorId": "1234",
            "creation": "1970-00-00T00:00:00Z",
            "ai": 0.0,
            "t": 123,
            "au": 123,
            "mu": 123,
            "ap": 123,
            "pub": false,
            "gm": 123,
            "mpl": true,
            "pl": 123,
            "ci": "https://kickbase.b-cdn.net/league/123abc.jpeg",
            "amd": true,
            "mpst": 123,
            "vr": 123,
            "adm": false,
            "lim": "league/123abc.jpeg",
            "uim": "user/123abc.jpeg"
        },
    ],
    "tkn": "string",
    "tknex": "1970-00-00T00:00:00Z",
    "chttkn": "string",
    "chtknex": "1970-00-00T00:00:00Z",
    "isnu": false,
    "isnr": false
}
Previous
POST /v4/user/forgotpassword
Next
POST /v4/user/password
Built with