Skip to main content

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.
The first successful call returns 201 Created:
Save draftId in your system. Show the attorney a Complete EmotionTrac form action that opens editUrl. No EmotionTrac login is required. 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

After the attorney submits, the response includes "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.