BIND

Flow API

Your contacts, groups, templates and profiles from code: sync a CRM, manage templates and read what was sent.

v1.0Download OpenAPI spec

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 as multipart/form-data.

  • One resource is returned as the object itself. A list is { "items": [...], "nextCursor": "..." }.

  • Pagination: limit (1-100, default 25) and cursor. Pass the nextCursor of a page as cursor to get the next one; nextCursor is null on the last page. Cursors are opaque and stay valid while rows are added.

  • Create answers 201 Created with the resource and a Location header (an upload, POST /media, answers its id and no Location). Long-running work (a contact import) answers 202 Accepted with a job resource and a Location header to poll. Delete answers 204 No Content.

  • Partial update is PATCH with only the fields you change (JSON merge patch, RFC 7396): a field you leave out keeps its value. null clears a field on a contact only; do not send null on a group or a template.

  • State changes that have rules of their own (submit or withdraw a template) are POST to an action sub-resource, such as POST /templates/{id}/submit. They answer 200 with the updated resource, or 409 with 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 an Idempotency-Key with every import and every upload: without one a retry after a timeout imports the list, or stores the file, again.

  • Concurrent edits: GET of a contact, group or template returns an ETag. Send it back as If-Match on PATCH and the change is refused with 412 if someone changed the resource in the meantime (in the portal, for example). If-Match is 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-Remaining and RateLimit-Reset; a call refused before it is counted (a 401, a 403, a body that cannot be read or is too large, an import refused by its own checks, or a 429 of 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 get 429 with Retry-After. Responses also carry X-RateLimit-* headers from a looser per-address limit (1000 per minute); the key's limit is the RateLimit-* 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.

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.

Bind console showing an SMS profile going live