DueBuddy Auth API

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

Operations 9

POST /api/v1/auth/start Auth Start #
GET /api/v1/auth/verify Auth Verify Page #
POST /api/v1/auth/verify Auth Verify #
POST /api/v1/auth/logout_all Auth Logout All #
POST /api/v1/auth/logout Auth Logout #
GET /api/v1/me Me #
POST /api/v1/auth/pin/set Pin Set #
GET /api/v1/auth/pin/status Pin Status #
POST /api/v1/auth/pin/verify Pin Verify #

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/duebuddy-work:duebuddy-work-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

duebuddy-work-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DueBuddy Auth API
  version: 0.3.0
tags:
- name: Auth
paths:
  /api/v1/auth/start:
    post:
      tags:
      - Auth
      summary: Auth Start
      description: 'Всегда 200 {"ok": true}: не раскрываем, есть ли такой пользователь.'
      operationId: auth_start_api_v1_auth_start_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/verify:
    get:
      tags:
      - Auth
      summary: Auth Verify Page
      description: Страница входа по ссылке из письма (открывается из письма, вводит в кабинет).
      operationId: auth_verify_page_api_v1_auth_verify_get
      parameters:
      - name: token
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
          title: Token
      - name: lang
        in: query
        required: false
        schema:
          type: string
          maxLength: 5
          default: ''
          title: Lang
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Auth
      summary: Auth Verify
      description: Страница входа по ссылке из письма.
      operationId: auth_verify_api_v1_auth_verify_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyOut'
  /api/v1/auth/logout_all:
    post:
      tags:
      - Auth
      summary: Auth Logout All
      description: 'Выход со всех устройств: гасим все активные сессии пользователя.'
      operationId: auth_logout_all_api_v1_auth_logout_all_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkOut'
  /api/v1/auth/logout:
    post:
      tags:
      - Auth
      summary: Auth Logout
      operationId: auth_logout_api_v1_auth_logout_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkOut'
  /api/v1/me:
    get:
      tags:
      - Auth
      summary: Me
      operationId: me_api_v1_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeOut'
  /api/v1/auth/pin/set:
    post:
      tags:
      - Auth
      summary: Pin Set
      description: Включить, сменить или выключить PIN. Для смены и выключения нужен текущий PIN.
      operationId: pin_set_api_v1_auth_pin_set_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PinIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/auth/pin/status:
    get:
      tags:
      - Auth
      summary: Pin Status
      description: Включён ли PIN у пользователя.
      operationId: pin_status_api_v1_auth_pin_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Pin Status Api V1 Auth Pin Status Get
  /api/v1/auth/pin/verify:
    post:
      tags:
      - Auth
      summary: Pin Verify
      description: 'Второй шаг входа: проверяем PIN по временному токену ссылки.'
      operationId: pin_verify_api_v1_auth_pin_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PinIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MeOut:
      properties:
        id:
          type: integer
          title: Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        name:
          type: string
          title: Name
          default: ''
        lang:
          type: string
          title: Lang
          default: ru
        tier:
          type: string
          title: Tier
          default: starter
        plan_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan Code
        plan_paid:
          type: boolean
          title: Plan Paid
          default: false
        free_parses_total:
          type: integer
          title: Free Parses Total
          default: 5
        free_parses_used:
          type: integer
          title: Free Parses Used
          default: 0
        free_parses_left:
          type: integer
          title: Free Parses Left
          default: 5
      type: object
      required:
      - id
      title: MeOut
    UserOut:
      properties:
        id:
          type: integer
          title: Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        name:
          type: string
          title: Name
          default: ''
        lang:
          type: string
          title: Lang
          default: ru
        tier:
          type: string
          title: Tier
          default: starter
      type: object
      required:
      - id
      title: UserOut
    StartIn:
      properties:
        email:
          type: string
          title: Email
        lang:
          type: string
          title: Lang
          default: ''
      type: object
      required:
      - email
      title: StartIn
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    VerifyOut:
      properties:
        pin_required:
          type: boolean
          title: Pin Required
          default: false
        ok:
          type: boolean
          title: Ok
          default: true
        user:
          $ref: '#/components/schemas/UserOut'
      type: object
      required:
      - user
      title: VerifyOut
    PinIn:
      properties:
        pin:
          type: string
          title: Pin
        current:
          type: string
          title: Current
          default: ''
      type: object
      required:
      - pin
      title: PinIn
    OkOut:
      properties:
        ok:
          type: boolean
          title: Ok
          default: true
        sent:
          type: boolean
          title: Sent
          default: true
        retry_after:
          anyOf:
          - type: integer
          - type: 'null'
          title: Retry After
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
      type: object
      title: OkOut