> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webstashai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify an email address with a short code



## OpenAPI

````yaml /openapi/webstash.openapi.json post /auth/verify-email
openapi: 3.1.0
info:
  title: WebStash API
  version: 0.2.0
  description: >-
    Public API for authentication, saving content, searching your library,
    running AI workflows, and managing knowledge in WebStash.
servers:
  - url: https://api.webstashai.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Discovery
  - name: Health
  - name: Auth
  - name: Ingestion
  - name: Import
  - name: Search
  - name: AI
  - name: Pages
  - name: Highlights
  - name: Notes
  - name: Tags
  - name: Collections
  - name: Stats
  - name: OAuth
paths:
  /auth/verify-email:
    post:
      tags:
        - Auth
      summary: Verify an email address with a short code
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                  pattern: ^\d{6}$
                  description: Six-digit code from the verification email
              required:
                - code
              additionalProperties: false
      responses:
        '200':
          description: Email verification succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: A session JWT is required
        '429':
          description: Verification attempts or request rate exceeded
components:
  schemas:
    MessageResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  responses:
    BadRequest:
      description: The request body or parameters are invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication is missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.