Delete the stored secret of a number provider
Changed onDeletes the stored secret of the given number provider, so the provider uses the credentials of the platform environment again (credential_source becomes env, or none when the platform environment has no credential for the provider). This is the recovery path when a stored secret cannot be decrypted. It returns 404 when no request has created a stored setting for the provider yet (a rejected secret request can also create one). Switching from a stored account to the environment account makes the numbers purchased through the stored account impossible to release. Requires the project super admin permission.
Request
- Base URLhttps://api.voipbin.net/v1.0
- URLhttps://api.voipbin.net/v1.0/number_providers/{provider_name}/secret
- 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).
Response
The number provider after the secret was deleted.
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