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

# Change the sign-in address (slug)

> Root user only. Changes the account's sign-in slug, which is also its sign-in subdomain, and publishes its DNS record. The caller confirms with an email code (see `GET /accounts/email-code`), exactly as for rename. The old slug stays as an alias (up to 3). The owner is notified by email. A refused change keeps the code, so it can be resubmitted.



## OpenAPI

````yaml /api-reference/endpoint/accounts/openapi.json patch /accounts/slug
openapi: 3.0.3
info:
  title: quiva.ai Accounts API
  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
  - name: Integrations
    description: Machine identities and client credentials for task sync
  - name: Task Subscriptions
    description: Webhook subscriptions that push task events to your endpoint
  - name: Email Templates
    description: Account email templates used by flows, Abbie and the client sign-in email
  - name: Branding
    description: Sign-in branding and account images
  - name: Client Access
    description: Passwordless sign-in and invitations for client users
  - name: Sync Packages
    description: Install, upgrade and remove sync packages for an account
  - name: Terms
    description: Terms documents, provider terms and the acceptance log
  - name: Email Sending
    description: Sending identity and outbound email
  - name: Usage and Billing
    description: Cost events, billing events, credit budget and spend guard
  - name: Notifications
    description: In-app notifications for the signed-in user
  - name: Resource Access
    description: Per-user grants on resources such as spaces
  - name: Document Branding
    description: Account theme and logo used on generated documents
paths:
  /accounts/slug:
    patch:
      tags:
        - Account Management
      summary: Change the sign-in address (slug)
      description: >-
        Root user only. Changes the account's sign-in slug, which is also its
        sign-in subdomain, and publishes its DNS record. The caller confirms
        with an email code (see `GET /accounts/email-code`), exactly as for
        rename. The old slug stays as an alias (up to 3). The owner is notified
        by email. A refused change keeps the code, so it can be resubmitted.
      operationId: changeAccountSlug
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangeAccountSlugRequest'
            example:
              slug: acme
              email_code: '123456'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/AccountSlugResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The slug is taken, or the account already holds 3 previous slugs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ChangeAccountSlugRequest:
      type: object
      required:
        - slug
        - email_code
      properties:
        slug:
          type: string
          description: >-
            3-63 lowercase letters, numbers or hyphens. Reserved platform names
            are refused.
        email_code:
          type: string
          description: Email verification code, see `GET /accounts/email-code`
    AccountSlugResponse:
      type: object
      properties:
        slug:
          type: string
        slug_aliases:
          type: array
          items:
            type: string
          description: Previous slugs, up to 3, that still sign in
        slug_published:
          type: boolean
          description: False while the sign-in address's DNS record is not yet published
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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