LoyaltyVIP Features API

Comps, tier-match, predictions, responsible gaming, host discovery, tax.

GitHub OpenAPI

Operations 7

POST /v1/comp/calculate Comp calculator #
POST /v1/comp/predict Comp / offer prediction #
POST /v1/tier-match Tier match suggestions + letters #
POST /v1/rg Responsible gaming profile + limits #
POST /v1/hosts/discover Discover / connect with hosts #
POST /v1/match-hosts Best-host matches for the caller #
POST /v1/tax-report IRS gambling tax docs #

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-features-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-features-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LoyaltyVIP Features 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: Features
  description: Comps, tier-match, predictions, responsible gaming, host discovery, tax.
paths:
  /v1/comp/calculate:
    post:
      tags:
      - Features
      operationId: compCalculate
      summary: Comp calculator
      description: 'actions: calculate | analyze_history | get_comp_ratios. Scope: read.'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        $ref: '#/components/requestBodies/Action'
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/comp/predict:
    post:
      tags:
      - Features
      operationId: compPredict
      summary: Comp / offer prediction
      description: 'actions: predict | predict_all_casinos. Scope: read.'
      requestBody:
        $ref: '#/components/requestBodies/Action'
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/tier-match:
    post:
      tags:
      - Features
      operationId: tierMatch
      summary: Tier match suggestions + letters
      description: 'actions: get_suggestions | generate_letter | create_request | get_requests | update_request | get_templates. Scope: read (writes via write).'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        $ref: '#/components/requestBodies/Action'
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/rg:
    post:
      tags:
      - Features
      operationId: responsibleGaming
      summary: Responsible gaming profile + limits
      description: 'actions: get_risk_profile | get_resources | set_budget | set_session_limit. Scope: read.'
      requestBody:
        $ref: '#/components/requestBodies/Action'
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/hosts/discover:
    post:
      tags:
      - Features
      operationId: discoverHosts
      summary: Discover / connect with hosts
      description: 'actions: search_hosts | get_host_profile | get_featured_hosts | get_my_connections | request_connection. Scope: read.'
      requestBody:
        $ref: '#/components/requestBodies/Action'
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/match-hosts:
    post:
      tags:
      - Features
      operationId: matchHosts
      summary: Best-host matches for the caller
      description: 'Body: { player_id (must be your own user id), limit }. Scope: read.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                player_id:
                  type: string
                limit:
                  type: integer
                  default: 5
      responses:
        '200':
          description: Matches
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/tax-report:
    post:
      tags:
      - Features
      operationId: taxReport
      summary: IRS gambling tax docs
      description: 'actions: generate_summary | generate_session_log | generate_w2g_report. Optional tax_year. Scope: tax.'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - action
              properties:
                action:
                  type: string
                tax_year:
                  type: integer
      responses:
        '200':
          description: Report
          content:
            application/json:
              schema:
                type: object
        '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:
    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.
  requestBodies:
    Action:
      required: true
      content:
        application/json:
          schema:
            type: object
            required:
            - action
            properties:
              action:
                type: string
            additionalProperties: true
  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