Hosted tool

Validate phone

Coming

Check the format of a consented phone number.

phone.validateversion 1

Price

0.01

credits per call

Compute only: upstream charges are not included in this price.

Availability

Coming

Published in the catalog, not yet callable.

Access

Coming

Category Phone & Messaging

Input

{
  "additionalProperties": false,
  "properties": {
    "phone": {
      "maxLength": 32,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "phone"
  ],
  "type": "object"
}

Result

object<{phone:string,valid:boolean,country:string}>

Default fields: phone valid country

Limits

Synchronous deadline15 s
Maximum result65,536 bytes
Result pages1
Maximum upstream read1,048,576 bytes

Example call

Provisional: the invoke contract ships with the execution lane

curl https://haidercode.ai/v1/tools/phone.validate/invoke \
  -H "Authorization: Bearer <HK_KEY>" \
  -H "Content-Type: application/json" \
  -H 'Idempotency-Key: validate-1' \
  -d '{"arguments":{"phone":"…"},"max_credits":"0.05"}'

Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.

phone

Back to the list