1. Set your API key
Obtain your partner key from your EmotionTrac contact and store it in your server’s secret manager. The examples use an environment variable:2. Create a draft
Choose a request ID for one intentional form. Save it with the exact request body before calling the API so that a network retry uses the same values.201 Created:
draftId in your system. Show the attorney a Complete EmotionTrac form action that opens editUrl. No EmotionTrac login is required.
3. Choose how to send the link
To have EmotionTrac email the primary attorney, include"sendEmail": true alongside requestId and form on the first request. The response starts with initialEmail.status: "pending"; status lookup shows delivery progress.
Omitting sendEmail or setting it to false suppresses only the initial email. Normal automated reminders still apply. Adding sendEmail: true to a replay changes the original request and returns 409.
4. Check for submission
"status": "submitted" and a submittedAt timestamp. A polling interval of a few minutes is sufficient for this workflow; keep all API calls within the shared rate limit.
Next: add optional fields, handle retries, or review link behavior.