You need an API key. Get it from Behavior → Channels → Email →
Settings.
If you have a backend, send requests from there to keep your API key private.
Client-side usage (e.g. from Webflow) is possible, but it exposes your bearer
API key in the browser. Prefer a backend or proxy in production. If you suspect
the key is exposed, regenerate it immediately.
Endpoint
- Header:
Authorization: Bearer YOUR_API_KEY - Query parameter:
?apiKey=YOUR_API_KEY
Quick start
application/json is also accepted if you prefer, send a JSON body with
message, email, and a variables object. FormData is recommended because
it also supports file attachments.Response
Success (200):Fields
Required
Recommended
Attachments
Append one or more files asattachments fields:
Custom variables
Any field prefixed withvariables. is stored on the ticket and visible to
agents in the portal.
Salesforce integration
Link Typewise tickets to Salesforce cases so resolution syncs back to your CRM.The Form API works without Salesforce connected. To sync resolved tickets back
to Salesforce, connect it via Salesforce
OAuth.
Case ID
Pass your Salesforce Case ID (18-character format) asvariables.crmTicketId.
This field controls what happens when the ticket resolves:
- With
crmTicketId, Typewise updates the existing Salesforce case - Without
crmTicketId, Typewise creates a new Salesforce case
Display fields
These variables appear in the agent portal for reference. They don’t affect sync.Example
Add these fields to the quick start script:See also
- Set up email, configure email sending and receiving
- Salesforce OAuth. connect Salesforce as an integration