Skip to main content

Login

POST 

/users/v1/login

This endpoint is used to authenticate a user and retrieve an access token for use with other RallyHere APIs.

This endpoint supports user-based authentication for a variety of platforms.

Request

Header Parameters

    user-agent User-Agent
    x-rh-client-addr X-Rh-Client-Addr

    Possible values: <= 32 characters

    IP Address hint

Body

required

    grant_type GrantType (string)required

    Possible values: [anon, google, apple, refresh, epic, xboxlive, ps4_v1, ps4_v3, ps5_v3, nintendo, nintendo_switch, steam, basic, rallyhere, client_credentials]

    Supported grant types for V1 Login Flow

    portal_access_token Portal Access Token (string)

    Token or secret used to authenticate the provided grant type

    portal_display_name Portal Display Name (string)

    Some grant types support client-provided names

    portal_parent_access_token Portal Parent Access Token (string)

    Some grant types have 2 tier authentication and require a second token/secret

    portal_parent_display_name Portal Parent Display Name (string)

    Some grant types have 2 tier authentication and support a second display name

    include_refresh Include Refresh (boolean)

    Indicates if the client wants a refresh token returned

    accept_eula Accept Eula (boolean)

    If true, the user has accepted the EULA

    accept_tos Accept Tos (boolean)

    If true, the user has accepted the Terms of Service

    accept_privacy_policy Accept Privacy Policy (boolean)

    If true, the user has accepted the Privacy Policy

Responses

Successful Response

Schema

    portal_parent_auth_result

    object

    Portal user info

    platform Platform (string)required

    Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]

    Platform for the user

    portal_id Portal (integer)requireddeprecated

    Possible values: [2, 4, 5, 9, 10, 11, 13, 14, 16, 22, 24, 26, 27, 28, 33]

    Portal ID. DEPRECATED use platform instead

    portal_user_id Portal User Id (string)required

    Platform User ID

    display_name Display Name (string)required

    Display name

    device_type DeviceType (string)

    Possible values: [pc, xbox_series, xbox_one, web]

    Platform-verified device type of the login

    permissions string[]

    Default value: ``

    List of permissions for this user.

    restrictions

    object[]

    List of restrictions on this player

  • Array [

  • type RestrictionType (string)required

    Possible values: [account_ban, account_lockout, account_pending_deletion, account_deny_auth]

    Restrictions that can be applied to a player. Resitrictions are applied to a player by an admin and often types indicates that the player is banned.

    reason RestrictionReasonCode (string)

    Possible values: [cheating_autodetected, speedhack_autodetect, other, cheating_observed, cheating_reported_by_player, threats, language, griefing, fraud, revoke_failed, unknown, guardian, issuer_process, account_migration, user_request, maintenance, pending_deletion]

    An enumeration.

    expiration date-time

    Date the restriction expires. Null means the restriction is permanent

  • ]

  • active_player_id Active Player Id (integer)deprecated

    Active player ID. DEPRECATED use active_player_uuid instead

    active_player_uuid uuid

    Active player UUID

    platform Platform (string)

    Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]

    An enumeration.

    portal_id Portal Id (integer)deprecated

    Portal ID DEPRECATED use platform instead

    portal_user_id Portal User Id (string)

    Portal user ID

    display_name Display Name (string)

    Display name

    role_id Role Id (integer)

    Role ID

    person_id uuid

    Person ID

    access_token Access Token (string)

    Access token that can be used for future requests

    refresh_token Refresh Token (string)

    Refresh token that can be used to refresh authentication for a new access token

    publisher_uuid uuidrequireddeprecated

    Publisher UUID

    tenant_uuid uuidrequireddeprecated

    Tenant UUID

    config_elector_uuid uuidrequireddeprecated

    Config elector UUID

    client_uuid uuidrequireddeprecated

    Client UUID

    client_id Client Id (string)required

    Client ID

    token_type Token Type (string)required

    Token type

    expires_in Expires In (integer)

    Result access token expiration time in seconds

Loading...