Pre-announce a call
POST/partner/v1/businesses/{businessId}/call-authentication/pre-announce
Declare an outbound call to Hiya immediately before placing it,
identifying the business by its Hiya businessId. A matching call
placed within timeToLiveSeconds is authenticated and/or branded for
the recipient.
This is a real-time, per-call action, called by the originator's calling infrastructure (not the management console).
Path Parameters
The ID of the business, assigned by Hiya. A value that can't be parsed
as a UUID is rejected with 400 INVALID_FIELD; any other value that
doesn't name one of your businesses returns 404.
9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fBody
required-
a value is a nested object, an array or
null—'callTracingInfo.<key>' must be a string, number or boolean; -
the object has too many keys or is too large —
'callTracingInfo' has <keys> keys in <bytes> bytes, over the limit of <maxKeys> keys in <maxBytes> bytes. - Option 1
- Option 2
- Option 3
The calling number — also the display number (CLI). The From value
in a SIP INVITE. Send it in E.164 (with leading +).
+442011111111The number being called. The To value in a SIP INVITE. Send it in
E.164 (with leading +).
+442022222222Validity window, in seconds, counted from when Hiya receives the
request. A matching call placed within it is authenticated and/or
branded. A negative value is rejected with 400 INVALID_FIELD. A
value of 0 is accepted, but the pre-announce is already expired, so
no call matches it.
integer<int64>Possible values: >= 0
15The number from the P-Asserted-Identity SIP header, in E.164, when it differs from the originating number. Bare number only — no display name, SIP URI, or header formatting. Optional.
+442033333333The reason for the call, shown to the recipient only when it matches a call reason you have pre-registered and had approved with Hiya. Any other value is accepted, and the call is still authenticated and/or branded, but no reason is shown. A blank value shows no reason. The 50-character limit counts UTF-16 code units, so a character outside the Basic Multilingual Plane, such as most emoji, counts as two. Optional.
Possible values: <= 50 characters
Appointment remindercallTracingInfoobject
Opaque metadata subdocument stored with the pre-announce message. Hiya accepts arbitrary flat key-value pairs; each value must be a scalar (string, number, or boolean). Hiya stores this object as-is and does not interpret or act on its contents. The structure is shapeless — the example keys are illustrative only and are not validated. Optional.
A request is rejected with 400 INVALID_FIELD when:
property name*object
string
number
boolean
Responses
- 200
- 202
- 400
- 401
- 404
- 500
- 503
The pre-announce was stored in every region responsible for the call.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264ZWhen the validity window closes (accept time plus
timeToLiveSeconds).
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:25.809ZregionalResponsesobject[]required
One entry per AWS region responsible for the call. The country of
terminatingPhone can map to more than one region.
The region, as an AWS region code (for example us-east-1,
eu-west-2, ca-central-1). Not an ISO country code.
us-east-1Whether the pre-announce was stored in the region:
| status | meaning |
|---|---|
| 200 | The pre-announce was stored in the region. |
| 503 | The pre-announce couldn't be stored in the region. |
integer<int32>200Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"expiresAt": "2026-05-28T14:32:25.809Z",
"regionalResponses": [
{
"region": "us-east-1",
"status": 200
}
]
}
The pre-announce was stored in at least one region responsible for the
call, but not in all of them. regionalResponses shows which.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264ZWhen the validity window closes (accept time plus
timeToLiveSeconds).
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:25.809ZregionalResponsesobject[]required
One entry per AWS region responsible for the call. The country of
terminatingPhone can map to more than one region.
The region, as an AWS region code (for example us-east-1,
eu-west-2, ca-central-1). Not an ISO country code.
us-east-1Whether the pre-announce was stored in the region:
| status | meaning |
|---|---|
| 200 | The pre-announce was stored in the region. |
| 503 | The pre-announce couldn't be stored in the region. |
integer<int32>200Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"expiresAt": "2026-05-28T14:32:25.809Z",
"regionalResponses": [
{
"region": "us-east-1",
"status": 200
}
]
}
The request is invalid — for example a businessId that isn't a
UUID, a missing originatingPhone, terminatingPhone or
timeToLiveSeconds, a value that can't be parsed as a phone number,
a terminatingPhone with no country (a non-geographic number such
as +800, +881, +882 or +883), or a callTracingInfo that
isn't flat or is over its limits.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred. A 400 lists every problem found, so
it can also contain UNAUTHORIZED entries next to the field
errors.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body or the businessId path parameter fails validation, or terminatingPhone has no country. |
| UNAUTHORIZED | 401, 400 | The API key is missing or invalid, or you may not pre-announce for this calling number. See the operation's 401 for when. In a 400 it appears next to the field errors that set the status. |
| NOT_FOUND | 404 | No business matching the request is available to you. See the operation's 404 for when. |
| INTERNAL_ERROR | 500, 503 | Something went wrong on our side (500), or the pre-announce couldn't be stored in any region responsible for the call (503) — retry the request. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, UNAUTHORIZED, NOT_FOUND, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'terminatingPhone' must be a valid E.164 number.Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'terminatingPhone' must be a valid E.164 number."
}
]
}
The API key is missing or invalid, or you may not pre-announce for
this calling number: originatingPhone isn't registered with Hiya,
belongs to another business, or doesn't have Secure Branding active.
Secure Branding is active when it is enabled for both the number and
the business and the business is active. Returned as
UNAUTHORIZED; the message says which.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred. A 400 lists every problem found, so
it can also contain UNAUTHORIZED entries next to the field
errors.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body or the businessId path parameter fails validation, or terminatingPhone has no country. |
| UNAUTHORIZED | 401, 400 | The API key is missing or invalid, or you may not pre-announce for this calling number. See the operation's 401 for when. In a 400 it appears next to the field errors that set the status. |
| NOT_FOUND | 404 | No business matching the request is available to you. See the operation's 404 for when. |
| INTERNAL_ERROR | 500, 503 | Something went wrong on our side (500), or the pre-announce couldn't be stored in any region responsible for the call (503) — retry the request. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, UNAUTHORIZED, NOT_FOUND, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'terminatingPhone' must be a valid E.164 number.Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'terminatingPhone' must be a valid E.164 number."
}
]
}
The business doesn't exist or isn't yours, or call authentication
isn't enabled for your account. All of these return the same
NOT_FOUND error.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred. A 400 lists every problem found, so
it can also contain UNAUTHORIZED entries next to the field
errors.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body or the businessId path parameter fails validation, or terminatingPhone has no country. |
| UNAUTHORIZED | 401, 400 | The API key is missing or invalid, or you may not pre-announce for this calling number. See the operation's 401 for when. In a 400 it appears next to the field errors that set the status. |
| NOT_FOUND | 404 | No business matching the request is available to you. See the operation's 404 for when. |
| INTERNAL_ERROR | 500, 503 | Something went wrong on our side (500), or the pre-announce couldn't be stored in any region responsible for the call (503) — retry the request. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, UNAUTHORIZED, NOT_FOUND, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'terminatingPhone' must be a valid E.164 number.Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'terminatingPhone' must be a valid E.164 number."
}
]
}
Something went wrong on our side.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred. A 400 lists every problem found, so
it can also contain UNAUTHORIZED entries next to the field
errors.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body or the businessId path parameter fails validation, or terminatingPhone has no country. |
| UNAUTHORIZED | 401, 400 | The API key is missing or invalid, or you may not pre-announce for this calling number. See the operation's 401 for when. In a 400 it appears next to the field errors that set the status. |
| NOT_FOUND | 404 | No business matching the request is available to you. See the operation's 404 for when. |
| INTERNAL_ERROR | 500, 503 | Something went wrong on our side (500), or the pre-announce couldn't be stored in any region responsible for the call (503) — retry the request. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, UNAUTHORIZED, NOT_FOUND, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'terminatingPhone' must be a valid E.164 number.Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'terminatingPhone' must be a valid E.164 number."
}
]
}
The pre-announce couldn't be stored in any region responsible for the call. Retry the request.
Response Body
Array [
]
An ID Hiya generates for this call. Quote it when contacting support.
5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred. A 400 lists every problem found, so
it can also contain UNAUTHORIZED entries next to the field
errors.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body or the businessId path parameter fails validation, or terminatingPhone has no country. |
| UNAUTHORIZED | 401, 400 | The API key is missing or invalid, or you may not pre-announce for this calling number. See the operation's 401 for when. In a 400 it appears next to the field errors that set the status. |
| NOT_FOUND | 404 | No business matching the request is available to you. See the operation's 404 for when. |
| INTERNAL_ERROR | 500, 503 | Something went wrong on our side (500), or the pre-announce couldn't be stored in any region responsible for the call (503) — retry the request. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, UNAUTHORIZED, NOT_FOUND, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'terminatingPhone' must be a valid E.164 number.Example from Schema
{
"requestId": "5f0b2c8e-6a1d-4c3b-9e7f-2a4d6c8e0b13",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'terminatingPhone' must be a valid E.164 number."
}
]
}