Search phone numbers by a list of numbers
POST/v1/businesses/{businessId}/phone-numbers/search
Returns the business's phone numbers that match the supplied list of
E.164 numbers. Use this instead of the GET list when filtering by a
large set of numbers (up to 1000) that wouldn't fit in a query string.
This is a read-only search — it does not change anything. The same
filtering, sorting, and paging as the GET list apply via query
parameters.
Path Parameters
The ID of the business, assigned by Hiya.
9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fQuery Parameters
Return only numbers with this status. Lowercase form of the
PhoneStatus
pending
Possible values: [pending, registered, needs_attention]
Field to sort by.
Possible values: [phoneNumber, displayName, callReason, createdAt, updatedAt]
createdAtSort direction.
asc
desc
Possible values: Value must match regular expression ^[Aa][Ss][Cc]$|^[Dd][Ee][Ss][Cc]$
descPage number, starting at 0.
Possible values: >= 0
0Number of items per page.
Possible values: >= 1 and <= 200
50Body
required
Responses
- 200
- 400
- 401
- 404
- 500
A page of the matching phone numbers.
Response Body
The request is invalid — phoneNumbers is missing, empty, or has
more than 1000 items — or a query parameter is invalid.
Response Body
The API key is missing or invalid.
Response Body
The business doesn't exist, or isn't one of yours — the two are indistinguishable by design.
Response Body
Something went wrong on our side.
Response Body