Add a statement to the IAM guardrail
Adds one statement to the organization’s guardrail. A statement has an effect, allow unless it says deny, and a list of actions: exact action IDs, wildcards such as number.*, or *. Every entry must match the catalog. Start with an allow of * and add denies.
While the organization has enabled IAM, every request in it must pass the guardrail, the organization owner’s included: a guardrail statement must allow the request’s action, and none may deny it. The seven actions a signed-in user always keeps are exempt, except for the owner. An organization without statements has no guardrail. The guardrail only takes away: it never allows more than roles and API key scopes allow. A request sent into a managed organization with X-Managed-Account-Id must pass the managed organization’s guardrail instead of the sender’s own, when the managed organization has enabled IAM, whether or not the sender’s organization has. The sender’s own guardrail still decides managed_account.impersonate.
A change that would leave the guardrail not allowing iam_guardrail.update answers 422, so the first statement must allow it, for example with an allow of *.
Its action is iam_guardrail.update.
curl --request POST \
--url https://api.telnyx.com/v2/iam/guardrail/statements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
"*"
]
}
'{
"data": {
"id": "b7e2d9f4-1a3c-4f6e-8d20-5c9a0e3f7b61",
"organization_id": "6e9d4c3a-2f8b-4a71-9c05-3b8e1f2d7a64",
"effect": "deny",
"actions": [
"number.delete",
"iam_settings.update"
],
"record_type": "iam_guardrail_statement",
"created_at": "2026-11-26T09:04:37.902615Z",
"updated_at": "2026-11-26T09:04:37.902615Z"
}
}Authorizations
Body
Was this page helpful?
curl --request POST \
--url https://api.telnyx.com/v2/iam/guardrail/statements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
"*"
]
}
'{
"data": {
"id": "b7e2d9f4-1a3c-4f6e-8d20-5c9a0e3f7b61",
"organization_id": "6e9d4c3a-2f8b-4a71-9c05-3b8e1f2d7a64",
"effect": "deny",
"actions": [
"number.delete",
"iam_settings.update"
],
"record_type": "iam_guardrail_statement",
"created_at": "2026-11-26T09:04:37.902615Z",
"updated_at": "2026-11-26T09:04:37.902615Z"
}
}