> ## 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.

# फ़ोन सत्यापन API: हर प्रयास का विवरण प्राप्त करें

> ID से Didit फ़ोन सत्यापन पढ़ें और उसकी वर्तमान स्थिति व हर डिलीवरी प्रयास देखें, जिसमें चैनल, नेटवर्क, रूट, समय और लागत शामिल है।

Didit का Phone Verifications API एक सत्यापन और उसके डिलीवरी प्रयास उसी क्रम में लौटाता है। हर प्रयास में उसका चैनल, रूट, नेटवर्क, डिलीवरी और पढ़े जाने के समय, कीमत और कोई भी त्रुटि शामिल होती है।

`verification_id` send और retry से लौटाया जाता है, और यह वही id है जो [सत्यापन सूची](https://docs.didit.me/hi/standalone-apis/phone-verifications-list.md) लौटाती है। अगर आपके एप्लिकेशन ने [send](https://docs.didit.me/hi/standalone-apis/phone-send.md) से कोई सत्यापन शुरू किया है, तो उसी id का उपयोग [लंबित सत्यापन रद्द करने](https://docs.didit.me/hi/standalone-apis/phone-verifications-cancel.md) या [आपके बैकएंड द्वारा जाँचे गए कोड को स्वीकृत करने](https://docs.didit.me/hi/standalone-apis/phone-verifications-approve.md) के लिए करें। होस्टेड सत्यापन सत्र का Phone चरण यहाँ सूचीबद्ध है और पढ़ा जा सकता है, लेकिन cancel, approve, next और retry उसके लिए `404 not_found` लौटाते हैं।


## OpenAPI

````yaml hi/openapi-25.json GET /v3/phone/verifications/{verification_id}/
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}/:
    get:
      tags:
        - Phone
      summary: One verification with every attempt
      description: >-
        Retrieve one verification and its delivery attempts in order. Each
        attempt includes the channel, status, network, route, delivery
        timestamps and price.
      operationId: getPhoneVerification
      parameters:
        - name: verification_id
          in: path
          required: true
          schema:
            type: string
            example: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
            format: uuid
          description: The verification.
      responses:
        '200':
          description: The verification and its attempts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneVerificationDetail'
              example:
                verification_id: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
                status: verified
                phone_number: '+12025550136'
                country: US
                attempts:
                  - channel: whatsapp
                    status: delivered
                    network: Mobile network A
                    route: Route A
                    error: null
                    silent_result: null
                    sent_at: '2026-11-21T10:00:01Z'
                    delivered_at: '2026-11-21T10:00:03Z'
                    read_at: null
                    expired_at: null
                    charged: true
                    price:
                      amount: '0.0300'
                      carrier: null
                      fee: null
                      final: true
                reference: signup-48221
                tags:
                  flow: signup
                created_at: '2026-11-21T10:00:00Z'
                verified_at: '2026-11-21T10:00:12Z'
        '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 read access to `sessions`: the answer is `{"detail": ...}`.
        '404':
          description: '`not_found`: no verification with this id in your application.'
        '429':
          $ref: '#/components/responses/RateLimitedRead'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X GET
            'https://verification.didit.me/v3/phone/verifications/c9b18621-9f8f-4590-a3b4-f8ebea4baa7d/'
            \
              -H 'x-api-key: YOUR_API_KEY'
