MedNode AI Auth API

The Auth API from MedNode AI — 9 operation(s) for auth.

Operations 9

POST /api/auth/otp/send Send Otp #
POST /api/auth/forgot-password/reset Forgot Password Reset #
POST /api/auth/register Register #
POST /api/auth/login Login #
POST /api/auth/change-password Change Password #
GET /api/auth/2fa/setup Setup 2Fa #
POST /api/auth/2fa/enable Enable 2Fa #
POST /api/auth/2fa/disable Disable 2Fa #
POST /api/auth/logout Logout #

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/mednode-in:mednode-in-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

mednode-in-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MedNode AI Auth API
  version: 1.0.0
tags:
- name: Auth
paths:
  /api/auth/otp/send:
    post:
      summary: Send Otp
      operationId: send_otp_api_auth_otp_send_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendOTPRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/forgot-password/reset:
    post:
      summary: Forgot Password Reset
      operationId: forgot_password_reset_api_auth_forgot_password_reset_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForgotPasswordResetRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/register:
    post:
      summary: Register
      operationId: register_api_auth_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterRequest'
        required: true
      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'
      tags:
      - Auth
  /api/auth/login:
    post:
      summary: Login
      operationId: login_api_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequest'
        required: true
      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'
      tags:
      - Auth
  /api/auth/change-password:
    post:
      summary: Change Password
      operationId: change_password_api_auth_change_password_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangePasswordRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Auth
  /api/auth/2fa/setup:
    get:
      summary: Setup 2Fa
      operationId: setup_2fa_api_auth_2fa_setup_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MFASetupResponse'
      security:
      - HTTPBearer: []
      tags:
      - Auth
  /api/auth/2fa/enable:
    post:
      summary: Enable 2Fa
      operationId: enable_2fa_api_auth_2fa_enable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MFAEnableRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Auth
  /api/auth/2fa/disable:
    post:
      summary: Disable 2Fa
      operationId: disable_2fa_api_auth_2fa_disable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MFAEnableRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Auth
  /api/auth/logout:
    post:
      summary: Logout
      operationId: logout_api_auth_logout_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      tags:
      - Auth
components:
  schemas:
    MFAEnableRequest:
      properties:
        otp_code:
          type: string
          title: Otp Code
      type: object
      required:
      - otp_code
      title: MFAEnableRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuthResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          title: Token Type
          default: bearer
        user:
          $ref: '#/components/schemas/MeResponse'
      type: object
      required:
      - access_token
      - user
      title: AuthResponse
    ChangePasswordRequest:
      properties:
        current_password:
          type: string
          maxLength: 4096
          title: Current Password
        new_password:
          type: string
          maxLength: 128
          title: New Password
      type: object
      required:
      - current_password
      - new_password
      title: ChangePasswordRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    MeResponse:
      properties:
        id:
          type: integer
          title: Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        phone:
          anyOf:
          - type: string
          - type: 'null'
          title: Phone
        full_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Full Name
        date_of_birth:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Date Of Birth
        gender:
          anyOf:
          - type: string
          - type: 'null'
          title: Gender
        created_at:
          type: string
          format: date-time
          title: Created At
        is_2fa_enabled:
          type: boolean
          title: Is 2Fa Enabled
          default: false
        avatar_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Avatar Url
        phone_verified:
          type: boolean
          title: Phone Verified
          default: true
        email_verified:
          type: boolean
          title: Email Verified
          default: false
        preferred_language:
          anyOf:
          - type: string
          - type: 'null'
          title: Preferred Language
      type: object
      required:
      - id
      - created_at
      title: MeResponse
    SendOTPRequest:
      properties:
        phone:
          type: string
          title: Phone
        purpose:
          type: string
          title: Purpose
      type: object
      required:
      - phone
      - purpose
      title: SendOTPRequest
    LoginRequest:
      properties:
        identifier:
          type: string
          title: Identifier
        password:
          type: string
          maxLength: 4096
          title: Password
        otp_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Otp Code
      type: object
      required:
      - identifier
      - password
      title: LoginRequest
    ForgotPasswordResetRequest:
      properties:
        phone:
          type: string
          title: Phone
        otp_code:
          type: string
          title: Otp Code
        new_password:
          type: string
          maxLength: 128
          title: New Password
      type: object
      required:
      - phone
      - otp_code
      - new_password
      title: ForgotPasswordResetRequest
    RegisterRequest:
      properties:
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        phone:
          anyOf:
          - type: string
          - type: 'null'
          title: Phone
        password:
          type: string
          maxLength: 128
          title: Password
        full_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Full Name
        phone_otp:
          anyOf:
          - type: string
          - type: 'null'
          title: Phone Otp
      type: object
      required:
      - password
      title: RegisterRequest
    MFASetupResponse:
      properties:
        secret:
          type: string
          title: Secret
        otpauth_url:
          type: string
          title: Otpauth Url
      type: object
      required:
      - secret
      - otpauth_url
      title: MFASetupResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer