VidNotes Auth API

The auth API from VidNotes — 8 operation(s) for auth.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

POST /api/v1/auth/apple Auth Apple #
POST /api/v1/auth/google Auth Google #
POST /api/v1/auth/dev-skip Auth Dev Skip #
GET /api/v1/auth/me Auth Me #
POST /api/v1/auth/logout Auth Logout #
GET /api/v1/auth/trial-status Get Trial Status #
POST /api/v1/auth/subscription/update Subscription Update #
POST /api/v1/auth/subscription/sync Subscription Sync #

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/vidnotes-app:vidnotes-app-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

vidnotes-app-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VidNotes Auth API
  version: 1.0.0
tags:
- name: Auth
paths:
  /api/v1/auth/apple:
    post:
      tags:
      - Auth
      summary: Auth Apple
      description: Verify Apple identity token, upsert user, link device.
      operationId: auth_apple_api_v1_auth_apple_post
      parameters:
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppleAuthRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/google:
    post:
      tags:
      - Auth
      summary: Auth Google
      description: Verify Google ID token, upsert user, link device.
      operationId: auth_google_api_v1_auth_google_post
      parameters:
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleAuthRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/dev-skip:
    post:
      tags:
      - Auth
      summary: Auth Dev Skip
      description: 'Create a real local dev auth session without OAuth.


        This is intentionally available only when ENABLE_DEV_AUTH_SKIP=true and the

        backend is being served from a local hostname.'
      operationId: auth_dev_skip_api_v1_auth_dev_skip_post
      parameters:
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DevSkipAuthRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/me:
    get:
      tags:
      - Auth
      summary: Auth Me
      description: 'Return the user this caller represents.


        Preferred path: an ``X-Auth-Token`` identifies the user directly. Fallback

        path (for already-shipped iOS/Android builds that do not yet persist the

        token): look up the user linked to ``X-Device-Id``. Token-authenticated

        callers keep their current token instead of rotating it on every `/me`

        request, which avoids turning this read endpoint into a write-heavy path.'
      operationId: auth_me_api_v1_auth_me_get
      parameters:
      - name: x-auth-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Auth-Token
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: x-premium
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Premium
      - name: x-platform
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-Platform
      - name: x-app-version
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Version
      - name: x-app-build
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Build
      - name: x-spend-credits
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Spend-Credits
      - name: x-spend-idempotency-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Spend-Idempotency-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/logout:
    post:
      tags:
      - Auth
      summary: Auth Logout
      description: 'Unlink this device from its user.


        Accepts both the token path (preferred, also revokes the auth session) and

        the shipped-client path (device-id only) so existing iOS/Android builds

        can still log out cleanly after this deploy.'
      operationId: auth_logout_api_v1_auth_logout_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: x-premium
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Premium
      - name: x-auth-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Auth-Token
      - name: x-platform
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-Platform
      - name: x-app-version
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Version
      - name: x-app-build
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Build
      - name: x-spend-credits
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Spend-Credits
      - name: x-spend-idempotency-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Spend-Idempotency-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/trial-status:
    get:
      tags:
      - Auth
      summary: Get Trial Status
      description: Get trial status for the authenticated user.
      operationId: get_trial_status_api_v1_auth_trial_status_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: x-premium
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Premium
      - name: x-auth-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Auth-Token
      - name: x-platform
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-Platform
      - name: x-app-version
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Version
      - name: x-app-build
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Build
      - name: x-spend-credits
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Spend-Credits
      - name: x-spend-idempotency-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Spend-Idempotency-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/subscription/update:
    post:
      tags:
      - Auth
      summary: Subscription Update
      description: 'RevenueCat server-to-server webhook for subscription changes.


        Updates the user''s premium status based on RevenueCat events.'
      operationId: subscription_update_api_v1_auth_subscription_update_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/subscription/sync:
    post:
      tags:
      - Auth
      summary: Subscription Sync
      description: 'Pull live entitlement state from RevenueCat for the authenticated user.


        Web client should call this after a successful purchase, on every page

        load, and from a "Restore purchases" button. Returns the freshly-stored

        state from the users table after the pull.'
      operationId: subscription_sync_api_v1_auth_subscription_sync_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      - name: x-device-id
        in: header
        required: true
        schema:
          type: string
          title: X-Device-Id
      - name: x-premium
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Premium
      - name: x-auth-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Auth-Token
      - name: x-platform
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-Platform
      - name: x-app-version
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Version
      - name: x-app-build
        in: header
        required: false
        schema:
          type: string
          default: unknown
          title: X-App-Build
      - name: x-spend-credits
        in: header
        required: false
        schema:
          type: string
          default: 'false'
          title: X-Spend-Credits
      - name: x-spend-idempotency-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Spend-Idempotency-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AppleAuthRequest:
      properties:
        identity_token:
          type: string
          title: Identity Token
        platform:
          anyOf:
          - type: string
          - type: 'null'
          title: Platform
      type: object
      required:
      - identity_token
      title: AppleAuthRequest
    DevSkipAuthRequest:
      properties:
        platform:
          anyOf:
          - type: string
          - type: 'null'
          title: Platform
          default: web
      type: object
      title: DevSkipAuthRequest
    GoogleAuthRequest:
      properties:
        id_token:
          type: string
          title: Id Token
        platform:
          anyOf:
          - type: string
          - type: 'null'
          title: Platform
      type: object
      required:
      - id_token
      title: GoogleAuthRequest
    SubscriptionUpdateRequest:
      properties:
        app_user_id:
          type: string
          title: App User Id
        event_type:
          type: string
          title: Event Type
        event_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Event Id
        original_app_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Original App User Id
        aliases:
          items:
            type: string
          type: array
          title: Aliases
        entitlement_ids:
          items:
            type: string
          type: array
          title: Entitlement Ids
        platform:
          anyOf:
          - type: string
          - type: 'null'
          title: Platform
        product_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Product Id
        transaction_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Transaction Id
        original_transaction_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Original Transaction Id
        expiration_at_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Expiration At Ms
        grace_period_expiration_at_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Grace Period Expiration At Ms
        cancel_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Cancel Reason
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        period_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Period Type
        is_trial_conversion:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Trial Conversion
        store:
          anyOf:
          - type: string
          - type: 'null'
          title: Store
        environment:
          anyOf:
          - type: string
          - type: 'null'
          title: Environment
        event_timestamp_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Event Timestamp Ms
        purchased_at_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Purchased At Ms
        price_in_purchased_currency:
          anyOf:
          - type: number
          - type: 'null'
          title: Price In Purchased Currency
        currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Currency
        price:
          anyOf:
          - type: number
          - type: 'null'
          title: Price
        subscriber_attributes:
          anyOf:
          - type: object
          - type: 'null'
          title: Subscriber Attributes
      type: object
      required:
      - app_user_id
      - event_type
      title: SubscriptionUpdateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuthResponse:
      properties:
        user_id:
          type: string
          title: User Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Name
        auth_provider:
          type: string
          title: Auth Provider
        is_premium:
          type: boolean
          title: Is Premium
        subscription_tier:
          type: string
          title: Subscription Tier
          default: free
        entitlements:
          items:
            type: string
          type: array
          title: Entitlements
          default: []
        devices:
          items:
            type: object
          type: array
          title: Devices
        access_token:
          type: string
          title: Access Token
        access_token_expires_at:
          type: integer
          title: Access Token Expires At
      type: object
      required:
      - user_id
      - auth_provider
      - is_premium
      - devices
      - access_token
      - access_token_expires_at
      title: AuthResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError