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

# Повторная отправка кода проверки телефона в том же окне

> Повторная отправка кода проверки телефона в Didit: та же верификация, тот же код и тот же срок действия, до трёх отправок.

Didit повторно отправляет код для Проверки телефона через её последний канал доставки. ID верификации и срок действия не меняются. Опустите `channel` или передайте последний канал доставки. Чтобы переключиться на другой канал, используйте [Перевод Проверки телефона на следующий канал](https://docs.didit.me/ru/standalone-apis/phone-verifications-next.md).

Проверьте `status` в ответе HTTP 200. Успешная повторная отправка возвращает `pending` с количеством отправок и сроком действия. Если доставка заблокирована, верификация завершается, и ответ возвращает `blocked` с `reason`. Повторить можно только верификации, которые ваше приложение запустило с помощью [отправки](https://docs.didit.me/ru/standalone-apis/phone-send.md). Шаг «Проверка телефона» в размещённой сессии верификации здесь доступен только для чтения и возвращает `404 not_found`.

Подождите не менее 30 секунд после последней отправки. Первая отправка и повторные засчитываются в лимит из трёх отправок. Повторная отправка слишком рано или превышение лимита отправок возвращает `429`.

Другой разрешённый канал или код, который Didit не может повторить, возвращает `409 code_not_resendable`. Код, переданный вызывающей стороной, возвращает `409 custom_code_not_resendable`. Истёкшее окно возвращает `410 expired`, а завершённая верификация возвращает `409 already_final`. Если другая отправка на тот же номер занимает очередь, а эта не успевает дождаться своей очереди, ответ: `409 verification_in_progress`. Если Didit не может определить, идёт ли другая отправка, он отвечает `503 phone_send_unavailable` и ничего не отправляет, поэтому попробуйте снова немного позже.


## OpenAPI

````yaml ru/openapi-25.json POST /v3/phone/verifications/{verification_id}/retry/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: Identity verification API. Authenticate with x-api-key header.
servers:
  - url: https://verification.didit.me
security: []
tags:
  - name: Bank Data
    description: >-
      Bank Link, connections, accounts, balances, transactions, institutions and
      coverage. One-time reads of real banks are open to live applications.
      Ongoing access with real banks is not open yet for live applications: it
      is available for sandbox applications with the Didit Test Bank, and opens
      country by country. Nothing is charged in sandbox. A call made with an API
      key needs a key that can reach Bank data: a full-access key can, and a
      scoped key needs `bank-data` in its scopes (read for reads, write for
      operations that change something). A scoped key without it is refused, and
      the call answers `403 bank_data_access_denied`. The account check is the
      exception: it needs write access to sessions, or full access, and not the
      Bank data scope. Raw bank data (accounts, balances, transactions and the
      change feed) also refuses a request that carries no API key.


      Every refusal under `/v3/bank/` except the account check's has the same
      JSON body (`code`, `message`, `request_id`, `field`, `next_action`,
      `retry_after`). A path that is not an operation, an id that is not a UUID
      or an unknown sub-resource answers `404 not_found` for every method, and
      any unexpected error answers `500 internal_error` with a `request_id`.
      Where Bank data is not available, every operation answers the platform's
      standard `404`, exactly as an unknown route does.
paths:
  /v3/phone/verifications/{verification_id}/retry/:
    post:
      tags:
        - Phone
      summary: Send the code again in the same window
      description: >-
        Resend the same code on its last delivery channel. The verification ID
        and expiry stay the same. Wait at least 30 seconds after the last send.
        A verification allows up to three sends, including the first. To change
        channels, use [the next-channel
        endpoint](/standalone-apis/phone-verifications-next). Only verifications
        your application started with `POST /v3/phone/send/` can be changed
        here: a Phone step of a hosted verification session is read-only and
        returns `404 not_found`.
      operationId: postPhoneVerificationRetry
      parameters:
        - name: verification_id
          in: path
          required: true
          schema:
            type: string
            example: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
            format: uuid
          description: The verification.
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhoneVerificationRetryRequest'
            example: {}
        description: >-
          Omit the body to retry on the last delivery channel. If supplied,
          `channel` must match that channel.
      responses:
        '200':
          description: >-
            Inspect `status`. A successful send returns `pending`. A blocked
            attempt ends the verification and returns `blocked` with a `reason`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneVerificationRetryResponse'
              examples:
                Pending:
                  value:
                    verification_id: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
                    status: pending
                    channel: sms
                    sends: 2
                    sends_left: 1
                    expires_at: '2026-11-21T10:05:00Z'
                    charged: true
                Blocked:
                  value:
                    verification_id: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
                    status: blocked
                    channel: sms
                    reason: suspicious
        '400':
          description: >-
            The channel is unavailable or excluded by policy
            (`channel_not_allowed`), the number cannot receive a code
            (`invalid_phone_number`), or the channel cannot send the code
            (`custom_code_unavailable`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneResendChannelError'
              example:
                code: channel_not_allowed
                detail: voice is not allowed for this verification.
        '401':
          description: 'The key is wrong, revoked or expired: `{"detail": ...}`.'
        '403':
          description: >-
            The `x-api-key` header is missing, or the key is scoped and does not
            carry write access to `sessions`: the answer is `{"detail": ...}`.
        '404':
          description: >-
            `not_found`: no verification with this id in your application, or a
            Phone step of a hosted verification session, which this endpoint
            cannot change.
        '409':
          description: >-
            A different allowed channel or a code Didit cannot repeat returns
            `code_not_resendable`. A caller-supplied code returns
            `custom_code_not_resendable`. An ended verification returns
            `already_final`. An unrecognized channel returns `no_next_channel`.
            `verification_in_progress`: another send of this number holds its
            turn and this one could not get it in time; try again shortly.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - detail
                properties:
                  code:
                    type: string
                    enum:
                      - already_final
                      - code_not_resendable
                      - custom_code_not_resendable
                      - no_next_channel
                      - verification_in_progress
                  detail:
                    type: string
              example:
                code: already_final
                detail: The verification already ended.
        '410':
          description: '`expired`: the window has closed: start a new verification.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneVerificationExpiredError'
              example:
                code: expired
                detail: 'The window has closed: start a new verification.'
        '429':
          description: >-
            A retry within 30 seconds of the last send returns `retry_too_soon`.
            The three-send limit returns `max_sends_reached`. The hourly resend
            limit returns `velocity_limit`. A temporary delivery throttle
            returns `PHONE_RATE_LIMITED`. Exceeding 300 write requests per
            minute per API key returns the shared write-limit response with a
            support reference and the budget reset time.
          headers:
            Retry-After:
              description: Seconds to wait when the shared API write limit is reached.
              schema:
                type: integer
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/RateLimitBudgetError'
                  - type: object
                    required:
                      - code
                      - detail
                    properties:
                      code:
                        type: string
                        enum:
                          - retry_too_soon
                          - max_sends_reached
                          - velocity_limit
                          - PHONE_RATE_LIMITED
                      detail:
                        type: string
              examples:
                retry_too_soon:
                  value:
                    code: retry_too_soon
                    detail: Wait 30 seconds before sending the code again.
                max_sends_reached:
                  value:
                    code: max_sends_reached
                    detail: Three sends of the same code is the most in one window.
                Write limit:
                  value:
                    detail: >-
                      Write request rate limit exceeded. You can make up to 300
                      requests per minute.
                    reference: RL-00000000000040008000000000000001
                    limit: 300
                    remaining: 0
                    reset: 1794358860
                    window_seconds: 60
                velocity_limit:
                  value:
                    code: velocity_limit
                    detail: This number reached its resend limit for the hour.
        '503':
          description: >-
            `phone_send_unavailable`: Didit could not tell whether another send
            of this number is under way. Nothing was sent; retry shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneApiError'
              examples:
                Unavailable:
                  value:
                    detail: >-
                      Phone verification is temporarily unavailable. Please try
                      again shortly.
                    code: phone_send_unavailable
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            'https://verification.didit.me/v3/phone/verifications/c9b18621-9f8f-4590-a3b4-f8ebea4baa7d/retry/'
            \
              -H 'x-api-key: YOUR_API_KEY'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Optional retry-safety key you choose for one operation, up to 255
        characters (a UUID works). A request repeated with the same key,
        endpoint, query and body is answered with the first response, same
        status and same body, and runs and bills nothing a second time. The same
        key with another endpoint, query or body returns `409`
        `idempotency_key_reused`, and while the first request is still running,
        `409` `idempotency_key_in_progress` with `Retry-After`. A failed request
        (any `4xx` or `5xx`) is not stored, so you can send it again with the
        same key. Keys belong to your application, whether you call with an API
        key or an access token. See [Retries and
        idempotency](/integration/api-errors#retries-and-idempotency).
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    PhoneVerificationRetryRequest:
      type: object
      properties:
        channel:
          type: string
          description: >-
            The last delivery channel. Requesting a different allowed channel
            returns `409 code_not_resendable`.
          enum:
            - silent
            - sms
            - whatsapp
            - telegram
            - voice
            - rcs
            - viber
            - zalo
            - email
            - push
            - totp
            - passkey
      description: Optional channel confirmation for a same-window retry.
      example: {}
    PhoneVerificationRetryResponse:
      type: object
      properties:
        verification_id:
          type: string
          description: The same verification.
          example: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
          format: uuid
        status:
          type: string
          description: >-
            A successful send remains pending. A blocked send ends the
            verification.
          enum:
            - pending
            - blocked
          example: pending
        channel:
          type: string
          description: The channel this send went by.
          enum:
            - silent
            - sms
            - whatsapp
            - telegram
            - voice
            - rcs
            - viber
            - zalo
            - email
            - push
            - totp
            - passkey
          example: sms
        sends:
          type: integer
          description: Sends of this code so far, the first one included.
          example: 2
        sends_left:
          type: integer
          description: Retries left in this window.
          example: 1
        expires_at:
          type: string
          description: 'Unchanged: a retry keeps the window and the code.'
          format: date-time
          example: '2026-11-21T10:05:00Z'
        charged:
          type: boolean
          description: >-
            True when the channel accepts the retry and returns a send ID.
            Delivery confirmation can arrive later. Check the verification's
            attempt history for the delivery status and price.
          example: true
        reason:
          type: string
          nullable: true
          description: Returned on a blocked send. May be null when no reason is available.
          example: suspicious
      required:
        - verification_id
        - status
        - channel
      description: >-
        A pending retry includes sends, sends_left, expires_at and charged. A
        blocked retry returns the reason instead.
    PhoneResendChannelError:
      type: object
      description: >-
        A resend refused before any code goes out because of the channel or the
        number.
      required:
        - code
        - detail
      properties:
        code:
          type: string
          enum:
            - channel_not_allowed
            - invalid_phone_number
            - custom_code_unavailable
          description: >-
            `channel_not_allowed`: the channel is unavailable or excluded by the
            verification's policy. `invalid_phone_number`: the number cannot
            receive a code. `custom_code_unavailable`: the channel cannot send
            the code.
        detail:
          type: string
    PhoneVerificationExpiredError:
      type: object
      description: 'The verification''s window has closed: start a new verification.'
      required:
        - code
        - detail
      properties:
        code:
          type: string
          enum:
            - expired
        detail:
          type: string
    RateLimitBudgetError:
      type: object
      description: >-
        Returned only for a rate-limit middleware budget refusal. Other 429
        errors, including idempotency conflicts and endpoint-specific caps, do
        not promise these metadata fields.
      required:
        - detail
        - reference
        - limit
        - remaining
        - reset
        - window_seconds
      properties:
        detail:
          type: string
          description: Existing human-readable budget refusal message.
        reference:
          type: string
          pattern: ^RL-[0-9a-f]{32}$
          description: >-
            Opaque support reference: RL- followed by 32 lowercase UUID
            hexadecimal characters.
        limit:
          type: integer
          description: Budget for the exceeded scope; equals X-RateLimit-Limit.
        remaining:
          type: integer
          minimum: 0
          description: Remaining budget, clamped to zero; equals X-RateLimit-Remaining.
        reset:
          type: integer
          format: int64
          description: Window reset time in Unix seconds; equals X-RateLimit-Reset.
        window_seconds:
          type: integer
          description: >-
            Fixed-window duration in seconds, not the remaining wait. Honor
            Retry-After before retrying.
      example:
        detail: >-
          Write request rate limit exceeded. You can make up to 300 requests per
          minute.
        reference: RL-00000000000040008000000000000001
        limit: 300
        remaining: 0
        reset: 1794358860
        window_seconds: 60
    PhoneApiError:
      type: object
      description: >-
        An error answer. The HTTP status says the class of failure; `code` names
        the reason and `detail` says it in words.
      properties:
        code:
          type: string
          description: Machine-readable reason, as each response documents it.
          example: not_found
        detail:
          type: string
          description: What went wrong, in one sentence a user can act on.
          example: No factor with this id in your application.
      required:
        - detail
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your application's API key, from Developers -> API keys in the Business
        Console. The primary key has full access. A named key can be scoped:
        none, read or write per resource, limited to some workflows or to
        approved sessions, to a list of IP addresses, and to an expiry date. 401
        means the key is wrong, revoked or expired; 403 means no key was sent,
        the key has no access to this resource or action, or the request came
        from an address outside its IP list; 404 on a session route means the
        session is outside the key's workflows or statuses. A key without media
        access receives image, video and PDF URLs as null, and a key without
        sessions write receives session links and tokens as null. See
        https://docs.didit.me/console/api-keys.

````

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