LoyaltyVIP Player API

Full player & host action surface via POST /v1/player.

GitHub OpenAPI

Operations 1

POST /v1/player Full player & host action API #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/loyaltyvip-com:loyaltyvip-com-player-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

loyaltyvip-com-player-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LoyaltyVIP Player API
  version: 1.1.0
  summary: A player's casino loyalty data and features, plus the full public casino directory.
  description: 'Programmatic access for developers and AI agents.


    - **Public** (no key): the casino directory — casinos, casino detail with rewards program + tier ladder, and rewards programs.

    - **Account** (API key): the key owner''s tiers, trips, offers, and profile.

    - **Full action API**: `POST /v1/player` exposes the complete ~70-action player & host surface (trips, sessions, bankroll, offers, tiers, visits, vouchers, machines, W-2G/tax, optimizers, sharing, consent, social, notifications, host dashboard/leads). Plus standalone feature endpoints (comps, tier-match, predictions, responsible gaming, host discovery, tax reports).


    Authenticate with a personal API key as a Bearer token. Keys carry umbrella scopes: `read`, `write`, `tax`, `host`. Admin actions and API-key management are never available via API key. Create/manage keys at https://loyaltyvip.com/dashboard/developer.


    ## Conventions


    - **Errors** are JSON `{ "error": { code, message, status, docs } }`. Canonical codes: `invalid_token` (401), `insufficient_scope` (403), `not_found` (404), `rate_limited` (429), `internal_error` (500). A 401 also returns a `WWW-Authenticate` header with a `resource_metadata` pointer.

    - **Rate limits (planned)**: rate limiting is not yet enforced; when it ships, responses will carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` and 429s will include `Retry-After`. Always retry 5xx with exponential backoff (~1s, 2s, 4s; max 3 tries).

    - **Idempotency (planned)**: an `Idempotency-Key` header (UUID) on write requests is accepted for forward compatibility but is **not yet enforced** — treat writes as at-least-once for now.

    - **Pagination**: list endpoints use `limit` + `offset` and return `count`. Cursor pagination is planned.

    - **Versioning & deprecation**: the API is versioned in the path (`/v1`). Breaking changes ship under a new version; deprecations are announced with `Deprecation` and `Sunset` response headers and on https://loyaltyvip.com/developers.

    - **Streaming**: the NLWeb endpoint (`POST https://loyaltyvip.com/ask`) and the MCP server (`https://loyaltyvip.com/mcp`) support Server-Sent Events for incremental results.'
  contact:
    name: LoyaltyVIP Developers
    email: support@loyaltyvip.com
    url: https://loyaltyvip.com/developers
  termsOfService: https://loyaltyvip.com/terms
  license:
    name: Proprietary
    url: https://loyaltyvip.com/terms
servers:
- url: https://nbhagdwegk.execute-api.us-east-1.amazonaws.com
  description: Production API base
security:
- ApiKeyAuth: []
tags:
- name: Player API
  description: Full player & host action surface via POST /v1/player.
