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

# Contact Identification by Phone Number

> Return the identities (NIKs) registered to an Indonesian phone number.

The response lists every NIK registered to the phone number, with the date each was registered.

## Phone number formats

You can send `phone_number` in any of these formats, up to 20 characters:

* `081234567890`
* `81234567890`
* `6281234567890`
* `+62 812-3456-7890`

## Reading the result

| `verificationStatus` | Code | When |
| - | - | - |
| `VERIFIED` | `3` | At least one identity is found. |
| `REJECTED` | `1` | No identities are found. `data.identities` is empty. |

The same response body is also sent to the Trust Flow's webhook URL, if one is set.


## OpenAPI

````yaml api-reference/openapi.json POST /api/v3/verification/indonesia/contact-identification-by-phone-number
openapi: 3.0.3
info:
  title: IDmeta API
  description: IDmeta verification and integration API.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://{environment-subdomain}.idmetagroup.com
    description: Your environment (replace `{environment-subdomain}`)
    variables:
      environment-subdomain:
        default: integrate
        enum:
          - integrate
          - api.ph
        description: >-
          IDmeta environment subdomain. Use `api.ph` for
          portalph.idmetagroup.com and `integrate` for verify.idmetagroup.com.
security:
  - bearerAuth: []
tags:
  - name: Processes
    description: Verification process endpoints
  - name: Trust Flow Links
    description: Trust Flow link generation endpoints
  - name: Compliance
    description: Compliance verification endpoints
  - name: Government Data
    description: Government data verification endpoints
  - name: Alternative Verifications
    description: Alternative verification and intelligence endpoints
  - name: OCR
    description: Document OCR extraction endpoints
paths:
  /api/v3/verification/indonesia/contact-identification-by-phone-number:
    post:
      tags:
        - Alternative Verifications
      summary: Contact Identification by Phone Number
      description: >-
        Returns the identities (NIKs) registered to an Indonesian phone number.


        **Verification status:** `VERIFIED` (3) when at least one identity is
        found, otherwise `REJECTED` (1).
      operationId: indonesiaContactIdentificationByPhoneNumberV3
      parameters:
        - name: Accept
          in: header
          required: false
          schema:
            type: string
            default: application/json
        - name: Content-Type
          in: header
          required: false
          schema:
            type: string
            default: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/IdnContactIdentificationByPhoneNumberRequest
            examples:
              default:
                summary: Contact Identification by Phone Number request
                value:
                  trustValidationId: 9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f
                  trustFlowId: 123
                  phone_number: '6281234567890'
      responses:
        '200':
          description: >-
            Verification completed. The same body is also sent to the Trust
            Flow's webhook URL, if one is set.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/IdnContactIdentificationByPhoneNumberResponse
              examples:
                verified:
                  summary: Identities found
                  value:
                    success: true
                    message: Successfully completed contact identification
                    data:
                      identities:
                        - nik: '3174012345670001'
                          phoneNumber: '6281234567890'
                          dateRegistered: '2024-06-29'
                    verificationStatus: VERIFIED
                    verificationStatusCode: 3
                    trustFlowId: 123
                    trustValidationId: 9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f
                    verificationType: idn_contact_identification_by_phone_number
                    metadata: null
                    createdAt: 2026-12-03 08:15:30+0000
                rejected:
                  summary: No identities found
                  value:
                    success: true
                    message: Successfully completed contact identification
                    data:
                      identities: []
                    verificationStatus: REJECTED
                    verificationStatusCode: 1
                    trustFlowId: 123
                    trustValidationId: 9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f
                    verificationType: idn_contact_identification_by_phone_number
                    metadata: null
                    createdAt: 2026-12-03 08:15:30+0000
        '400':
          description: A required field is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              example:
                success: false
                message: The phone number field is required.
                errors:
                  phone_number:
                    - The phone number field is required.
                createdAt: 2026-12-03 08:15:30+0000
        '401':
          description: >-
            The bearer token is missing or invalid, or the HMAC signature is
            invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              examples:
                unauthenticated:
                  summary: Missing or invalid token
                  value:
                    message: Unauthenticated.
                invalidHmac:
                  summary: Invalid HMAC signature
                  value:
                    status: false
                    message: Invalid HMAC signature
        '402':
          description: Your company has used up its credit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              example:
                success: false
                message: Insufficient credit to perform this verification.
                error_code: INSUFFICIENT_CREDIT
                plan: <plan>
                createdAt: 2026-12-03 08:15:30+0000
        '403':
          description: The product is not enabled for your company.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              example:
                success: false
                message: Forbidden
                createdAt: 2026-12-03 08:15:30+0000
        '404':
          description: The `trustValidationId` was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              example:
                success: false
                message: Trust Validation Not Found
                errors:
                  trustValidationId:
                    - Trust Validation Not Found
                createdAt: 2026-12-03 08:15:30+0000
        '500':
          description: >-
            The verification service is not configured, or an unexpected error
            occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              examples:
                notConfigured:
                  summary: Service not configured
                  value:
                    success: false
                    message: Verification service is not configured
                    createdAt: 2026-12-03 08:15:30+0000
                failed:
                  summary: Unexpected error
                  value:
                    success: false
                    message: Verification failed
                    createdAt: 2026-12-03 08:15:30+0000
        '502':
          description: >-
            The data source is unavailable, rejected the request, or returned an
            invalid response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              examples:
                unavailable:
                  summary: Data source unavailable
                  value:
                    success: false
                    message: Verification service is temporarily unavailable
                    createdAt: 2026-12-03 08:15:30+0000
                rejected:
                  summary: Data source rejected the request
                  value:
                    success: false
                    message: Verification service rejected the request
                    createdAt: 2026-12-03 08:15:30+0000
                invalid:
                  summary: Invalid response from the data source
                  value:
                    success: false
                    message: Invalid response from the verification service
                    createdAt: 2026-12-03 08:15:30+0000
        '504':
          description: The data source did not return a result within 120 seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdnContactPhoneErrorResponse'
              example:
                success: false
                message: Verification service timed out
                createdAt: 2026-12-03 08:15:30+0000
