> For the complete documentation index, see [llms.txt](https://doc.youverify.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.youverify.co/know-your-customer-services-kyc/id-data-matching-eidv/south-africa/verify-south-african-phone-number.md).

# Verify South African Phone Number

## SA Phone Number Verification

<mark style="color:green;">`POST`</mark> `{{baseurl}}/v2/api/identity/za/phone`

#### Headers

| Name                                    | Type   | Description      |
| --------------------------------------- | ------ | ---------------- |
| token<mark style="color:red;">\*</mark> | String | API secret token |

#### Request Body

| Name                                               | Type    | Description                                                                        |
| -------------------------------------------------- | ------- | ---------------------------------------------------------------------------------- |
| phoneNumber<mark style="color:red;">\*</mark>      | String  | Users phone Number                                                                 |
| phoneCountryCode<mark style="color:red;">\*</mark> | String  | Users phone number country code                                                    |
| isSubjectConsent<mark style="color:red;">\*</mark> | Boolean | Indicate subject has given consent. <mark style="color:red;">`Must be true`</mark> |

### <mark style="color:yellow;">SA Phone Number Verification</mark>

SA Phone Number is used to verify that a provided South African number exists in the database as well as provide any associating information.

{% tabs %}
{% tab title="SA Phone Number Verification Sample Request" %}

```json
{
    "phoneNumber": "821112110",
    "phoneCountryCode": "+27",
    "isSubjectConsent": true
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Found Response" %}

```json
{
    "success": true,
    "statusCode": 200,
    "message": "success",
    "data": {
        "id": "645bca00d80de606cd7e5acf",
        "parentId": null,
        "status": "found",
        "reason": null,
        "dataValidation": false,
        "selfieValidation": false,
        "phoneCountryCode": "27",
        "mobile": "+27821112110",
        "phoneNumber": "821112110",
        "phoneTypeCode": "2",
        "phoneTypeDescription": "MOBILE",
        "phoneCity": "Countrywide",
        "phoneState": null,
        "phoneZip": null,
        "phoneCounty": null,
        "phoneCountry": "South Africa",
        "phoneCountryCodeISO2": "ZA",
        "phoneCountryCodeISO3": "ZAF",
        "carrier": "Vodacom SA",
        "isPhoneBlocked": false,
        "phoneBlockCode": "0",
        "phoneBlockDescription": "Not blocked",
        "phoneRiskLevel": "medium-low",
        "phoneRiskScore": "300",
        "phoneRiskRecommendation": null,
        "isBlacklistedCountryCode": "NA",
        "isBlackListedPhoneNumber": "NA",
        "isBlackListedPhoneType": "NA",
        "isPhoneNumberValid": true,
        "phoneRiskOutcome": "Medium",
        "isConsent": true,
        "idNumber": "821112110",
        "businessId": "628b38f03ae28a14f52d4bf7",
        "type": "zaPhone",
        "allValidationPassed": true,
        "requestedAt": "2023-05-10T16:44:56.417Z",
        "requestedById": "628b38f13ae28a7b742d4bf9",
        "country": "ZA",
        "createdAt": "2023-05-10T16:44:56.822Z",
        "lastModifiedAt": "2023-05-10T16:44:56.822Z",
        "metadata": {},
        "requestedBy": {
            "firstName": "Onyeka",
            "lastName": "Ijeh",
            "middleName": "",
            "id": "628b38f13ae28a7b742d4bf9"
        }
    },
    "links": []
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Error Response" %}

```json
{
  "success": false,
  "statusCode": 404,
  "message": "You have attempted to get a resource that does not exist.",
  "name": "ResourceNotFoundError",
  "data": {}
}

```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.youverify.co/know-your-customer-services-kyc/id-data-matching-eidv/south-africa/verify-south-african-phone-number.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
