Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Get a phone number

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

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

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/phone_numbers/phone-number
  • Scope notify:read
  • Effect read — nothing is written.
  • Collection phone_numbers

#Request

FieldTypeWhat it is
namestringResource to read. Required.

#Response

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.

#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 "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/phone_numbers/phone-number" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"