PAL Gate icon

PAL Gate

Consume PAL Portal API

Place → Format Number

AI-generated

Summary

Format a phone number for a specified place.

Inputs

  • placeId (required) — ID of the place for which to format the phone number.
  • phone (required) — Phone number string to be formatted (e.g., 972528888888).
  • requestOptions — Optional request settings such as batching, timeout, proxy, and SSL verification.
  • allowUnauthorizedCerts — Whether to skip SSL certificate validation.
  • proxy — HTTP proxy URL, optionally with authentication credentials.
  • timeout — Request timeout in milliseconds.

Output shape

A single formatted phone number string returned by the PAL Gate API.

Response contains only the formatted number; pagination not applicable.

Examples

Example 1: Format a phone number for place ID 42

placeId: '42', phone: '972528888888'

Example 2: Batch format phone numbers with custom timeout

placeId: '8', phone: '1234567890', requestOptions: { batching: { batchSize: 10 } }, timeout: 15000

Example 3: Ignore SSL errors when formatting number

placeId: '5', phone: '9725551234', allowUnauthorizedCerts: true

Links

Discussion