Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Probe a phone number

ProbePhoneNumber: existing provider-managed lines; execution credentials are transient.

ProbePhoneNumber: existing provider-managed lines; execution credentials are transient.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/phone_numbers/phone-number:probe
  • Scope notify:write
  • Effect write — a successful call changes state.
  • Collection phone_numbers

#Request

FieldTypeWhat it is
namestringConnected line. Required.
start_daystringFirst provider-local calendar day, YYYY-MM-DD. Required.
end_daystringLast day inclusive; at most one day after start_day. Required.
provider_session_tokenstringTransient provider session. Required. Never returned again.

#Response

FieldTypeWhat it is
phone_numberPhoneNumberConnected line after readback.
receiptsPhoneNumberReceipt[]Provider-backed voicemail receipts.

#PhoneNumber

FieldTypeWhat it is
namestringThe resource name.
uidstringImmutable pnum_ identifier. Output only.
metaResourceMetaResource metadata.
specPhoneNumberSpecThe connected line and desired voicemail route. Required.
statusPhoneNumberStatusAuthoritative observations, with route application separate from incoming verification. Output only.

#PhoneNumberReceipt

FieldTypeWhat it is
provider_call_idstringProvider's stable call identifier, scoped to this connected line.
provider_datestringOriginal provider time. A timezone-free string is not a verified timestamp.
receive_timetimestampSet only when the provider timestamp carries an established offset.
generationint64Applied route generation attributable to this receipt, or zero.
audio_sha256stringSHA-256 of the exact provider recording bytes.
inbound_emailstringIntended Notify mailbox's inbound email holding an identical attachment.
verifiedboolIncoming proof; never true from configuration alone.
path_digeststringSafe hash of the actual call-path configuration at observation.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#PhoneNumberSpec

FieldTypeWhat it is
phone_numberstringExisting E.164 number, verified against authenticated provider inventory. Required.
providerstringProvider adapter; currently switchboard_free. Required.
voicemailPhoneVoicemailRouteDesired route, admitted only through applyRoute with a durable operation id.

#PhoneNumberStatus

FieldTypeWhat it is
observed_generationint64Generation represented by these observations. Output only.
conditionsCondition[]Connected, RouteApplied and IncomingVerified are independent conditions. Output only.
provider_principalstringOpaque hash of the provider-accepted session principal; never its login name. Output only.
provider_line_idstringImmutable provider line identity. Output only.
provider_number_idstringImmutable provider number identity. Output only.
observed_voicemailPhoneVoicemailRouteLast provider readback, independent of desired state. Output only.
applied_generationint64Generation confirmed by provider readback. Output only.
incoming_verified_generationint64Generation with a scoped incoming voicemail recording delivered to its intended mailbox. Output only.
last_errorstringSafe error classification; never a provider body or credential. Output only.
observed_path_digeststringSafe hash of the full last-observed provider call-path configuration. Output only.
applied_path_digeststringIncoming-proof baseline, cleared on observed external path changes. Output only.

#PhoneVoicemailRoute

FieldTypeWhat it is
enabledboolWhether voicemail is enabled. Required.
delay_secondsint32Provider wait before offering voicemail, in seconds; at most 600. Forced transfer is separate provider configuration and is preserved. Required.
email_addressstringIntended recording-delivery address. Required.

#Condition

FieldTypeWhat it is
typestringThe condition type, for example Ready.
statusConditionStatusWhether the condition holds. One of true, false, unknown.
observed_generationint64The generation this observation was made against.
reasonstringA machine-readable UpperCamelCase reason.
messagestringA customer-safe human-readable message.
severitySeverityHow severe a FALSE condition is. One of info, warning, error.
transition_timetimestampWhen status last changed.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/phone_numbers/phone-number:probe" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_day":"…","provider_session_token":"…","start_day":"…"}'