Create Shared Capacity Group
create_capacity_groupCreate a Shared Capacity Group (capacity group) inside one of the customer's Capacity Pools. Provide a name and the capacity_pool_id, plus shared_channels_count and/or metered_channels_count (at least one must be greater than 0; shared channels are drawn from the Capacity Pool's free channels, metered channels bill per use at the pool's metered rate — all amounts are in USD). Shared channels are not a second purchase — they allocate channels already bought into the pool — but metered channels DO bill per use, which is why this tool is confirmation-gated. Raising metered_channels_count on an existing group has the same effect. A pool covers specific countries and DIDs can only be assigned to a group whose pool covers their country — pass the optional country_iso of the DIDs you plan to assign to verify coverage BEFORE the group is created (see covered_country_isos in list_capacity_pools). Returns the created group id and key attributes, or a readable error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Friendly name of the Shared Capacity Group (unique within the pool). | |
| country_iso | No | Optional ISO 3166-1 alpha-2 country code (e.g. "GB") of the DIDs this group is meant for. When given, the tool verifies the Capacity Pool covers that country BEFORE creating the group — a group in a non-covering pool is useless because those DIDs can never be assigned to it. | |
| capacity_pool_id | Yes | UUID of the Capacity Pool to create the group in. | |
| confirmation_token | No | Leave empty on the first call — it returns a preview + confirmation_token and creates nothing; re-call with the token to create the group. | |
| shared_channels_count | No | Number of shared channels drawn from the Capacity Pool for this group. A COUNT, not a boolean: pass N to allow up to N concurrent shared channels, 0 for none (default 0). | |
| metered_channels_count | No | Number of metered (overload) channels for this group. A COUNT, not a boolean: pass N to allow up to N metered channels, 0 to disable metered usage (default 0). |