Authentication

Sign in with Boathouse Connect credentials to obtain a bearer token, inspect the identity, switch clubs and sign out.

Method Endpoint Purpose
POST /v1/auth/login email, password[, whitelabel_id] → token + identity
GET /v1/auth/me Identity, affiliations, planner regattas of the active club
POST /v1/auth/switch-whitelabel whitelabel_id → identity with the new active club
POST /v1/auth/logout Revokes the token (and the session)

Sign in

The credentials are checked by Boathouse Connect; RiggerPlus never stores the password. The response token is also set on the browser session so the same call works for the web app. If the account has several clubs, the first affiliation becomes the active club unless you pass whitelabel_id.

Request

POST /v1/auth/login
Content-Type: application/json

{
    "email": "coach@example.com",
    "password": "••••••••"
}

Response 200

{
    "success": true,
    "token": "rp_live_••••••••",
    "user": {
        "custid": 1001,
        "email": "coach@example.com",
        "fname": "Casey",
        "lname": "Coach",
        "profile_photo_url": null
    },
    "whitelabel_id": 10,
    "whitelabel": {
        "whitelabel_id": 10,
        "whitelabel_name": "Riverside Rowing Club",
        "whitelabel_abbreviation": "RRC",
        "timezone": "America/New_York",
        "skin_hex_code": "#1e4db7",
        "logo_url": "https://cdn.example.com/logos/rrc.png"
    },
    "affiliations": [
        {
            "whitelabel_id": 10,
            "whitelabel_name": "Riverside Rowing Club",
            "whitelabel_abbreviation": "RRC",
            "timezone": "America/New_York",
            "skin_hex_code": "#1e4db7",
            "logo_url": "https://cdn.example.com/logos/rrc.png"
        },
        {
            "whitelabel_id": 20,
            "whitelabel_name": "Lakeview Crew",
            "whitelabel_abbreviation": "LVC",
            "timezone": "America/Chicago",
            "skin_hex_code": "#1e4db7",
            "logo_url": null
        }
    ],
    "planner_regattas": [
        {
            "bc_regatta_id": 501,
            "rc_regatta_id": 9501,
            "name": "Spring Sprints",
            "start_time": 1810454400,
            "time_zone": "America/New_York",
            "race_type": "Sprint",
            "venue_id": 71
        },
        {
            "bc_regatta_id": 502,
            "rc_regatta_id": 9502,
            "name": "Head of the River",
            "start_time": 1813046400,
            "time_zone": "America/New_York",
            "race_type": "Head",
            "venue_id": 72
        }
    ],
    "last_verified_at": 1800000000
}

Errors: RP-101 wrong email/password, RP-102 Boathouse Connect unreachable (503), RP-104 the account has no club affiliation.

Who am I

me is the call to make after login (or on app start with a stored token): it tells you which clubs the user may see, where they are a planner (and hence may create trailers, vehicles and trips), and the regattas they plan.

Request

GET /v1/auth/me
Authorization: Bearer rp_live_••••••••

Response 200

{
    "success": true,
    "user": {
        "custid": 1001,
        "email": "coach@example.com",
        "fname": "Casey",
        "lname": "Coach",
        "profile_photo_url": null
    },
    "whitelabel_id": 10,
    "whitelabel": {
        "whitelabel_id": 10,
        "whitelabel_name": "Riverside Rowing Club",
        "whitelabel_abbreviation": "RRC",
        "timezone": "America/New_York",
        "skin_hex_code": "#1e4db7",
        "logo_url": "https://cdn.example.com/logos/rrc.png"
    },
    "affiliations": [
        {
            "whitelabel_id": 10,
            "whitelabel_name": "Riverside Rowing Club",
            "whitelabel_abbreviation": "RRC",
            "timezone": "America/New_York",
            "skin_hex_code": "#1e4db7",
            "logo_url": "https://cdn.example.com/logos/rrc.png"
        },
        {
            "whitelabel_id": 20,
            "whitelabel_name": "Lakeview Crew",
            "whitelabel_abbreviation": "LVC",
            "timezone": "America/Chicago",
            "skin_hex_code": "#1e4db7",
            "logo_url": null
        }
    ],
    "planner_regattas": [
        {
            "bc_regatta_id": 501,
            "rc_regatta_id": 9501,
            "name": "Spring Sprints",
            "start_time": 1810454400,
            "time_zone": "America/New_York",
            "race_type": "Sprint",
            "venue_id": 71
        },
        {
            "bc_regatta_id": 502,
            "rc_regatta_id": 9502,
            "name": "Head of the River",
            "start_time": 1813046400,
            "time_zone": "America/New_York",
            "race_type": "Head",
            "venue_id": 72
        }
    ],
    "last_verified_at": 1800000000
}

Switching clubs

POST /v1/auth/switch-whitelabel with whitelabel_id. The active club scopes every list and create call that omits whitelabel_id; RP-105 if the user is not affiliated with it.

Signing out

POST /v1/auth/logout invalidates the token immediately. Tokens that are not used for 30 minutes are revalidated against Boathouse Connect on next use (RP-103 if BC no longer accepts them).