smplkit Auth API

The Auth API from smplkit — 7 operation(s) for auth.

GitHub OpenAPI

Operations 7

GET /api/v1/auth/oidc/{provider} Begin OIDC Login #
GET /api/v1/auth/callback/{provider} Handle OIDC Callback #
POST /api/v1/auth/register Register #
POST /api/v1/auth/login Login #
POST /api/v1/auth/verify-email Verify Email #
POST /api/v1/auth/refresh Refresh Auth Token #
POST /api/v1/auth/resend-verification Resend Verification Email #

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/smplkit-com:smplkit-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. 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

smplkit-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: smplkit Auth API
  description: API for the smplkit platform.
  version: 0.1.0
tags:
- name: Auth
paths:
  /api/v1/auth/oidc/{provider}:
    get:
      tags:
      - Auth
      summary: Begin OIDC Login
      description: Initiates the OIDC authorization flow by redirecting the user to the provider's login page.
      operationId: begin_oidc_login
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/OidcProvider'
      - name: mode
        in: query
        required: false
        schema:
          type: string
          default: signin
          title: Mode
      - name: source
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          title: Source
      - name: entry_point
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          title: Entry Point
      responses:
        '302':
          description: Redirect to OAuth provider login page
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/auth/callback/{provider}:
    get:
      tags:
      - Auth
      summary: Handle OIDC Callback
      description: Handles the callback from the OIDC provider, exchanges the authorization code for tokens, and redirects to the frontend.
      operationId: handle_oidc_callback
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/OidcProvider'
      - name: code
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          title: Code
      - name: state
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          title: State
      - name: error
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          title: Error
      - name: error_description
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          title: Error Description
      responses:
        '302':
          description: Redirect to frontend with auth token in fragment
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/auth/register:
    post:
      tags:
      - Auth
      summary: Register
      description: Creates a new account with email and password and returns an authentication token.
      operationId: register
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthTokenResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/auth/login:
    post:
      tags:
      - Auth
      summary: Login
      description: Authenticates with email and password and returns an authentication token.
      operationId: login
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthTokenResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/auth/verify-email:
    post:
      tags:
      - Auth
      summary: Verify Email
      description: Verifies a user's email address using the token from the verification email.
      operationId: verify_email
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyEmailRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthTokenResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/auth/refresh:
    post:
      tags:
      - Auth
      summary: Refresh Auth Token
      description: Validates the caller's current bearer token and issues a fresh one with re-resolved claims. Use this on app load so claims that can change between mint sites — most notably the caller's managed environment set — pick up the latest server-side state without requiring a sign-out/sign-in cycle. Returns 401 when the bearer is expired, revoked, or otherwise invalid. API keys are not eligible for refresh and receive 400.
      operationId: refresh_auth_token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthTokenResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
  /api/v1/auth/resend-verification:
    post:
      tags:
      - Auth
      summary: Resend Verification Email
      description: Resends the email verification link to the authenticated user.
      operationId: resend_verification
      responses:
        '204':
          description: Successful Response
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
components:
  schemas:
    VerifyEmailRequest:
      properties:
        token:
          type: string
          title: Token
          description: Verification token previously delivered to the user's email.
      type: object
      required:
      - token
      title: VerifyEmailRequest
      description: Body for the email-verification endpoint.
      example:
        token: eyJhbGciOiJIUzI1NiJ9...
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/Error'
          type: array
          title: Errors
      type: object
      required:
      - errors
      title: ErrorResponse
      description: JSON:API error response envelope.
    RegisterRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
          description: Email address that becomes the new user's login identifier.
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
          description: Password for the new account. Must be at least 8 characters.
        entry_point:
          type:
          - string
          - 'null'
          enum:
          - LOGIN
          - GET_STARTED
          - LIVE_DEMO
          - UNKNOWN
          - null
          title: Entry Point
          description: 'How the customer arrived at the registration page. Allowed values: `LOGIN`, `GET_STARTED`, `LIVE_DEMO`, `UNKNOWN`. Defaults to `UNKNOWN` when omitted. Case-insensitive on input.'
      type: object
      required:
      - email
      - password
      title: RegisterRequest
      description: Body for the email + password registration endpoint.
      example:
        email: jane@example.com
        entry_point: GET_STARTED
        password: correct-horse-battery-staple
    OidcProvider:
      type: string
      enum:
      - google
      - microsoft
      title: OidcProvider
    AuthTokenResponse:
      properties:
        token:
          type: string
          title: Token
          description: Bearer token to pass in the `Authorization` header.
        expires_in:
          type: integer
          title: Expires In
          description: Seconds until the token expires.
      type: object
      required:
      - token
      - expires_in
      title: AuthTokenResponse
      description: Authentication token issued on successful login or registration.
    Error:
      properties:
        status:
          type: string
          title: Status
        title:
          type: string
          title: Title
        detail:
          type:
          - string
          - 'null'
          title: Detail
        source:
          additionalProperties: true
          type:
          - object
          - 'null'
          title: Source
      type: object
      required:
      - status
      - title
      title: Error
      description: Single JSON:API error object.
    LoginRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
          description: Email address of the user signing in.
        password:
          type: string
          maxLength: 128
          minLength: 1
          title: Password
          description: Password supplied for authentication.
      type: object
      required:
      - email
      - password
      title: LoginRequest
      description: Body for the email + password login endpoint.
      example:
        email: jane@example.com
        password: correct-horse-battery-staple
  securitySchemes:
    HTTPBearer:
      type: http
      description: JWT access token or API key (sk_api_*)
      scheme: bearer