Create a priority
/prioritiesCreates a channel priority. Channels sharing a priority (and type) form a pool; ascending priority is the send-time waterfall. The first priority created for a key becomes its default unless is_default: false is set.
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Body parameters
JSONnameoptionalstringis_defaultoptionalbooleanMake this the key's default priority. Defaults to true for the key's first priority.
channelsRequiredstring | object[]Channels in the priority. Each item is a channel id string or { channel_id, priority }. Channels sharing a priority must be the same type.
channelsRequiredstring | object[]Channels in the priority. Each item is a channel id string or { channel_id, priority }. Channels sharing a priority must be the same type.
Array of string | object
object
channel_idRequiredstringpriorityoptionalintegersettingsoptionalPrioritySettingsPatchSettings to change. A setting set to null returns to the owner's default; unknown keys are rejected with 422 invalid_settings.
settingsoptionalPrioritySettingsPatchSettings to change. A setting set to null returns to the owner's default; unknown keys are rejected with 422 invalid_settings.
on_banned_stickyoptionalstring | null"switch_number""error"nullstepsoptionalobject | nullReplaces every step rule; null clears them. A rule must name a step the priority's channels have, so send steps together with channels when renumbering steps; otherwise 422 invalid_settings.
Returns
dataoptionalPriority
dataoptionalPriorityidoptionalstringPriority id (priority_...).
nameoptionalstring | nullis_defaultoptionalbooleanWhether this is the key's default priority (used by the agnostic send).
channelsoptionalPriorityChannel[]
channelsoptionalPriorityChannel[]Array of PriorityChannel
channel_idRequiredstringChannel id (ch_...).
typeoptionalstring"blooio""twilio""whatsapp""whatsapp_business""rcs_business""amb""sms""voice"addressoptionalstring | nullThe channel's real-world address (phone number for numbered channels).
aliasoptionalstringOrganization-wide alias, when the channel has one (Apple Messages for Business / RCS Business).
priorityRequiredintegerTier (drag order). Lower runs first; same priority + same type = a pool.
settingsoptionalPrioritySettingsHow sends through this priority behave. Reads return every setting, with the owner's default for any left unset.
settingsoptionalPrioritySettingsHow sends through this priority behave. Reads return every setting, with the owner's default for any left unset.
on_banned_stickyoptionalstringWhen the number a contact's conversation is on gets banned: switch_number sends from another number in the pool (and keeps the contact there), error fails the send with 409 sticky_number_unavailable. Defaults to switch_number for API keys and error for integrations.
"switch_number""error"stepsoptionalobjectRules for individual steps, keyed by step number (the channels' priority). A step with no entry has no rule.
created_atoptionalintegerupdated_atoptionalintegerResponse codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X POST https://api.blooio.com/v4/priorities \{ "data": { "id": "obj_a1b2c3d4", "name": "Jane Doe", "is_default": true, "channels": [ { "channel_id": "ch_a1b2c3d4", "type": "blooio", "address": "123 Main St", "alias": "string", "priority": 1 } ], "settings": { "on_banned_sticky": "switch_number", "steps": {} }, "created_at": 0, "updated_at": 0 }}