Number Provider¶
Number Provider¶
{
"provider_name": "<string>",
"enabled": <boolean>,
"priority": <integer>,
"config": {
"<string>": "<string>"
},
"has_secret": <boolean>,
"credential_source": "<string>",
"usable": <boolean>,
"updated_by": "<string>",
"tm_update": "<string>"
}
provider_name(String): The name of the carrier, such astelnyx. Returned fromGET /number_providers.enabled(Boolean): Whether the carrier takes part in number purchase.priority(Integer): The purchase order. A lower value is tried first. Ties are ordered byprovider_name.config(Object): The non-secret settings of the carrier, such as the Telnyxconnection_idandprofile_id. Omitted when empty. This is the stored setting only; a value that the stored setting does not have can be filled from an environment variable when the provider is used (see the overview), and the filled value is not shown here.has_secret(Boolean): Whether the secret of the carrier is present in the environment of the platform. The secret itself is never returned.credential_source(enum string): Where the credentials come from. See Credential Source.usable(Boolean): Whether the carrier can currently serve: it is enabled, has its secret in the environment, and has theconfigkeys it requires (twilioneedssidandtrunk_sid). A carrier that is usable and enabled takes part in the purchase.updated_by(UUID): The agent who last changedenabled,priorityorconfig. Returned fromGET /agents. Omitted when never changed.tm_update(String, ISO 8601): The time of the last change of the setting. Omitted when never changed.
Example
{
"provider_name": "telnyx",
"enabled": true,
"priority": 10,
"config": {
"connection_id": "1234567890123456789"
},
"has_secret": true,
"credential_source": "env",
"usable": true,
"updated_by": "550e8400-e29b-41d4-a716-446655440000",
"tm_update": "2026-01-02T03:04:05.000000Z"
}
Credential Source¶
Value |
Description |
|---|---|
|
The secret variable of the carrier ( |
|
The secret variable is not set (or is empty or an unresolved placeholder). The carrier is not usable until it is set. |
|
Not returned. A secret is read from the environment only. |
|
Not returned. A secret is read from the environment only. |
Update request¶
{
"enabled": <boolean>,
"priority": <integer>,
"config": {
"<string>": "<string>"
}
}
enabled(Boolean, optional): Whether the carrier takes part in number purchase.priority(Integer, optional): 0 to 1000000. A lower value is tried first.config(Object, optional): Merged key by key. A key with an empty string value is removed. At most 8 keys, a key up to 32 bytes and a value up to 256 bytes. Telnyx acceptsconnection_idandprofile_id; Twilio acceptssid(the account SID) andtrunk_sid(the Elastic SIP Trunk that receives the calls of the purchased numbers).
At least one field is required. Omitted fields keep their current value.