> ## 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 の電話番号検証 API は、保留中の電話番号検証を、フォールバックタイマーを待たずに次のチャネルへ移行します。特定のチャネルに移行するには、代わりに `channel` を送信してください。認証 ID と有効期限は変わりませんが、新しいチャネルは以前の送信とは異なるコードを配信する場合があります。同じコードが保証されるのは[再試行](https://docs.didit.me/ja/standalone-apis/phone-verifications-retry.md)のみです。HTTP 200 レスポンスの `status` を確認してください。送信が成功すると `pending` が返されます。配信がブロックされた場合、認証は終了し、レスポンスには `reason` を含む `blocked` が返されます。

最後に使ったチャネルで再送するには、[認証を再試行](https://docs.didit.me/ja/standalone-apis/phone-verifications-retry.md)してください。すでに終了している電話番号検証は `409 already_final` を返します。残りのチャネルがない送信順序は `409 no_next_channel` を返し、電話番号検証で許可されていないチャネルは `400 channel_not_allowed` を返します。受付期間が終了している場合は `410 expired` を返します。送信回数の上限である3回に達すると `429 max_sends_reached` を、1時間あたりの再送上限に達すると `429 velocity_limit` を返します。変更できるのは、アプリケーションが[送信](https://docs.didit.me/ja/standalone-apis/phone-send.md)で開始した電話番号検証だけです。ホスト型検証セッションの電話番号検証ステップは、ここでは読み取り専用であり、`404 not_found` を返します。同じ番号への別の送信が順番を保持しており、このリクエストが時間内に順番を得られない場合は `409 verification_in_progress` を返します。Didit が別の送信が進行中かどうかを判断できない場合は `503 phone_send_unavailable` を返し、何も送信されません。少し時間をおいてから再試行してください。


## OpenAPI

````yaml ja/openapi-25.json POST /v3/phone/verifications/{verification_id}/next/
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}/next/:
    post:
      tags:
        - Phone
      summary: Move to the next channel now
      description: >-
        Move to the next channel now, without waiting for the current step's
        timeout, or jump to `channel`. A successful send keeps the same
        verification ID and expiry, but the new channel may deliver a different
        code than the earlier sends; only [a same-window
        retry](/standalone-apis/phone-verifications-retry) promises the same
        code. When every channel in the order was tried, the endpoint returns
        `409 no_next_channel`; a verification that already ended returns `409
        already_final`. 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: postPhoneVerificationNext
      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/PhoneVerificationNextRequest'
            example:
              channel: sms
        description: The channel to jump to; left out, the next one in the order.
      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/PhoneVerificationNextResponse'
              examples:
                Pending:
                  value:
                    verification_id: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
                    channel: sms
                    status: pending
                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: >-
            An ended verification returns `already_final`. No channel left in
            the order, or an unrecognized `channel`, returns `no_next_channel`.
            A caller-supplied code returns `custom_code_not_resendable`, and a
            code Didit cannot repeat returns `code_not_resendable`.
            `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
                      - no_next_channel
                      - custom_code_not_resendable
                      - code_not_resendable
                      - verification_in_progress
                  detail:
                    type: string
              example:
                code: no_next_channel
                detail: Every channel in the order was tried.
        '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: >-
            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:
                          - max_sends_reached
                          - velocity_limit
                          - PHONE_RATE_LIMITED
                      detail:
                        type: string
              examples:
                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/next/'
            \
              -H 'x-api-key: YOUR_API_KEY' \
              -H 'Content-Type: application/json' \
              -d '{
                "channel": "sms"
              }'
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:
    PhoneVerificationNextRequest:
      type: object
      properties:
        channel:
          type: string
          description: Jump to this channel instead of the next one.
          enum:
            - silent
            - sms
            - whatsapp
            - telegram
            - voice
            - rcs
            - viber
            - zalo
            - email
            - push
            - totp
            - passkey
          example: sms
      description: The channel to move to.
      example:
        channel: sms
    PhoneVerificationNextResponse:
      type: object
      properties:
        verification_id:
          type: string
          description: The verification.
          example: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
          format: uuid
        channel:
          type: string
          description: The channel trying now.
          enum:
            - silent
            - sms
            - whatsapp
            - telegram
            - voice
            - rcs
            - viber
            - zalo
            - email
            - push
            - totp
            - passkey
          example: sms
        status:
          type: string
          description: >-
            A successful send remains pending. A blocked send ends the
            verification.
          enum:
            - pending
            - blocked
          example: pending
        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
    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.