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

# Submit phone numbers for reputation remediation

> Submit a batch of phone numbers belonging to this enterprise for reputation remediation. The request is accepted asynchronously: this endpoint returns `202` with the persisted request id, then the request transitions through processing states until completion. Use the GET endpoints to poll status and per-number results.

Each phone number must be in E.164 format and belong to this enterprise. A number that already has an in-flight remediation request is rejected.



## OpenAPI

````yaml https://telnyx-openapi-ng.s3.us-east-1.amazonaws.com/number-reputation/remediation.yml post /enterprises/{enterprise_id}/reputation/remediation
openapi: 3.1.0
info:
  title: Telnyx Number Reputation Remediation API
  version: 2.0.0
  description: >-
    Submit phone numbers flagged with poor reputation for remediation and track
    the status of remediation requests for your enterprise.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
paths:
  /enterprises/{enterprise_id}/reputation/remediation:
    post:
      tags:
        - Reputation
      summary: Submit phone numbers for reputation remediation
      description: >-
        Submit a batch of phone numbers belonging to this enterprise for
        reputation remediation. The request is accepted asynchronously: this
        endpoint returns `202` with the persisted request id, then the request
        transitions through processing states until completion. Use the GET
        endpoints to poll status and per-number results.


        Each phone number must be in E.164 format and belong to this enterprise.
        A number that already has an in-flight remediation request is rejected.
      operationId: submitReputationRemediation
      parameters:
        - $ref: '#/components/parameters/EnterpriseId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemediationRequestCreate'
            example:
              phone_numbers:
                - '+19493253498'
                - '+12134445566'
              call_purpose: Appointment reminders for our dental clinic.
              contact_email: ops@example.com
              webhook_url: https://example.com/webhooks/remediation
      responses:
        '202':
          description: Remediation request accepted and persisted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemediationRequestWrapped'
        '400':
          $ref: '#/components/responses/number-reputation_GenericErrorResponse'
        '401':
          $ref: '#/components/responses/number-reputation_GenericErrorResponse'
        '404':
          $ref: '#/components/responses/number-reputation_GenericErrorResponse'
        '409':
          $ref: '#/components/responses/number-reputation_GenericErrorResponse'
        '422':
          $ref: '#/components/responses/number-reputation_GenericErrorResponse'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Telnyx from 'telnyx';


            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });


            const response = await
            client.enterprises.reputation.remediation.submit(
              '4a6192a4-573d-446d-b3ce-aff9117272a6',
              {
                call_purpose: 'Appointment reminders for our dental clinic.',
                phone_numbers: ['+19493253498', '+12134445566'],
                contact_email: 'ops@example.com',
                webhook_url: 'https://example.com/webhooks/remediation',
              },
            );


            console.log(response.data);
        - lang: Python
          source: |-
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            response = client.enterprises.reputation.remediation.submit(
                enterprise_id="4a6192a4-573d-446d-b3ce-aff9117272a6",
                call_purpose="Appointment reminders for our dental clinic.",
                phone_numbers=["+19493253498", "+12134445566"],
                contact_email="ops@example.com",
                webhook_url="https://example.com/webhooks/remediation",
            )
            print(response.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tresponse, err := client.Enterprises.Reputation.Remediation.Submit(\n\t\tcontext.TODO(),\n\t\t\"4a6192a4-573d-446d-b3ce-aff9117272a6\",\n\t\ttelnyx.EnterpriseReputationRemediationSubmitParams{\n\t\t\tCallPurpose:  \"Appointment reminders for our dental clinic.\",\n\t\t\tPhoneNumbers: []string{\"+19493253498\", \"+12134445566\"},\n\t\t\tContactEmail: telnyx.String(\"ops@example.com\"),\n\t\t\tWebhookURL:   telnyx.String(\"https://example.com/webhooks/remediation\"),\n\t\t},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", response.Data)\n}\n"
        - lang: Java
          source: >-
            package com.telnyx.sdk.example;


            import com.telnyx.sdk.client.TelnyxClient;

            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

            import
            com.telnyx.sdk.models.enterprises.reputation.remediation.RemediationSubmitParams;

            import
            com.telnyx.sdk.models.enterprises.reputation.remediation.RemediationSubmitResponse;


            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    RemediationSubmitParams params = RemediationSubmitParams.builder()
                        .enterpriseId("4a6192a4-573d-446d-b3ce-aff9117272a6")
                        .callPurpose("Appointment reminders for our dental clinic.")
                        .addPhoneNumber("+19493253498")
                        .addPhoneNumber("+12134445566")
                        .build();
                    RemediationSubmitResponse response = client.enterprises().reputation().remediation().submit(params);
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

            telnyx = Telnyx::Client.new(api_key: "My API Key")

            response = telnyx.enterprises.reputation.remediation.submit(
              "4a6192a4-573d-446d-b3ce-aff9117272a6",
              call_purpose: "Appointment reminders for our dental clinic.",
              phone_numbers: ["+19493253498", "+12134445566"]
            )

            puts(response)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Telnyx\Client;

            use Telnyx\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API
            Key');


            try {
              $response = $client->enterprises->reputation->remediation->submit(
                '4a6192a4-573d-446d-b3ce-aff9117272a6',
                callPurpose: 'Appointment reminders for our dental clinic.',
                phoneNumbers: ['+19493253498', '+12134445566'],
                contactEmail: 'ops@example.com',
                webhookURL: 'https://example.com/webhooks/remediation',
              );

              var_dump($response);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx enterprises:reputation:remediation submit \
              --api-key 'My API Key' \
              --enterprise-id 4a6192a4-573d-446d-b3ce-aff9117272a6 \
              --call-purpose 'Appointment reminders for our dental clinic.' \
              --phone-number "'+19493253498'" \
              --phone-number "'+12134445566'"
components:
  parameters:
    EnterpriseId:
      name: enterprise_id
      in: path
      description: The enterprise id. Lowercase UUID.
      required: true
      schema:
        type: string
        format: uuid
        example: 4a6192a4-573d-446d-b3ce-aff9117272a6
  schemas:
    RemediationRequestCreate:
      type: object
      additionalProperties: false
      required:
        - phone_numbers
        - call_purpose
      properties:
        phone_numbers:
          type: array
          description: >-
            Phone numbers in E.164 format. Each must belong to this enterprise.
            Maximum 2,000 per request.
          minItems: 1
          maxItems: 2000
          items:
            type: string
            pattern: ^\+[1-9][0-9]{9,14}$
            example: '+19493253498'
        call_purpose:
          type: string
          description: How the numbers are used (free text).
          minLength: 1
          maxLength: 2000
          example: Appointment reminders for our dental clinic.
        contact_email:
          type: string
          format: email
          description: Optional contact email for this remediation request.
          maxLength: 255
          example: ops@example.com
        webhook_url:
          type: string
          format: uri
          description: Optional https:// URL for status notifications.
          maxLength: 2048
          example: https://example.com/webhooks/remediation
    RemediationRequestWrapped:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/RemediationRequest'
    RemediationRequest:
      type: object
      description: Full detail of a remediation request, returned on submit and GET by id.
      required:
        - id
        - status
        - phone_numbers_count
        - phone_numbers_submitted
        - phone_numbers_ineligible
        - call_purpose
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
          example: b7c1f1c0-7a9d-4f0a-9d3e-2f6a1c4b8e21
        status:
          $ref: '#/components/schemas/RemediationStatus'
        phone_numbers_count:
          type: integer
          description: >-
            Total phone numbers in this batch, including any later cancelled.
            May exceed the sum of the per-category result buckets, which omit
            cancelled numbers.
          example: 2
        phone_numbers_submitted:
          type: integer
          description: >-
            Numbers accepted for remediation, i.e. not rejected as ineligible.
            Counts numbers still queued (pending) as well as processed ones.
          example: 2
        phone_numbers_ineligible:
          type: integer
          description: Numbers rejected before submission (e.g. cooldown).
          example: 0
        call_purpose:
          type: string
          example: Appointment reminders for our dental clinic.
        contact_email:
          type:
            - string
            - 'null'
          format: email
          example: ops@example.com
        webhook_url:
          type:
            - string
            - 'null'
          format: uri
          example: https://example.com/webhooks/remediation
        created_at:
          type: string
          format: date-time
          example: '2026-06-01T12:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-06-01T12:05:00Z'
        tier1_completed_at:
          type:
            - string
            - 'null'
          format: date-time
        tier2_completed_at:
          type:
            - string
            - 'null'
          format: date-time
        results:
          description: >-
            Per-category buckets. Populated once results are available. Null
            while the request is still pending.
          anyOf:
            - $ref: '#/components/schemas/RemediationPerNumberResults'
            - type: 'null'
    number-reputation_Errors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/number-reputation_Error'
          description: List of one or more error entries. Order is not significant.
      description: >-
        Canonical Telnyx error envelope. Returned on every 4xx and 5xx response
        from this service. `errors` is non-empty; multiple entries indicate
        multiple distinct problems with the same request (e.g. one entry per
        invalid phone number on a bulk operation).
    RemediationStatus:
      type: string
      description: Customer-facing status of a remediation request.
      enum:
        - pending
        - in_progress
        - completed
        - failed
        - cancelled
      example: in_progress
    RemediationPerNumberResults:
      type: object
      description: >-
        Per-category buckets of phone numbers, populated once results are
        available. Empty lists are kept (not omitted) so consumers can iterate
        without null-checking each key.
      properties:
        remediated:
          type: array
          items:
            type: string
            example: '+19493253498'
        not_flagged:
          type: array
          items:
            type: string
        requires_review:
          type: array
          items:
            type: string
        ineligible:
          type: array
          items:
            type: string
        refused:
          type: array
          items:
            type: string
    number-reputation_Error:
      type: object
      required:
        - code
        - title
        - detail
        - meta
      properties:
        code:
          type: string
          example: '10005'
          description: >-
            Stable numeric Telnyx error catalog id. See `meta.url` for the full
            catalog entry.
        title:
          type: string
          example: Invalid parameters
          description: >-
            Short human-readable category, e.g. `Bad Request`, `Duplicate
            resource`, `Not Found`, `Forbidden`. Treat as advisory only - the
            stable identifier is `code`.
        detail:
          type: string
          example: field required
          description: >-
            Context-specific message describing what went wrong on this
            particular request. May embed offending values; do not rely on it
            for programmatic matching - branch on `code`.
        meta:
          type: object
          required:
            - url
          properties:
            url:
              type: string
              format: uri
              example: https://developers.telnyx.com/docs/overview/errors/10005
            pending_check_ids:
              type: array
              items:
                type: string
                format: uuid
              description: >-
                Set on `422 vetting_checks_incomplete` responses from
                `/admin/dir/{id}/approve` and
                `/admin/phone-number-batches/approve`. Lists the still-pending
                vetting check ids.
            pending_check_codes:
              type: array
              items:
                type: string
              description: >-
                Codes of the pending vetting checks (e.g.
                `loa_signature_valid`).
            pending_check_labels:
              type: array
              items:
                type: string
              description: Human-readable labels of the pending vetting checks.
          description: >-
            Carries `url` linking to the Telnyx error catalog entry for this
            `code`. Useful for forwarding the user to documentation.
        source:
          type: object
          description: Optional pointer at the offending field of the request.
          properties:
            pointer:
              type: string
              example: /body/legal_name
            parameter:
              type: string
              example: page[size]
      description: >-
        A single entry in the canonical Telnyx error envelope. `code` is the
        stable Telnyx error catalog id; the human-readable explanation lives at
        `meta.url`. `detail` is a context-specific message; `source.pointer`
        (when present) names the offending field of the request.
  responses:
    number-reputation_GenericErrorResponse:
      description: >-
        An error occurred. The response carries the standard Telnyx error
        envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/number-reputation_Errors'
          examples:
            validation_error:
              summary: 422 - request body failed validation
              value:
                errors:
                  - code: '10005'
                    title: Invalid parameters
                    detail: field required
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10005
                    source:
                      pointer: /body/legal_name
            bad_request:
              summary: 400 - request rejected by a state guard
              description: >-
                Returned when the request itself is well-formed but the resource
                is in a state that disallows this action (e.g. updating a DIR
                while it is being vetted, or deleting an enterprise that still
                has DIRs in vetting).
              value:
                errors:
                  - code: '10015'
                    title: Bad Request
                    detail: Cannot update DIR in 'verified' status
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10015
            not_found:
              summary: 404 - resource does not exist or is not yours
              value:
                errors:
                  - code: '10009'
                    title: Resource not found
                    detail: Enterprise not found.
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10009
            conflict:
              summary: 409 - request conflicts with current resource state
              value:
                errors:
                  - code: '10021'
                    title: Resource in use
                    detail: >-
                      DIR has 1 active infringement claim(s). Resolve the claim
                      before making this change.
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10021
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````