Phone & voice · Phone Numbers

Submit KYC

Submits a KYC.

POSThttps://api.pozy.ai/v1/phone-numbers/kyc
submitPhoneNumberKyc

Guides: KYC for regulated countries, Phone numbers

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the telephony resource group disabled get 403 resource_group_disabled. Authentication

Request body

application/json, required

  • profileIdstringrequired
  • countrystringrequired
  • submissionIdstring
  • quantityinteger

    Default 1. 1 to 5.

  • reuseboolean
  • reuseOptionIdstring
  • reuseFromstring
  • areaCodestring

    Matches ^\d{1,4}$.

  • phoneNumberstring

    Matches ^\+[1-9]\d{6,14}$.

  • preOrderboolean
  • endUserFirstNamestring
  • endUserLastNamestring
  • valuesmap of string
  • documentsarray of object

    One of:

    Option 1 (3 fields)
    • requirementIdstringrequired
    • filenamestringrequired
    • base64stringrequired
    Option 2 (3 fields)
    • requirementIdstringrequired
    • documentIdstringrequired
    • issuedAtstring (date)
  • addressobject
    10 child fields
    • requirementIdstring
    • country_codestring
    • business_namestring
    • first_namestring
    • last_namestring
    • street_addressstring
    • extended_addressstring
    • localitystring
    • administrative_areastring
    • postal_codestring

Example

curl -X POST "https://api.pozy.ai/v1/phone-numbers/kyc" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "profileId": "6a0b6573846efc28aaa9a3ff",
  "country": "US"
}'

Response

200 on success

  • statusstring

    One of kyc_submitted, kyc_reused, kyc_already_submitted.

  • preOrderboolean
  • phoneNumberobject
    • idstring
    • statusstring
    • countrystring
  • numbersarray of object
    • idstring
    • statusstring
    • phoneNumberstring
    • countrystring
200 response
{
  "status": "kyc_submitted",
  "preOrder": true,
  "phoneNumber": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "status": "active",
    "country": "US"
  },
  "numbers": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "status": "active",
      "phoneNumber": "+14155550123",
      "country": "US"
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Phone Numbers