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

# SetVoiceAgentSMSRepliesAPI turns a voice agent's answering of texts on or off.


> It is the phone number's counterpart to the widget serving status (POST /v1/voice/widgets/{widget}/status): both are switches on a public surface a customer's order paid for, reachable from the system that governs that order rather than enforced inline by Erdo.

The agent is named by its slug in the path, and only the switch changes — the persona, prompt, languages and number are untouched, and so are its calls.




## OpenAPI

````yaml /api/openapi.json post /v1/voice/agents/{slug}/sms-replies
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-09-09'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/voice/agents/{slug}/sms-replies:
    post:
      summary: >
        SetVoiceAgentSMSRepliesAPI turns a voice agent's answering of texts on
        or off.
      description: >
        It is the phone number's counterpart to the widget serving status (POST
        /v1/voice/widgets/{widget}/status): both are switches on a public
        surface a customer's order paid for, reachable from the system that
        governs that order rather than enforced inline by Erdo.


        The agent is named by its slug in the path, and only the switch changes
        — the persona, prompt, languages and number are untouched, and so are
        its calls.
      operationId: POST:mcp.SetVoiceAgentSMSRepliesAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: slug
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                enabled:
                  type: boolean
              type: object
              required:
                - enabled
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  name:
                    type: string
                  phone_number:
                    type: string
                  slug:
                    type: string
                  sms_replies_enabled:
                    type: boolean
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````