UserVane Secret SDK API

Secret-key routes for customer servers only

GitHub OpenAPI

Operations 3

POST /v1/sdk/tokens Mint session-bound show-tokens (server-only) #
GET /v1/sdk/pending-scores Poll linked scores awaiting Langfuse push #
POST /v1/sdk/pending-scores/ack Ack delivered or failed pending scores #

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/uservane-com:uservane-com-secret-sdk-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

uservane-com-secret-sdk-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UserVane Edge Secret SDK API
  version: '0.1'
  description: 'Wire contract for the UserVane edge API (`api.uservane.com`).


    Auth is load-bearing:

    - **Publishable key** (`uv_pk_...`): browser / client SDK paths. Pass as

    body `key`, query `key`, or (where noted) header. Never sufficient for

    token mint, pending-scores, or privacy.

    - **Secret key** (`uv_sk_...`): server-only. `Authorization: Bearer `

    or `X-UserVane-Key: `. Used for session-bound token mint, Langfuse

    pending-scores queue, and privacy export/erase.


    Spec derived from `apps/uservane-api/src/schemas.ts` and route handlers in

    `apps/uservane-api/src/app.ts`. Do not invent paths.'
  contact:
    name: UserVane
    url: https://uservane.com
servers:
- url: https://api.uservane.com
  description: Production
tags:
- name: Secret SDK
  description: Secret-key routes for customer servers only
paths:
  /v1/sdk/tokens:
    post:
      tags:
      - Secret SDK
      operationId: mintBoundTokens
      summary: Mint session-bound show-tokens (server-only)
      description: 'Mints v2 show-tokens bound to the provided `sessionId` (and optional

        `observationId` / `taskType`). Auth is secret key only; a publishable

        key Bearer fails. Same gating as bootstrap (suppression, quiet period,

        monthly cap, per-survey max). Empty `tokens` means gated, not an error.

        **Never call from the browser.**'
      security:
      - SecretKeyBearer: []
      - SecretKeyHeader: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SdkTokensBody'
      responses:
        '200':
          description: Issued tokens (may be empty when gated)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SdkTokensResponse'
        '400':
          description: Invalid JSON body
        '401':
          description: Secret key required or invalid
        '429':
          description: Rate limit exceeded
  /v1/sdk/pending-scores:
    get:
      tags:
      - Secret SDK
      operationId: listPendingScores
      summary: Poll linked scores awaiting Langfuse push
      description: 'Tenant-scoped queue of linked responses with `score_state=pending`

        (and optionally `failed`). Serves verbatim PII for this project only.

        Secret key only. Used by `@uservane/langfuse-push`.'
      security:
      - SecretKeyBearer: []
      - SecretKeyHeader: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
        description: Page size (server-capped)
      - name: includeFailed
        in: query
        schema:
          type: string
          enum:
          - 'true'
        description: When `true`, also return previously failed rows
      - name: cursor
        in: query
        schema:
          type: string
        description: Opaque keyset cursor from a prior `nextCursor`
      responses:
        '200':
          description: Pending score page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingScoresResponse'
        '400':
          description: Invalid cursor
        '401':
          description: Secret key required or invalid
        '429':
          description: Rate limit exceeded
  /v1/sdk/pending-scores/ack:
    post:
      tags:
      - Secret SDK
      operationId: ackPendingScores
      summary: Ack delivered or failed pending scores
      description: 'Adapter reports per-id `delivered` or `failed`. Updates only this

        project''s rows; foreign ids are a silent no-op. Secret key only.'
      security:
      - SecretKeyBearer: []
      - SecretKeyHeader: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PendingScoresAckBody'
      responses:
        '200':
          description: Ack applied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingScoresAckResponse'
        '400':
          description: Invalid ack body
        '401':
          description: Secret key required or invalid
        '429':
          description: Rate limit exceeded
components:
  schemas:
    SdkTokensBody:
      type: object
      required:
      - respondentId
      - sessionId
      properties:
        respondentId:
          type: string
          minLength: 1
          maxLength: 256
        sessionId:
          type: string
          minLength: 1
          maxLength: 256
          description: Authoritative server session id (Langfuse / AI SDK)
        observationId:
          type: string
          minLength: 1
          maxLength: 256
        taskType:
          type: string
          minLength: 1
          maxLength: 128
        surveyId:
          type: string
          minLength: 1
          description: When set, only mint for this active survey
    PendingScoresAckResponse:
      type: object
      required:
      - ok
      - updated
      properties:
        ok:
          type: boolean
          enum:
          - true
        updated:
          type: integer
    PendingScore:
      type: object
      required:
      - id
      - surveyId
      - at
      properties:
        id:
          type: string
        sessionId:
          type:
          - string
          - 'null'
        observationId:
          type:
          - string
          - 'null'
        rating:
          type:
          - number
          - 'null'
        text:
          type:
          - string
          - 'null'
        taskType:
          type:
          - string
          - 'null'
        surveyId:
          type: string
        at:
          type: string
          format: date-time
    PendingScoresResponse:
      type: object
      required:
      - scores
      properties:
        scores:
          type: array
          items:
            $ref: '#/components/schemas/PendingScore'
        nextCursor:
          type: string
    PendingScoresAckBody:
      type: object
      required:
      - results
      properties:
        results:
          type: array
          minItems: 1
          maxItems: 200
          items:
            type: object
            required:
            - id
            - state
            properties:
              id:
                type: string
                minLength: 1
                maxLength: 128
              state:
                type: string
                enum:
                - delivered
                - failed
    SdkTokensResponse:
      type: object
      required:
      - tokens
      - suppression
      - issuedAt
      properties:
        tokens:
          type: object
          additionalProperties:
            type: string
          description: surveyId -> v2 show-token bound to sessionId
        suppression:
          type: array
          items:
            type: string
        issuedAt:
          type: string
          format: date-time
  securitySchemes:
    SecretKeyBearer:
      type: http
      scheme: bearer
      description: Project secret key (`uv_sk_...`). Server-only.
    SecretKeyHeader:
      type: apiKey
      in: header
      name: X-UserVane-Key
      description: Alternate secret key header. Server-only.