Update a number provider
Changed onUpdates the enabled, priority and config of the given number provider. Omitted fields keep their current value, and at least one of the three fields is required (an empty body returns 400). A request that removes a config key the provider requires while a secret is stored is rejected with 400. config is merged key by key. A key whose value is an empty string is removed. Only the keys the provider allows are accepted, and they are not secrets. When the provider has no stored setting yet, it is created with the provider defaults for the fields that are not sent. Concurrent updates of the same provider's config are not serialized: the last write wins. Requires the project super admin permission.
Request
- Base URLhttps://api.voipbin.net/v1.0
- URLhttps://api.voipbin.net/v1.0/number_providers/{provider_name}
- Authnone declared
Path parameters
The name of the number provider. Returned from the provider_name field of the GET /number_providers response. Only the providers the platform supports are accepted (for example telnyx).
Request body
Example request
{
"enabled": true,
"priority": 10,
"config": {
"connection_id": "1234567890123456789",
"profile_id": "9876543210987654321"
}
}Response
The updated number provider.
Example response
{
"provider_name": "telnyx",
"enabled": true,
"priority": 10,
"config": {
"connection_id": "1234567890123456789"
},
"has_secret": true,
"key_version": 1,
"credential_source": "db",
"usable": true,
"updated_by": "550e8400-e29b-41d4-a716-446655440000",
"secret_updated_by": "00000000-0000-4000-8000-000000000002",
"tm_update": "2026-01-02T03:04:05.000000Z",
"tm_secret_update": "2026-01-03T04:05:06.000000Z"
}Changes
- info
endpoint added
- info