> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set password

> Sets a password for a new user



## OpenAPI

````yaml /api-reference/endpoint/accounts/openapi.json post /accounts/set-password
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    API for managing accounts, users, authentication, and payments in the
    quiva.ai platform
  version: 1.0.0
  contact:
    name: quiva.ai Support
    url: https://app.quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Account Management
    description: Operations related to account creation, updating, and deletion
  - name: User Management
    description: Operations related to user creation, updating, and deletion
  - name: Authentication
    description: Operations related to authentication and session management
  - name: API Keys
    description: Operations related to API key management
  - name: Multi-Factor Authentication
    description: Operations related to MFA setup and verification
  - name: Payment
    description: Operations related to subscription and payment management
  - name: Mesh Nodes
    description: Operations related to mesh node management
paths:
  /accounts/set-password:
    post:
      tags:
        - Authentication
      summary: Set password
      description: Sets a password for a new user
      operationId: setPassword
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Set password token
                password:
                  type: string
                  description: |-
                    New password.

                    Requirements:
                    - Minimum length: 8 characters 
                     - Must contain at least one uppercase letter 
                     - Must contain at least one lowercase letter 
                     - Must contain at least one digit (number) 
                     - Must contain at least one special character (punctuation or symbol) 
                     - Maximum length: 99 characters
              required:
                - token
                - password
            example:
              token: abcdef123456
              password: SecureP@ssw0rd!
      responses:
        '200':
          description: Password set successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    properties:
                      account_id:
                        type: string
                      user_id:
                        type: string
                      account:
                        type: string
                      email:
                        type: string
                        format: email
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````