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

# Log password reset event

> Initiate and log password reset events



## OpenAPI

````yaml post /events/password-reset
openapi: 3.0.1
info:
  title: OpenAPI spec for Swift Customer Data Processing and Risk Score
  description: A specification for Swift's customer data processing and risk score APIs
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: http://sandbox.mintlify.com
security:
  - bearerAuth: []
paths:
  /events/password-reset:
    post:
      tags:
        - Account Activity
      summary: Log password reset event
      description: Initiate and log password reset events
      requestBody:
        description: Password reset event details
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordResetEvent'
        required: true
      responses:
        '201':
          description: Password reset initiated and logged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventResponse'
components:
  schemas:
    PasswordResetEvent:
      required:
        - userId
        - requestId
        - timestamp
      type: object
      properties:
        userId:
          description: Unique identifier for the user
          type: string
        requestId:
          description: Unique identifier for the password reset request
          type: string
        timestamp:
          description: Time when the password reset was initiated
          type: string
          format: date-time
        status:
          description: Current status of the password reset
          type: string
          enum:
            - initiated
            - email_sent
            - completed
            - expired
            - cancelled
        expiresAt:
          description: When the reset token expires
          type: string
          format: date-time
        metadata:
          description: Additional reset-specific details
          type: object
          additionalProperties: true
    EventResponse:
      required:
        - eventId
        - status
      type: object
      properties:
        eventId:
          description: Unique identifier for the logged event
          type: string
        status:
          description: Status of the event logging
          type: string
          enum:
            - success
            - failed
        timestamp:
          description: Time when the event was logged
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````