> ## 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 Discovery by NIK

> Return the phone numbers registered to an Indonesian NIK.

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

## Reading the result

| `verificationStatus` | Code | When |
| - | - | - |
| `VERIFIED` | `3` | At least one phone number is found. |
| `REJECTED` | `1` | No phone numbers are found. `data.phoneNumbers` 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-discovery-by-nik
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-discovery-by-nik:
    post:
      tags:
        - Alternative Verifications
      summary: Contact Discovery by NIK
      description: >-
        Returns the phone numbers registered to an Indonesian NIK.


        **Verification status:** `VERIFIED` (3) when at least one phone number
        is found, otherwise `REJECTED` (1).
      operationId: indonesiaContactDiscoveryByNikV3
      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/IdnContactDiscoveryByNikRequest'
            examples:
              default:
                summary: Contact Discovery by NIK request
                value:
                  trustValidationId: 9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f
                  trustFlowId: 123
                  nik: '3174012345670001'
      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/IdnContactDiscoveryByNikResponse'
              examples:
                verified:
                  summary: Phone numbers found
                  value:
                    success: true
                    message: Successfully completed contact discovery
                    data:
                      phoneNumbers:
                        - phoneNumber: '6281234567890'
                          dateRegistered: '2024-06-19'
                        - phoneNumber: '6285712345678'
                          dateRegistered: '2023-01-05'
                    verificationStatus: VERIFIED
                    verificationStatusCode: 3
                    trustFlowId: 123
                    trustValidationId: 9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f
                    verificationType: idn_contact_discovery_by_nik
                    metadata: null
                    createdAt: 2026-12-03 08:15:30+0000
                rejected:
                  summary: No phone numbers found
                  value:
                    success: true
                    message: Successfully completed contact discovery
                    data:
                      phoneNumbers: []
                    verificationStatus: REJECTED
                    verificationStatusCode: 1
                    trustFlowId: 123
                    trustValidationId: 9f1c2e4a-1234-4b5c-8d9e-0a1b2c3d4e5f
                    verificationType: idn_contact_discovery_by_nik
                    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 nik field must be 16 characters.
                errors:
                  nik:
                    - The nik field must be 16 characters.
                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:
    IdnContactDiscoveryByNikRequest:
      type: object
      required:
        - trustValidationId
        - trustFlowId
        - nik
      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.
        nik:
          type: string
          minLength: 16
          maxLength: 16
          pattern: ^[0-9]{16}$
          description: Indonesian National Identity Number (NIK). Exactly 16 digits.
    IdnContactDiscoveryByNikResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Always `true` on a 200 response.
        message:
          type: string
          description: Result message.
        data:
          $ref: '#/components/schemas/IdnContactDiscoveryByNikData'
        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_discovery_by_nik` 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.
    IdnContactDiscoveryByNikData:
      type: object
      properties:
        phoneNumbers:
          type: array
          description: Phone numbers registered to the NIK. Empty when nothing is found.
          items:
            type: object
            properties:
              phoneNumber:
                type: string
                description: Phone number in `628…` format.
              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.