Teardrop Auth API

The Auth API from Teardrop — 10 operation(s) for auth.

GitHub OpenAPI

Operations 10

POST /token Token #
GET /auth/me Auth Me #
GET /auth/siwe/nonce Siwe Nonce #
POST /register Register #
GET /auth/verify-email Verify Email #
POST /auth/resend-verification Resend Verification #
POST /auth/refresh Refresh Token Endpoint #
POST /auth/logout Logout #
POST /org/invite Create Invite #
POST /register/invite Register Via Invite #

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/teardrop-dev:teardrop-dev-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

teardrop-dev-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Teardrop Auth API
  description: The open API and billing gateway for autonomous economic agents
  version: 2.13.0
tags:
- name: Auth
paths:
  /token:
    post:
      tags:
      - Auth
      summary: Token
      description: 'Tri-mode token endpoint.


        Accepts one of:

        1. email+secret (user credentials)

        2. client_id+client_secret (machine-to-machine)

        3. siwe_message+siwe_signature (Sign-In with Ethereum)

        4. grant_type=x402 + payment header (payment-first org bootstrap)

        Returns a signed RS256 JWT, and for x402 bootstrap also a one-time client credential.'
      operationId: token_token_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/TokenResponse'
                - $ref: '#/components/schemas/X402BootstrapResponse'
                title: Response Token Token Post
        '402':
          description: Payment required or payment settlement failed.
        '409':
          description: The payer wallet is already registered.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/me:
    get:
      tags:
      - Auth
      summary: Auth Me
      description: 'Return identity claims for the currently authenticated user.


        Decodes the Bearer JWT and echoes back the stable claims, augmented

        with org_name fetched from the database so the frontend can display

        the organisation name without a separate endpoint.'
      operationId: auth_me_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthMeResponse'
      security:
      - HTTPBearer: []
  /auth/siwe/nonce:
    get:
      tags:
      - Auth
      summary: Siwe Nonce
      description: Generate a single-use nonce for SIWE authentication.
      operationId: siwe_nonce_auth_siwe_nonce_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiweNonceResponse'
  /register:
    post:
      tags:
      - Auth
      summary: Register
      description: 'Self-serve org and user registration. Returns a JWT immediately.


        A verification email is sent when RESEND_API_KEY is configured.

        Set REQUIRE_EMAIL_VERIFICATION=true to gate /token login until verified.'
      operationId: register_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/verify-email:
    get:
      tags:
      - Auth
      summary: Verify Email
      description: 'Verify an email address via a one-time token.


        Token consumption, verification, and onboarding-credit eligibility are

        recorded atomically in a single transaction (see

        ``verify_user_and_enqueue_onboarding_credit``), so a durable outbox row

        exists even if the immediate grant attempt below fails. A background

        worker (``process_onboarding_credit_outbox``) retries any outstanding

        outbox rows until the grant succeeds, so a transient billing failure here

        can never permanently strand an eligible organisation''s credit.'
      operationId: verify_email_auth_verify_email_get
      parameters:
      - name: token
        in: query
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyEmailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/resend-verification:
    post:
      tags:
      - Auth
      summary: Resend Verification
      description: Re-send a verification email. Always returns 200 to prevent email oracle attacks.
      operationId: resend_verification_auth_resend_verification_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResendVerificationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResendVerificationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/refresh:
    post:
      tags:
      - Auth
      summary: Refresh Token Endpoint
      description: 'Exchange a refresh token for a new access token and rotated refresh token.


        Idempotent: if the client retried after a network timeout (the old token was

        already rotated but the 200 was never delivered), the successor token is

        replayed within refresh_token_idempotency_window_seconds.'
      operationId: refresh_token_endpoint_auth_refresh_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/logout:
    post:
      tags:
      - Auth
      summary: Logout
      description: Revoke a refresh token (logout).
      operationId: logout_auth_logout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogoutRequest'
        required: true
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /org/invite:
    post:
      tags:
      - Auth
      summary: Create Invite
      description: Create an org invite link. Any authenticated org member may invite.
      operationId: create_invite_org_invite_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInviteRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInviteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /register/invite:
    post:
      tags:
      - Auth
      summary: Register Via Invite
      description: Accept an org invite token and create a new user account.
      operationId: register_via_invite_register_invite_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptInviteRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateInviteResponse:
      properties:
        token:
          type: string
          title: Token
        invite_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Invite Url
          description: Null when APP_BASE_URL is not configured.
        expires_at:
          type: string
          title: Expires At
          description: ISO 8601 timestamp.
      type: object
      required:
      - token
      - expires_at
      title: CreateInviteResponse
    TokenRequest:
      properties:
        client_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Id
        client_secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Secret
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Secret
        siwe_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Siwe Message
        siwe_signature:
          anyOf:
          - type: string
          - type: 'null'
          title: Siwe Signature
        grant_type:
          anyOf:
          - type: string
            const: x402
          - type: 'null'
          title: Grant Type
      type: object
      title: TokenRequest
    VerifyEmailResponse:
      properties:
        verified:
          type: boolean
          const: true
          title: Verified
      type: object
      required:
      - verified
      title: VerifyEmailResponse
    TokenResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          const: bearer
          title: Token Type
        expires_in:
          type: integer
          title: Expires In
          description: Access token lifetime in seconds.
        refresh_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
          description: Present for email/SIWE flows; omitted for client_credentials.
      type: object
      required:
      - access_token
      - token_type
      - expires_in
      title: TokenResponse
    ResendVerificationResponse:
      properties:
        message:
          type: string
          title: Message
      type: object
      required:
      - message
      title: ResendVerificationResponse
    CreateInviteRequest:
      properties:
        email:
          anyOf:
          - type: string
            maxLength: 320
          - type: 'null'
          title: Email
        role:
          type: string
          title: Role
          default: user
      type: object
      title: CreateInviteRequest
    AuthMeResponse:
      properties:
        user_id:
          type: string
          title: User Id
        org_id:
          type: string
          title: Org Id
        role:
          type: string
          title: Role
        auth_method:
          type: string
          title: Auth Method
        email:
          type: string
          title: Email
        org_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Name
          description: Present when org_id is set.
        org_slug:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Slug
          description: Present when org_id is set.
        address:
          anyOf:
          - type: string
          - type: 'null'
          title: Address
          description: Wallet address; present only for SIWE sessions.
        chain_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Chain Id
          description: Present only for SIWE sessions.
      type: object
      required:
      - user_id
      - org_id
      - role
      - auth_method
      - email
      title: AuthMeResponse
    X402BootstrapResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          const: bearer
          title: Token Type
        expires_in:
          type: integer
          title: Expires In
        org_id:
          type: string
          title: Org Id
        client_id:
          type: string
          title: Client Id
        client_secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Secret
          description: One-time secret on first bootstrap; omitted when the existing credential is reused.
      type: object
      required:
      - access_token
      - token_type
      - expires_in
      - org_id
      - client_id
      title: X402BootstrapResponse
      description: Bootstrap response; the secret is present only when the org has no credential.
    RegisterRequest:
      properties:
        org_name:
          type: string
          maxLength: 200
          minLength: 1
          title: Org Name
        email:
          type: string
          maxLength: 320
          minLength: 3
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
        acquisition_source:
          type: string
          maxLength: 64
          title: Acquisition Source
          default: ''
        captcha_token:
          anyOf:
          - type: string
            maxLength: 4096
          - type: 'null'
          title: Captcha Token
      type: object
      required:
      - org_name
      - email
      - password
      title: RegisterRequest
    ResendVerificationRequest:
      properties:
        email:
          type: string
          maxLength: 320
          minLength: 3
          title: Email
      type: object
      required:
      - email
      title: ResendVerificationRequest
    LogoutRequest:
      properties:
        refresh_token:
          type: string
          title: Refresh Token
      type: object
      required:
      - refresh_token
      title: LogoutRequest
    SiweNonceResponse:
      properties:
        nonce:
          type: string
          title: Nonce
      type: object
      required:
      - nonce
      title: SiweNonceResponse
    AcceptInviteRequest:
      properties:
        token:
          type: string
          title: Token
        email:
          type: string
          maxLength: 320
          minLength: 3
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
      type: object
      required:
      - token
      - email
      - password
      title: AcceptInviteRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RefreshRequest:
      properties:
        refresh_token:
          type: string
          title: Refresh Token
      type: object
      required:
      - refresh_token
      title: RefreshRequest
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer