next, previous and results; pass the cursor from the next link to request another page.
- Sending messages and broadcasts and starting flows can contact real people. Bulk contact and message actions include permanent deletion.
- Campaign, campaign event and field updates replace the record, so they need the same fields as a create (TextIt answers 400 otherwise). A group used by a campaign can’t be deleted until the campaign is archived in TextIt.
- Message actions apply only to incoming messages and take the integer
idthatmessages.listreturns. - Updating a contact by URN creates it if the URN is unknown.
messageActions.applyreturnsundefinedon complete success or an object{ failures: [...] }when some messages could not be updated; access the failed IDs throughresult.failures. - Upload media with a
Blobusingmedia.upload; its UUID can be used in message attachments. - Rate-limited requests are retried up to three times, waiting for TextIt’s
Retry-After. Other failures throw Corsair’sApiErrorwith the HTTPstatusand TextIt’s error body; the default handlers do not replay writes. - Outbound resthook subscription management is supported; inbound webhook verification is not included.
- The provider’s globals create example uses
/global.json, which currently returns 404; the indexed plural/globals.jsonroute is used. Its subscriber ID prose says integer while examples show strings, so both are accepted.
- 49 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the TextIt API key before the first call: More: API Key
pnpm corsair setup --plugin=textit --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
archives.list
broadcasts.send
What’s next
API reference
Every
textit.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.