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

# Change a portal's sign-in email

> Saves the whole sign-in email. A sender address must be on one of your verified sending domains: otherwise a 422 that lists them (add one with POST /v1/sender-domains). Then send the saved email to yourself with POST /v1/portals/{portal_id}/auth-config/test-email. A staff grant (a Statisfy person in your workspace) can't call this: it speaks for your workspace.



## OpenAPI

````yaml /api/statisfy-api.openapi.json put /v1/portals/{portal_id}/auth-config
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/portals/{portal_id}/auth-config:
    put:
      tags:
        - portals
      summary: Change a portal's sign-in email
      description: >-
        Saves the whole sign-in email. A sender address must be on one of your
        verified sending domains: otherwise a 422 that lists them (add one with
        POST /v1/sender-domains). Then send the saved email to yourself with
        POST /v1/portals/{portal_id}/auth-config/test-email. A staff grant (a
        Statisfy person in your workspace) can't call this: it speaks for your
        workspace.
      operationId: portals_update_sign_in_email
      parameters:
        - description: >-
            The portal's id, as GET /v1/portals (or the portal_list MCP tool)
            returns it
          in: path
          name: portal_id
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                otp_email:
                  $ref: '#/components/schemas/SignInEmailInput'
                  description: >-
                    The whole email: every field not sent goes back to its
                    default
              required:
                - otp_email
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignInEmailResponse'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SignInEmailInput:
      properties:
        expiry_minutes:
          default: 10
          description: How long the code works, in minutes
          maximum: 60
          minimum: 1
          title: Expiry Minutes
          type: integer
        html:
          description: The body as HTML, with {{otp_code}} where the code goes
          maxLength: 50000
          minLength: 1
          title: Html
          type: string
        sender_email:
          default: ''
          description: >-
            The From address, on one of your verified sending domains (Settings
            > DNS). Empty: your verified domain's default address
          maxLength: 320
          title: Sender Email
          type: string
        sender_name:
          default: ''
          description: The From name
          maxLength: 255
          title: Sender Name
          type: string
        subject:
          description: The subject
          maxLength: 255
          minLength: 1
          title: Subject
          type: string
      required:
        - subject
        - html
      title: SignInEmailInput
      type: object
    SignInEmailResponse:
      properties:
        otp_email:
          $ref: '#/components/schemas/SignInEmail'
          description: The one-time-code email people get when they sign in
      required:
        - otp_email
      title: SignInEmailResponse
      type: object
    SignInEmail:
      properties:
        expiry_minutes:
          description: How long the code works, in minutes (1 to 60)
          title: Expiry Minutes
          type: integer
        html:
          description: >-
            The body as HTML, with {{otp_code}}, {{expiry_minutes}} and
            {{portal_url}} filled in when sent
          title: Html
          type: string
        sender_email:
          description: >-
            The From address. Empty when saved means your verified sending
            domain's default address; a read then shows Statisfy's neutral
            address
          title: Sender Email
          type: string
        sender_name:
          description: The From name
          title: Sender Name
          type: string
        subject:
          description: >-
            The subject. {{otp_code}} and {{expiry_minutes}} are filled in when
            it is sent
          title: Subject
          type: string
      required:
        - sender_email
        - sender_name
        - subject
        - expiry_minutes
        - html
      title: SignInEmail
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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