Skip to Content
Wirebird Docs

External IDs

Use your own IDs for businesses and users. The first session call creates them.

Every session request names a business and a user by your IDs, as externalId. You don't create businesses in Wirebird ahead of time and you don't store Wirebird's IDs.

{
  "business": { "externalId": "company_8812", "name": "Harbor Tile & Floor" },
  "businessUser": { "externalId": "user_51", "role": "owner" }
}

The first call creates, later calls reuse

  • New business externalId: Wirebird creates the business, with the name and timezone you send. It starts with no number; the business sets one up in the Setup view.
  • Known business externalId: Wirebird reuses it. name and timezone are only used on creation; after that, the business manages its own details in Wirebird.
  • Business user: created on first use, and its name, email and role are refreshed on every session call, so they follow your directory.

Keep IDs stable

A new ID is a new, empty business

If the ID you send for a business changes (a migration, a re-keyed database, a prefix you add later), Wirebird sees a brand-new business: no number, no conversations, and it has to go through texting registration again, which takes time and costs money. Use an ID that never changes for the life of the customer, such as your primary key.

Rules for externalId: any non-empty string up to 200 characters, unique per platform (business) or per business (user). Treat them as opaque; don't put names or emails in them.

Removed businesses

A business that has been closed in Wirebird stays closed: session calls for its externalId return 404 not_found, and the ID isn't reused for a new business. Contact us if you need to reopen one.

On this page