components:
  schemas:
    IdnContactIdentificationByPhoneNumberRequest:
      type: object
      required:
        - trustValidationId
        - trustFlowId
        - phone_number
      properties:
        trustValidationId:
          type: string
          description: ID of the Trust Validation. It must belong to your company.
        trustFlowId:
          type: integer
          description: ID of the Trust Flow.
        phone_number:
          type: string
          maxLength: 20
          description: >-
            Indonesian phone number. Up to 20 characters. Accepts `0812…`,
            `812…`, `62812…` and `+62 812-…` formats.
    IdnContactIdentificationByPhoneNumberResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Always `true` on a 200 response.
        message:
          type: string
          description: Result message.
        data:
          $ref: '#/components/schemas/IdnContactIdentificationByPhoneNumberData'
        verificationStatus:
          type: string
          enum:
            - VERIFIED
            - REVIEW_NEEDED
            - REJECTED
          description: Verification outcome.
        verificationStatusCode:
          type: integer
          enum:
            - 3
            - 2
            - 1
          description: '`3` = `VERIFIED`, `2` = `REVIEW_NEEDED`, `1` = `REJECTED`.'
        trustFlowId:
          type: integer
          description: Same value as in the request.
        trustValidationId:
          type: string
          description: Same value as in the request.
        verificationType:
          type: string
          description: >-
            Product key. Always `idn_contact_identification_by_phone_number` for
            this endpoint.
        metadata:
          type: object
          nullable: true
          description: Metadata stored on the Trust Validation.
        createdAt:
          type: string
          description: UTC time in `YYYY-MM-DD HH:MM:SS+0000` format.
    IdnContactPhoneErrorResponse:
      type: object
      description: >-
        Error body. `401` token errors return only `message`. `401` HMAC errors
        use `status` instead of `success`.
      properties:
        success:
          type: boolean
          example: false
        status:
          type: boolean
          description: Sent instead of `success` on HMAC signature errors.
        message:
          type: string
          description: Error message.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Field errors. Sent on validation (`400`) and not-found (`404`)
            errors.
        error_code:
          type: string
          description: '`INSUFFICIENT_CREDIT` on `402` errors.'
        plan:
          type: string
          description: Your company's plan. Sent on `402` errors.
        createdAt:
          type: string
          description: UTC time in `YYYY-MM-DD HH:MM:SS+0000` format.
    IdnContactIdentificationByPhoneNumberData:
      type: object
      properties:
        identities:
          type: array
          description: >-
            Identities registered to the phone number. Empty when nothing is
            found.
          items:
            type: object
            properties:
              nik:
                type: string
                description: 16-digit NIK.
              phoneNumber:
                type: string
                description: Phone number.
              dateRegistered:
                type: string
                nullable: true
                description: Date the number was registered, in `YYYY-MM-DD` format.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use `Bearer {your_api_token}` in the Authorization header.

````

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