Live Earnings Auth API

Session tokens for browser stream access.

GitHub OpenAPI

Operations 1

POST /api/live/{slug}/session-token Exchange a subscriber key for a short-lived stream token #

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/live-earnings-com:live-earnings-com-auth-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

live-earnings-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Live Earnings Auth API
  version: 1.1.0
  description: 'REST endpoints for live, attributed earnings-call transcripts.


    REST endpoints are served from `https://live-earnings.com`. The

    streaming endpoints (SSE) are served from

    `https://stream.live-earnings.com` — see `asyncapi.yaml`. Calling a

    stream on the REST host returns 503 `stateful_route_wrong_origin`.


    Auth uses a long-lived subscriber key (`ek_…`) scoped to exactly one

    `call_slug`; cross-call use returns 401.


    - **Server-side:** send `Authorization: Bearer ` on any endpoint,

    streams included.

    - **Browsers** (`EventSource` cannot set headers): exchange the key for

    a short-lived session token with

    `POST /api/live/{slug}/session-token` (`Authorization: Bearer `),

    then open streams with `?t=`. The token lasts 2 hours

    and covers one call. An invalid or expired `t` returns 401 and never

    falls back to another credential.

    - `?token=` in the query string still works but is DEPRECATED:

    keys in URLs leak into access logs, browser history and `Referer`.'
  contact:
    name: Live Earnings
    url: https://live-earnings.com
servers:
- url: https://live-earnings.com
  description: REST endpoints. Streams are in asyncapi.yaml, on https://stream.live-earnings.com.
security:
- bearerAuth: []
- queryToken: []
tags:
- name: Auth
  description: Session tokens for browser stream access.
paths:
  /api/live/{slug}/session-token:
    post:
      tags:
      - Auth
      operationId: createSessionToken
      summary: Exchange a subscriber key for a short-lived stream token
      description: 'Exchanges the long-lived subscriber key (sent as

        `Authorization: Bearer `) for an opaque session token, so a

        browser can open streams with `?t=` instead of putting

        the key in the URL.


        The token lasts 2 hours (`expiresIn`, seconds) and covers only this

        call. Stream requests with an invalid or expired `t` get 401 and never

        fall back to another credential — mint a new token and reconnect.


        A storage failure returns 500; there is no fallback to the raw key.'
      security:
      - bearerAuth: []
      parameters:
      - $ref: '#/components/parameters/Slug'
      responses:
        '200':
          description: Session token minted
          content:
            application/json:
              schema:
                type: object
                required:
                - sessionToken
                - expiresIn
                properties:
                  sessionToken:
                    type: string
                  expiresIn:
                    type: integer
                    description: Lifetime in seconds.
                    example: 7200
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          description: The token could not be stored. Fail visibly; do not fall back to the key.
components:
  parameters:
    Slug:
      name: slug
      in: path
      required: true
      schema:
        type: string
        pattern: ^[a-z0-9-]+$
      description: Call slug — e.g., `nvda-q4-fy26`.
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - unauthorized
          - forbidden
          - invalid_range
          - not_found
          - call_not_found
          - internal_error
  responses:
    Unauthorized:
      description: Missing, invalid, or wrong-scope token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ek_*
    ingestToken:
      type: http
      scheme: bearer
      description: The operator token (LIVE_EARNINGS_OPERATOR_TOKEN — what the operator console sends) or the server-side ingest token (LIVE_EARNINGS_INGEST_TOKEN — the capture rig). Never a subscriber key.
    queryToken:
      type: apiKey
      in: query
      name: token
      description: DEPRECATED — the subscriber key in the query string (keys in URLs leak into logs). Still accepted. Browsers should mint a session token via POST /api/live/{slug}/session-token and use `?t=` on streams instead.