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

# Update SMS OTP authenticator configuration

> Update the tenant's SMS OTP authenticator configuration.



## OpenAPI

````yaml management-api PATCH /authenticator-configurations/sms
openapi: 3.1.0
info:
  description: Authsignal's Management API
  version: 1.0.0
  title: Management Api
  termsOfService: https://www.authsignal.com/legal/terms-of-service
  contact:
    email: hello@authsignal.com
servers:
  - url: https://api.authsignal.com/v1/management
    description: Authsignal's US (Oregon) Management API
  - url: https://au.api.authsignal.com/v1/management
    description: Authsignal's AU (Sydney) Management API
  - url: https://eu.api.authsignal.com/v1/management
    description: Authsignal's EU (Ireland) Management API
  - url: https://ca.api.authsignal.com/v1/management
    description: Authsignal's CA (Montreal) Management API
  - url: https://uk.api.authsignal.com/v1/management
    description: Authsignal's UK (London) Management API
security:
  - basicAuth: []
tags:
  - name: Tenant
    description: Endpoints related to the configuration of a tenant.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: Action Configurations
    description: Endpoints related to the configuration of action configurations.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: SMS OTP configuration
    description: Endpoints for managing the tenant's SMS OTP configuration.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: email OTP configuration
    description: Endpoints for managing the tenant's email OTP configuration.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: passkey configuration
    description: Endpoints for managing the tenant's passkey configuration.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: push configuration
    description: Endpoints for managing the tenant's push configuration.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: Rules
    description: Endpoints related to the configuration of rules.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: Theme
    description: Endpoints related to the configuration of a Tenant's theme.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: Message Overrides
    description: >-
      Endpoints related to the configuration of a Tenant's pre-built UI message
      overrides.
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
externalDocs:
  description: Find out more about Authsignal
  url: https://docs.authsignal.com