paths:
  /v1/player:
    post:
      tags:
      - Player API
      operationId: playerAction
      summary: Full player & host action API
      description: 'Invoke any of ~70 player/host actions by name. Reads need scope `read`, writes `write`, tax actions `tax`, host actions `host`. Examples: list_trips, get_trip, tier_status, bankroll_status, list_w2g, tax_year_summary, freeplay_optimizer, card_recommendation, tier_retention_plan, list_share_links, list_notifications, add_trip, upsert_tier, bankroll_add, create_share_link, manual_w2g, host_dashboard. Admin + key-management actions are rejected (403). For write actions, an `Idempotency-Key` header is accepted (idempotent replay is planned, not yet enforced).'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - action
              properties:
                action:
                  type: string
                  example: tax_year_summary
                  description: Player/host action name. read/write need scope read/write; tax actions need tax; host actions need host. (The lead-marketplace actions are omitted pending legal review.)
                  enum:
                  - list_trips
                  - trips_trend
                  - get_trip
                  - list_offers
                  - list_casinos
                  - list_all_casinos
                  - tier_status
                  - list_visits
                  - list_vouchers
                  - bankroll_status
                  - bankroll_trend
                  - plan_trip
                  - trip_planner_estimate
                  - freeplay_optimizer
                  - card_recommendation
                  - tier_retention_plan
                  - list_rewards_programs
                  - list_credit_packages
                  - list_host_reviews
                  - list_share_links
                  - list_consent
                  - slot_leaderboard
                  - list_tier_listings
                  - list_group_trips
                  - list_messages
                  - list_notifications
                  - get_notification_preferences
                  - get_leaderboard_opt_in
                  - get_marketplace_optin
                  - list_support_tickets
                  - list_machines
                  - onboarding_status
                  - get_host_application
                  - add_trip
                  - add_session
                  - start_visit
                  - end_visit
                  - redeem_voucher
                  - bankroll_add
                  - mark_offer_status
                  - add_offer
                  - delete_offer
                  - upsert_tier
                  - delete_tier
                  - create_share_link
                  - revoke_share_link
                  - set_consent_channel
                  - create_tier_listing
                  - claim_tier_listing
                  - create_group_trip
                  - invite_to_group_trip
                  - mark_message_read
                  - mark_notification_read
                  - mark_lead_contacted
                  - set_notification_preferences
                  - set_leaderboard_opt_in
                  - create_support_ticket
                  - upsert_machine
                  - log_machine_play
                  - apply_host
                  - submit_host_review
                  - list_w2g
                  - manual_w2g
                  - create_w2g_scan_session
                  - tax_year_summary
                  - tax_year_export
                  - list_hand_pays
                  - add_hand_pay
                  - list_losses
                  - add_loss
                  - host_dashboard
                  - host_my_leads
                  - host_credits_log
                  - host_roi
              additionalProperties: true
      responses:
        '200':
          description: 'Action result (shape depends on the action; always { data: { success, ... } }).'
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - status
          properties:
            code:
              type: string
              description: 'Stable machine code: invalid_token | insufficient_scope | not_found | rate_limited | internal_error.'
            message:
              type: string
            status:
              type: integer
            docs:
              type: string
  responses:
    BadRequest:
      description: Malformed request (e.g. missing or unknown action).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Rate limit exceeded. Honor Retry-After.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Too many requests. Retry after the indicated delay.
              status: 429
              docs: https://loyaltyvip.com/developers
    Forbidden:
      description: Key missing the required scope (read/write/tax/host), or action not allowed via API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: insufficient_scope
              message: This key lacks the required scope.
              status: 403
              docs: https://loyaltyvip.com/developers
    ServerError:
      description: Unexpected server error. Retry with exponential backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Something went wrong on our end.
              status: 500
              docs: https://loyaltyvip.com/developers
    Unauthorized:
      description: Missing or invalid API key.
      headers:
        WWW-Authenticate:
          schema:
            type: string
          description: Bearer challenge with a resource_metadata pointer.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_token
              message: Missing or invalid API key.
              status: 401
              docs: https://loyaltyvip.com/developers
  headers:
    RateLimitLimit:
      description: Request quota for the current window.
      schema:
        type: integer
    RateLimitReset:
      description: Unix epoch seconds when the window resets.
      schema:
        type: integer
    RateLimitRemaining:
      description: Requests remaining in the current window.
      schema:
        type: integer
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Optional UUID on write requests. Accepted for forward compatibility; idempotent replay is planned but not yet enforced.
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: lvip_live_*
      description: 'Personal API key as a Bearer token. Scopes: read, write, tax, host. Create at https://loyaltyvip.com/dashboard/developer.'
externalDocs:
  description: Full agent & developer reference
  url: https://loyaltyvip.com/llms-full.txt