Flow API
Your contacts, groups, templates and profiles from code: sync a CRM, manage templates and read what was sent.
Manage your Bind Flow account from code: contacts and contact imports, groups, templates, profiles, the message log, analytics, balance and prices.
Sending a single message is not part of this API; it stays in the Channels API. Flow API manages what a send uses (templates, profiles, contacts) and reads what happened (message log, balance).
Conventions
JSON request and response bodies, field names in
camelCase. Ids are always strings. The one exception is a file upload (POST /media), sent asmultipart/form-data.One resource is returned as the object itself. A list is
{ "items": [...], "nextCursor": "..." }.Pagination:
limit(1-100, default 25) andcursor. Pass thenextCursorof a page ascursorto get the next one;nextCursorisnullon the last page. Cursors are opaque and stay valid while rows are added.Create answers
201 Createdwith the resource and aLocationheader (an upload,POST /media, answers itsidand noLocation). Long-running work (a contact import) answers202 Acceptedwith a job resource and aLocationheader to poll. Delete answers204 No Content.Partial update is
PATCHwith only the fields you change (JSON merge patch, RFC 7396): a field you leave out keeps its value.nullclears a field on a contact only; do not sendnullon a group or a template.State changes that have rules of their own (submit or withdraw a template) are
POSTto an action sub-resource, such asPOST /templates/{id}/submit. They answer200with the updated resource, or409with a code when the resource is not in a state that allows it.Errors are
application/problem+json(RFC 9457), see Errors.Retries: a repeated create does not make a duplicate where the name is unique: a template or group with a name already taken is a
409 NAME_TAKEN, and importing a contact that already exists only updates it. Send anIdempotency-Keywith every import and every upload: without one a retry after a timeout imports the list, or stores the file, again.Concurrent edits:
GETof a contact, group or template returns anETag. Send it back asIf-MatchonPATCHand the change is refused with412if someone changed the resource in the meantime (in the portal, for example).If-Matchis optional.Rate limit: per API key, per minute, reads and writes counted apart (300 reads and 60 writes by default). Every call the limiter counts carries
RateLimit-Limit,RateLimit-RemainingandRateLimit-Reset; a call refused before it is counted (a401, a403, a body that cannot be read or is too large, an import refused by its own checks, or a429of the per-address limit below) carries none, and neither does any call while the limiter's store is unavailable (the call then goes through uncounted). Over the limit you get429withRetry-After. Responses also carryX-RateLimit-*headers from a looser per-address limit (1000 per minute); the key's limit is theRateLimit-*one.
Errors
Every error is application/problem+json (RFC 9457), in the shape of Problem. Branch on code, never on title or detail: title is a short summary for people and may change, and detail, when present, says more about this call. A 400 VALIDATION_FAILED names the fields it refused in errors when the problem is in a field; otherwise (JSON that cannot be read, for example) detail says why and there is no errors.
Authentication
Your Flow key, as a bearer token: Authorization: Bearer bnd_flow_....
A Flow key is made in the portal on the API access page, under the Flow keys tab. It works on one brand and has one of two scopes: portal:read or portal:write (everything). Each operation names the scope it needs; every read is portal:read. A call outside the key's scope is a 403 INSUFFICIENT_SCOPE. A key can be limited to a list of IP addresses; a call from anywhere else is a 403 FORBIDDEN. Changes made with the key are recorded under the portal user who created it. The key stops working while that user is disabled, and is deleted when that user loses access to the brand.
This is not the key you send messages with: that one belongs to the Channels API.
Analytics
Sent, delivered and failed messages and their cost, in total and per channel.
Billing
Your balance, allowances and the prices you pay.
Messages
The message log: every message sent, with its status and cost.
Contacts
The contacts of your brand, and the blocklist they are on.
Contact imports
Add or update many contacts at once, and read what was rejected.
Groups
Groups of contacts, the audiences campaigns send to.
- GETGet a group
/groups/{groupId} - GETList groups
/groups - POSTCreate a group
/groups - PATCHUpdate a group
/groups/{groupId} - DELETEDelete a group
/groups/{groupId} - GETList a group's contacts
/groups/{groupId}/contacts - POSTAdd contacts to a group
/groups/{groupId}/contacts - DELETERemove a contact from a group
/groups/{groupId}/contacts/{contactId}
Templates
SMS and WhatsApp templates: create, change, submit for review and withdraw.
- GETGet a template
/templates/{templateId} - GETList templates
/templates - POSTCreate a template
/templates - PATCHUpdate a template
/templates/{templateId} - DELETEDelete a template
/templates/{templateId} - POSTSend a template for review
/templates/{templateId}/submit - POSTWithdraw a template from review
/templates/{templateId}/withdraw
Media
Images, videos and PDFs for the header of a WhatsApp template.
Profiles
Your SMS senders, Viber profiles and WhatsApp accounts.
Ready to send your first message?
We set up your account, sender profiles and API key with you, and help you through the first integration.

