CoraPilot Auth API

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

GitHub OpenAPI

Operations 11

POST /auth/register Register #
POST /auth/login Login #
POST /auth/login/2fa Login 2Fa #
GET /auth/me Me #
PUT /auth/me Update Me #
POST /auth/password-reset/request Request Password Reset #
POST /auth/password-reset/confirm Confirm Password Reset #
POST /auth/2fa/enable Enable 2Fa #
POST /auth/2fa/confirm-enable Confirm Enable 2Fa #
POST /auth/2fa/disable Disable 2Fa #
POST /auth/change-password Change Password #

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/corapilot-com:corapilot-com-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

corapilot-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Corapilot Com Auth API
  version: 0.1.0
  description: 'Operations tagged auth across 2 of this provider''s published API definitions: corapilot-com-openapi.json, corapilot-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://corapilot.com
  description: Host serving this spec (/openapi.json), its Swagger UI (/docs) and the OAuth-protected MCP resource (https://corapilot.com/mcp per /.well-known/oauth-protected-resource); the published spec carries no servers[].
tags:
- name: Auth
paths:
  /auth/register:
    post:
      tags:
      - Auth
      summary: Register
      operationId: register_auth_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/login:
    post:
      tags:
      - Auth
      summary: Login
      operationId: login_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserLogin'
        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/login/2fa:
    post:
      tags:
      - Auth
      summary: Login 2Fa
      description: Step 2 of login when 2FA is enabled — verify the emailed code.
      operationId: login_2fa_auth_login_2fa_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwoFactorLoginRequest'
        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/me:
    get:
      tags:
      - Auth
      summary: Me
      operationId: me_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserOut'
      security:
      - HTTPBearer: []
    put:
      tags:
      - Auth
      summary: Update Me
      description: Update the current user's personal info (name).
      operationId: update_me_auth_me_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileUpdateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /auth/password-reset/request:
    post:
      tags:
      - Auth
      summary: Request Password Reset
      description: Send a 6-digit password reset code to the user's email.
      operationId: request_password_reset_auth_password_reset_request_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordResetRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/password-reset/confirm:
    post:
      tags:
      - Auth
      summary: Confirm Password Reset
      description: Verify the reset code and set a new password.
      operationId: confirm_password_reset_auth_password_reset_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordResetConfirm'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/2fa/enable:
    post:
      tags:
      - Auth
      summary: Enable 2Fa
      description: Start enabling 2FA — sends a verification code to confirm.
      operationId: enable_2fa_auth_2fa_enable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwoFactorEnableRequest'
        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: []
  /auth/2fa/confirm-enable:
    post:
      tags:
      - Auth
      summary: Confirm Enable 2Fa
      description: Confirm 2FA activation with the emailed code.
      operationId: confirm_enable_2fa_auth_2fa_confirm_enable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwoFactorVerifyRequest'
        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: []
  /auth/2fa/disable:
    post:
      tags:
      - Auth
      summary: Disable 2Fa
      description: Disable 2FA — requires a valid code for security.
      operationId: disable_2fa_auth_2fa_disable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwoFactorVerifyRequest'
        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: []
  /auth/change-password:
    post:
      tags:
      - Auth
      summary: Change Password
      description: Change password for the logged-in user.
      operationId: change_password_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: []
components:
  schemas:
    PasswordResetConfirm:
      properties:
        email:
          type: string
          format: email
          title: Email
        code:
          type: string
          maxLength: 6
          minLength: 6
          title: Code
        new_password:
          type: string
          maxLength: 128
          minLength: 10
          title: New Password
      type: object
      required:
      - email
      - code
      - new_password
      title: PasswordResetConfirm
    UserOut:
      properties:
        id:
          type: integer
          title: Id
        email:
          type: string
          format: email
          title: Email
        full_name:
          type: string
          title: Full Name
        role:
          $ref: '#/components/schemas/RoleEnum'
        is_active:
          type: boolean
          title: Is Active
        two_factor_enabled:
          type: boolean
          title: Two Factor Enabled
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - email
      - full_name
      - role
      - is_active
      - created_at
      title: UserOut
    RegisterRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 10
          title: Password
        full_name:
          type: string
          maxLength: 255
          minLength: 2
          title: Full Name
        account_name:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Account Name
        plan_code:
          anyOf:
          - $ref: '#/components/schemas/PlanCode'
          - type: 'null'
        ref:
          anyOf:
          - type: string
            maxLength: 32
          - type: 'null'
          title: Ref
        services:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Services
      type: object
      required:
      - email
      - password
      - full_name
      title: RegisterRequest
    TokenResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          type: string
          title: Token Type
          default: bearer
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
      type: object
      required:
      - access_token
      - expires_in_seconds
      title: TokenResponse
    TwoFactorLoginRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
        code:
          type: string
          maxLength: 6
          minLength: 6
          title: Code
      type: object
      required:
      - email
      - code
      title: TwoFactorLoginRequest
      description: 'Login step 2: verify 2FA code after password check.'
    ChangePasswordRequest:
      properties:
        current_password:
          type: string
          maxLength: 128
          minLength: 8
          title: Current Password
        new_password:
          type: string
          maxLength: 128
          minLength: 10
          title: New Password
      type: object
      required:
      - current_password
      - new_password
      title: ChangePasswordRequest
      description: Change password for authenticated user.
    TwoFactorEnableRequest:
      properties: {}
      type: object
      title: TwoFactorEnableRequest
      description: Sent by authenticated user to enable 2FA.
    PasswordResetRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
      type: object
      required:
      - email
      title: PasswordResetRequest
    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
    TwoFactorVerifyRequest:
      properties:
        code:
          type: string
          maxLength: 6
          minLength: 6
          title: Code
      type: object
      required:
      - code
      title: TwoFactorVerifyRequest
      description: Verify a 2FA code (used both for enabling and for login).
    RoleEnum:
      type: string
      enum:
      - admin
      - customer
      title: RoleEnum
      description: User role types.
    UserLogin:
      properties:
        email:
          type: string
          format: email
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
      type: object
      required:
      - email
      - password
      title: UserLogin
    ProfileUpdateRequest:
      properties:
        full_name:
          type: string
          maxLength: 255
          minLength: 2
          title: Full Name
      type: object
      required:
      - full_name
      title: ProfileUpdateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PlanCode:
      type: string
      enum:
      - whatsapp
      - whatsapp_annual
      - business
      - enterprise
      title: PlanCode
      description: WhatsApp product plan codes (4 types).
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- corapilot-com-openapi.json
- corapilot-com-openapi.yml