Base URL
Query Parameters
| Parameter | Description | Example |
|---|---|---|
firstMessage | The prompt you want Endgame to answer (URL-encoded) | firstMessage=what's+the+latest+in+my+book |
template_id | The ID of a saved Endgame template to run—use this instead of firstMessage | template_id=abc123 |
accountId | The Salesforce Account ID you want the thread scoped to | accountId=0015f00000ABC123 |
mode | Force Search or Research mode | mode=research |

Examples
Free-form prompt:A note on URL encoding
Prompts need to be URL-encoded (e.g., spaces become+ or %20). This is standard web behavior, not Endgame-specific. See MDN’s guide to URL encoding for more detail.