paths:
  /authenticator-configurations/sms:
    patch:
      tags:
        - SMS OTP configuration
      summary: Update the SMS OTP configuration
      description: >-
        Updates the tenant's SMS OTP configuration. Omitted fields are
        preserved.
      operationId: updateSmsAuthenticatorConfiguration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSmsAuthenticatorConfigurationBody'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsAuthenticatorConfiguration'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UpdateSmsAuthenticatorConfigurationBody:
      type: object
      description: >-
        SMS OTP fields to update. Omitted fields are preserved. Send `null` for
        a clearable field to remove it.
      properties:
        isActive:
          type: boolean
        smsProvider:
          $ref: '#/components/schemas/SmsOtpProvider'
        webhookUrl:
          oneOf:
            - type: string
              format: uri
              pattern: ^https://
            - type: 'null'
          description: >-
            The HTTPS endpoint used by a `WEBHOOK` provider. Authsignal posts
            each verification code to this endpoint as an [`sms.created`
            event](/advanced-usage/webhooks/sms-created). A URL is rejected
            unless the effective provider is `WEBHOOK`, and `null` is rejected
            while it is. Switching to another provider clears the stored
            endpoint.
        smsCountryCodes:
          $ref: '#/components/schemas/SmsCountryCodes'
          description: >-
            Allowed destination countries. If this list no longer contains the
            stored `defaultCountryCode`, that default is cleared.
        defaultCountryCode:
          oneOf:
            - $ref: '#/components/schemas/SmsCountryCode'
            - type: 'null'
        submissionRateLimitConfiguration:
          oneOf:
            - $ref: '#/components/schemas/RateLimitConfiguration'
            - type: 'null'
        sendingRateLimitConfigurations:
          oneOf:
            - $ref: '#/components/schemas/SendingRateLimitConfigurations'
            - type: 'null'
        prefixRateLimitConfigurations:
          $ref: '#/components/schemas/PrefixRateLimitConfigurations'
        allowedCustomSmsVariables:
          $ref: '#/components/schemas/CustomMessageVariables'
        twilioCredentials:
          $ref: '#/components/schemas/TwilioCredentialsUpdate'
          description: Use with the `TWILIO` SMS provider.
        birdSmsCredentials:
          $ref: '#/components/schemas/BirdSmsCredentialsUpdate'
          description: Use with the `BIRD` SMS provider.
        messageMediaCredentials:
          $ref: '#/components/schemas/MessageMediaCredentialsUpdate'
          description: Use with the `MESSAGE_MEDIA` SMS provider.
        modicaGroupCredentials:
          $ref: '#/components/schemas/ModicaGroupCredentialsUpdate'
          description: Use with the `MODICA_GROUP` SMS provider.
        tnzCredentials:
          $ref: '#/components/schemas/TnzCredentialsUpdate'
          description: Use with the `TNZ` SMS provider.
      additionalProperties: false
      allOf:
        - if:
            properties:
              smsProvider:
                const: BIRD
            required:
              - smsProvider
          then:
            not:
              anyOf:
                - required:
                    - twilioCredentials
                - required:
                    - messageMediaCredentials
                - required:
                    - modicaGroupCredentials
                - required:
                    - tnzCredentials
                - required:
                    - webhookUrl
                  properties:
                    webhookUrl:
                      type: string
        - if:
            properties:
              smsProvider:
                const: TWILIO
            required:
              - smsProvider
          then:
            not:
              anyOf:
                - required:
                    - birdSmsCredentials
                - required:
                    - messageMediaCredentials
                - required:
                    - modicaGroupCredentials
                - required:
                    - tnzCredentials
                - required:
                    - webhookUrl
                  properties:
                    webhookUrl:
                      type: string
        - if:
            properties:
              smsProvider:
                const: MESSAGE_MEDIA
            required:
              - smsProvider
          then:
            not:
              anyOf:
                - required:
                    - birdSmsCredentials
                - required:
                    - twilioCredentials
                - required:
                    - modicaGroupCredentials
                - required:
                    - tnzCredentials
                - required:
                    - webhookUrl
                  properties:
                    webhookUrl:
                      type: string
        - if:
            properties:
              smsProvider:
                const: MODICA_GROUP
            required:
              - smsProvider
          then:
            not:
              anyOf:
                - required:
                    - birdSmsCredentials
                - required:
                    - twilioCredentials
                - required:
                    - messageMediaCredentials
                - required:
                    - tnzCredentials
                - required:
                    - webhookUrl
                  properties:
                    webhookUrl:
                      type: string
        - if:
            properties:
              smsProvider:
                const: TNZ
            required:
              - smsProvider
          then:
            not:
              anyOf:
                - required:
                    - birdSmsCredentials
                - required:
                    - twilioCredentials
                - required:
                    - messageMediaCredentials
                - required:
                    - modicaGroupCredentials
                - required:
                    - webhookUrl
                  properties:
                    webhookUrl:
                      type: string
        - if:
            properties:
              smsProvider:
                const: WEBHOOK
            required:
              - smsProvider
          then:
            not:
              anyOf:
                - required:
                    - birdSmsCredentials
                - required:
                    - twilioCredentials
                - required:
                    - messageMediaCredentials
                - required:
                    - modicaGroupCredentials
                - required:
                    - tnzCredentials
      example:
        smsCountryCodes:
          - AU
          - NZ
        defaultCountryCode: NZ
    SmsAuthenticatorConfiguration:
      type: object
      properties:
        authenticatorId:
          type: string
          description: The immutable identifier for this configuration.
          readOnly: true
        isActive:
          type: boolean
        verificationMethod:
          type: string
          const: SMS
          readOnly: true
          description: The verification method produced by this configuration.
        smsProvider:
          $ref: '#/components/schemas/SmsOtpProvider'
        webhookUrl:
          type: string
          format: uri
          description: >-
            The HTTPS endpoint used by a `WEBHOOK` provider. Authsignal posts
            each verification code to this endpoint as an [`sms.created`
            event](/advanced-usage/webhooks/sms-created).
        smsCountryCodes:
          $ref: '#/components/schemas/SmsCountryCodes'
          description: Allowed destination countries for SMS OTP.
        defaultCountryCode:
          $ref: '#/components/schemas/SmsCountryCode'
        submissionRateLimitConfiguration:
          $ref: '#/components/schemas/RateLimitConfiguration'
        sendingRateLimitConfigurations:
          $ref: '#/components/schemas/SendingRateLimitConfigurations'
        prefixRateLimitConfigurations:
          $ref: '#/components/schemas/PrefixRateLimitConfigurations'
        allowedCustomSmsVariables:
          $ref: '#/components/schemas/CustomMessageVariables'
        twilioCredentials:
          $ref: '#/components/schemas/TwilioCredentialsResponse'
          description: Use with the `TWILIO` SMS provider.
        messageMediaCredentials:
          $ref: '#/components/schemas/MessageMediaCredentialsResponse'
          description: Use with the `MESSAGE_MEDIA` SMS provider.
        modicaGroupCredentials:
          $ref: '#/components/schemas/ModicaGroupCredentialsResponse'
          description: Use with the `MODICA_GROUP` SMS provider.
        tnzCredentials:
          $ref: '#/components/schemas/TnzCredentialsResponse'
          description: Use with the `TNZ` SMS provider.
        birdSmsCredentials:
          $ref: '#/components/schemas/BirdSmsCredentialsResponse'
          description: Use with the `BIRD` SMS provider.
      required:
        - authenticatorId
        - verificationMethod
        - isActive
      additionalProperties: true
      example:
        authenticatorId: 6b736c64-ff30-4b85-8706-0c78c34c0ca9
        verificationMethod: SMS
        isActive: true
        smsProvider: BIRD
        smsCountryCodes:
          - AU
          - NZ
        defaultCountryCode: NZ
        sendingRateLimitConfigurations:
          - rateLimit: 2
            windowInMinutes: 1
          - rateLimit: 10
            windowInMinutes: 60
        birdSmsCredentials:
          workspaceId: workspace-id
          channelId: channel-id
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        errorDescription:
          type: string
    SmsOtpProvider:
      type: string
      description: >-
        The SMS provider. Supply the matching credential object for `BIRD`,
        `TWILIO`, `MESSAGE_MEDIA`, `MODICA_GROUP`, or `TNZ`. `WEBHOOK` requires
        `webhookUrl`.
      enum:
        - BIRD
        - TWILIO
        - MESSAGE_MEDIA
        - MODICA_GROUP
        - TNZ
        - WEBHOOK
    SmsCountryCodes:
      type: array
      items:
        $ref: '#/components/schemas/SmsCountryCode'
    SmsCountryCode:
      type: string
      description: A supported two-letter country code.
      enum:
        - AD
        - AE
        - AF
        - AG
        - AI
        - AL
        - AM
        - AO
        - AR
        - AS
        - AT
        - AU
        - AW
        - AX
        - AZ
        - BA
        - BB
        - BD
        - BE
        - BF
        - BG
        - BH
        - BI
        - BJ
        - BL
        - BM
        - BN
        - BO
        - BR
        - BS
        - BT
        - BW
        - BY
        - BZ
        - CA
        - CC
        - CD
        - CF
        - CG
        - CH
        - CI
        - CK
        - CL
        - CM
        - CN
        - CO
        - CR
        - CU
        - CV
        - CX
        - CY
        - CZ
        - DE
        - DJ
        - DK
        - DM
        - DO
        - DZ
        - EC
        - EE
        - EG
        - ER
        - ES
        - ET
        - FI
        - FJ
        - FK
        - FM
        - FO
        - FR
        - GA
        - GB
        - GD
        - GE
        - GF
        - GG
        - GH
        - GI
        - GL
        - GM
        - GN
        - GP
        - GQ
        - GR
        - GT
        - GU
        - GW
        - GY
        - HK
        - HN
        - HR
        - HT
        - HU
        - ID
        - IE
        - IL
        - IM
        - IN
        - IO
        - IQ
        - IR
        - IS
        - IT
        - JE
        - JM
        - JO
        - JP
        - KE
        - KG
        - KH
        - KI
        - KM
        - KN
        - KP
        - KR
        - KW
        - KY
        - KZ
        - LA
        - LB
        - LC
        - LI
        - LK
        - LR
        - LS
        - LT
        - LU
        - LV
        - LY
        - MA
        - MC
        - MD
        - ME
        - MF
        - MG
        - MH
        - MK
        - ML
        - MM
        - MN
        - MO
        - MP
        - MQ
        - MR
        - MS
        - MT
        - MU
        - MV
        - MW
        - MX
        - MY
        - MZ
        - NA
        - NC
        - NE
        - NF
        - NG
        - NI
        - NL
        - 'NO'
        - NP
        - NR
        - NU
        - NZ
        - OM
        - PA
        - PE
        - PF
        - PG
        - PH
        - PK
        - PL
        - PM
        - PR
        - PS
        - PT
        - PW
        - PY
        - QA
        - RE
        - RO
        - RS
        - RU
        - RW
        - SA
        - SB
        - SC
        - SD
        - SE
        - SG
        - SH
        - SI
        - SJ
        - SK
        - SL
        - SM
        - SN
        - SO
        - SR
        - SS
        - ST
        - SV
        - SY
        - SZ
        - TC
        - TD
        - TG
        - TH
        - TJ
        - TK
        - TL
        - TM
        - TN
        - TO
        - TR
        - TT
        - TV
        - TW
        - TZ
        - UA
        - UG
        - US
        - UY
        - UZ
        - VA
        - VC
        - VE
        - VG
        - VI
        - VN
        - VU
        - WF
        - WS
        - XK
        - YE
        - YT
        - ZA
        - ZM
        - ZW
    RateLimitConfiguration:
      type: object
      properties:
        rateLimit:
          type: integer
          minimum: 1
          maximum: 100
          description: >-
            The maximum number of sends or code submissions allowed in the
            window.
        windowInMinutes:
          type: number
          minimum: 1
          maximum: 1440
          description: The length of the sliding window, in minutes.
      required:
        - rateLimit
        - windowInMinutes
      additionalProperties: false
    SendingRateLimitConfigurations:
      type: array
      description: >-
        Limits on how many messages are sent to one phone number or email
        address. Every configured limit applies, so sending is blocked as soon
        as any is exceeded. Add a limit of 1 to set a cooldown between sends.
        See [Rate limits](/knowledge-base/operations/rate-limits).
      items:
        $ref: '#/components/schemas/SendingRateLimitConfiguration'
      minItems: 1
      maxItems: 6
    PrefixRateLimitConfigurations:
      type: array
      description: >-
        Limits on how many SMS messages are sent across a country or a block of
        consecutive phone numbers. Every enabled limit applies. See [Rate
        limits](/knowledge-base/operations/rate-limits).
      items:
        $ref: '#/components/schemas/PrefixRateLimitConfiguration'
      maxItems: 5
    CustomMessageVariables:
      type: array
      items:
        type: string
    TwilioCredentialsUpdate:
      oneOf:
        - $ref: '#/components/schemas/TwilioCredentials'
        - type: 'null'
    BirdSmsCredentialsUpdate:
      oneOf:
        - $ref: '#/components/schemas/BirdSmsCredentials'
        - type: 'null'
    MessageMediaCredentialsUpdate:
      oneOf:
        - $ref: '#/components/schemas/MessageMediaCredentials'
        - type: 'null'
    ModicaGroupCredentialsUpdate:
      oneOf:
        - $ref: '#/components/schemas/ModicaGroupCredentials'
        - type: 'null'
    TnzCredentialsUpdate:
      oneOf:
        - $ref: '#/components/schemas/TnzCredentials'
        - type: 'null'
    TwilioCredentialsResponse:
      type: object
      properties:
        messagingServiceSid:
          type: string
        accountSid:
          type: string
      additionalProperties: false
    MessageMediaCredentialsResponse:
      type: object
      properties:
        sourceNumber:
          type: string
      additionalProperties: false
    ModicaGroupCredentialsResponse:
      type: object
      properties:
        username:
          type: string
      additionalProperties: false
    TnzCredentialsResponse:
      type: object
      additionalProperties: false
    BirdSmsCredentialsResponse:
      type: object
      properties:
        workspaceId:
          type: string
        channelId:
          type: string
        navigatorId:
          type: string
        projectId:
          type: string
        locale:
          type: string
        enableMessageTemplates:
          type: boolean
      additionalProperties: false
    SendingRateLimitConfiguration:
      type: object
      properties:
        rateLimit:
          type: integer
          minimum: 1
          maximum: 100
          description: The maximum number of sends allowed in the window.
        windowInMinutes:
          type: number
          exclusiveMinimum: 0
          maximum: 1440
          description: >-
            The length of the sliding window, in minutes. Use a fraction for a
            window under a minute, such as `0.5` for 30 seconds.
      required:
        - rateLimit
        - windowInMinutes
      additionalProperties: false
    PrefixRateLimitConfiguration:
      type: object
      properties:
        enabled:
          type: boolean
          description: >-
            Set to `true` to enforce the limit. When `false` or omitted, the
            limit is not enforced.
        blockSize:
          oneOf:
            - type: integer
              exclusiveMinimum: 0
            - type: string
              const: country
          description: >-
            The phone numbers that share one count. Use `country` for every
            number in a country, or a number for a block of consecutive numbers
            of that size. For example, `10000` covers numbers that match except
            for the last 4 digits. Defaults to `10000`.
        rateLimit:
          type: integer
          exclusiveMinimum: 0
          maximum: 1000
          description: >-
            The maximum number of SMS messages sent in the window. Defaults to
            `50`.
        windowInMinutes:
          type: number
          exclusiveMinimum: 0
          maximum: 1440
          description: The length of the sliding window, in minutes. Defaults to `60`.
        countryCodes:
          $ref: '#/components/schemas/SmsCountryCodes'
          description: >-
            The countries the limit applies to. Omit to apply it to all
            countries. A limit for a specific country replaces an all countries
            limit for numbers in that country.
      additionalProperties: false
    TwilioCredentials:
      type: object
      properties:
        authToken:
          type: string
          writeOnly: true
        messagingServiceSid:
          type: string
        accountSid:
          type: string
      additionalProperties: false
    BirdSmsCredentials:
      type: object
      properties:
        accessKey:
          type: string
          writeOnly: true
        workspaceId:
          type: string
        channelId:
          type: string
        navigatorId:
          type: string
        projectId:
          type: string
        locale:
          type: string
        enableMessageTemplates:
          type: boolean
      additionalProperties: false
    MessageMediaCredentials:
      type: object
      properties:
        apiKey:
          type: string
          writeOnly: true
        apiSecret:
          type: string
          writeOnly: true
        sourceNumber:
          type: string
      additionalProperties: false
    ModicaGroupCredentials:
      type: object
      properties:
        username:
          type: string
        password:
          type: string
          writeOnly: true
      additionalProperties: false
    TnzCredentials:
      type: object
      properties:
        apiKey:
          type: string
          writeOnly: true
      additionalProperties: false
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Use your Authsignal Management API secret key as the username and leave
        the password empty. This key is different from the Server API key and
        can be found in the API Keys section of the Authsignal Portal settings
        page.

````

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