components:
  schemas:
    PhoneVerificationDetail:
      type: object
      properties:
        verification_id:
          type: string
          description: The verification.
          example: c9b18621-9f8f-4590-a3b4-f8ebea4baa7d
          format: uuid
        status:
          type: string
          description: Its status.
          enum:
            - pending
            - verified
            - not_delivered
            - expired
            - blocked
            - cancelled
          example: verified
        phone_number:
          type: string
          description: The number.
          nullable: true
          example: '+34600000012'
        country:
          type: string
          description: ISO country code.
          nullable: true
          example: ES
        attempts:
          type: array
          items:
            $ref: '#/components/schemas/PhoneVerificationAttempt'
          description: >-
            One entry per send, in the order the sends went out. A same-window
            retry repeats the last channel, so one channel can appear more than
            once.
        reference:
          type: string
          description: Your reference.
          nullable: true
          example: signup-48221
        tags:
          type: object
          additionalProperties: true
          nullable: true
          description: >-
            The verification's session metadata. Values can include nested JSON
            objects and arrays.
          example:
            flow: signup
        created_at:
          type: string
          description: When it started.
          format: date-time
          example: '2026-11-21T10:00:00Z'
        verified_at:
          type: string
          description: When it was verified.
          nullable: true
          format: date-time
          example: '2026-11-21T10:00:12Z'
      description: One verification with every attempt.
    PhoneVerificationAttempt:
      type: object
      properties:
        channel:
          type: string
          description: The channel this attempt used.
          enum:
            - silent
            - sms
            - whatsapp
            - telegram
            - voice
            - rcs
            - viber
            - zalo
            - email
            - push
            - totp
            - passkey
          example: whatsapp
        status:
          type: string
          description: 'Its status: sent, delivered, read, failed or expired.'
          enum:
            - sent
            - delivered
            - read
            - failed
            - expired
          example: delivered
        network:
          type: string
          description: The mobile network it went through.
          nullable: true
          example: Mobile network A
        route:
          type: string
          description: The route Didit picked.
          nullable: true
          example: Route A
        error:
          type: string
          description: >-
            The reason for a failed attempt, when available. Possible reasons
            include `undelivered`, `unreachable`, `unsupported_network`,
            `channel_closed`, `silent_mismatch` and `silent_retryable`. Other
            reasons can occur.
          example: undelivered
          nullable: true
        silent_result:
          type: string
          description: match, mismatch or failed, for a silent attempt.
          enum:
            - match
            - mismatch
            - failed
            - null
          nullable: true
        sent_at:
          type: string
          description: When it went out.
          format: date-time
          example: '2026-11-21T10:00:01Z'
        delivered_at:
          type: string
          description: When the network reported delivery.
          nullable: true
          format: date-time
          example: '2026-11-21T10:00:03Z'
        read_at:
          type: string
          description: When the channel reported that the recipient read the code.
          nullable: true
          format: date-time
          example: null
        expired_at:
          type: string
          description: When the code ran out before delivery.
          nullable: true
          format: date-time
          example: null
        charged:
          type: boolean
          description: >-
            True when the attempt has been billed or has a nonzero actual price.
            See `status` for the delivery outcome.
          example: true
        price:
          $ref: '#/components/schemas/PhoneVerificationPrice'
      description: One channel tried for a verification.
    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
    PhoneVerificationPrice:
      type: object
      properties:
        amount:
          type: string
          description: What it cost, in USD.
          example: '0.0300'
        carrier:
          type: string
          description: The carrier part, passed on at cost.
          example: null
          nullable: true
        fee:
          type: string
          description: Didit's fee.
          example: null
          nullable: true
        final:
          type: boolean
          description: false until the carrier reports delivery, then the reported price.
          example: true
      description: The price line of one attempt.
  responses:
    RateLimitedRead:
      description: Middleware read budget exceeded. Honor Retry-After before retrying.
      headers:
        Retry-After:
          $ref: '#/components/headers/BudgetRetryAfter'
        X-RateLimit-Scope:
          $ref: '#/components/headers/BudgetXRateLimitScope'
        X-RateLimit-Limit:
          $ref: '#/components/headers/BudgetXRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/BudgetXRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/BudgetXRateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitBudgetError'
          example:
            detail: >-
              GET request rate limit exceeded. You can make up to 600 requests
              per minute.
            reference: RL-00000000000040008000000000000001
            limit: 600
            remaining: 0
            reset: 1794358860
            window_seconds: 60
  headers:
    BudgetRetryAfter:
      description: >-
        Seconds to wait, rounded up to the next window. Present on middleware
        budget refusals.
      schema:
        type: integer
    BudgetXRateLimitScope:
      description: >-
        The scope whose budget was exceeded. Present on middleware budget
        refusals.
      schema:
        type: string
    BudgetXRateLimitLimit:
      description: >-
        Budget for the exceeded scope; equals body limit. Present on middleware
        budget refusals.
      schema:
        type: integer
    BudgetXRateLimitRemaining:
      description: >-
        Remaining budget, clamped to zero; equals body remaining. Present on
        middleware budget refusals.
      schema:
        type: integer
    BudgetXRateLimitReset:
      description: >-
        Reset time in Unix seconds; equals body reset. Present on middleware
        budget refusals.
      schema:
        type: integer
  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.