Build a template
- Create a disabled draft with
POST /api/v2/templates/createTemplate. - Read the returned template and save its ID.
- Update the draft with
POST /api/v2/templates/{templateId}. - Review the Agent configuration, onboarding fields, integrations, and defaults as one complete customer setup.
- Test the template on a disposable or designated Agent before enabling it for customer use.
Create an Agent from a template
UsePOST /api/v2/createAgentFromTemplate with the selected Agent account and the template’s declared field values. The operation creates staging and live Agent configurations and publishes the result.
Afterward:
- Read staging and live configuration from the Agent account.
- Confirm the expected template ID and authored values.
- Verify dynamic selections such as voice, model, functions, apps, and integrations against that account’s current catalogs.
- Run a representative test before handing the Agent to a customer.
POST /api/v2/detachAgentFromTemplate preserves the current authored configuration but removes template ownership and edit restrictions. Detach only when the customer should manage the Agent independently.
Migrate an existing fleet
Template revisions can affect many Agents. Always start with a dry run:POST /api/v2/templates/{templateId}/migratewithdryRun:true.- Inspect the returned result, or poll the provided migration status URL when the operation is queued.
- Limit
sectionsToMigrateto the intended configuration areas. - Do not overwrite customer overrides unless that replacement is explicitly approved.
- Run the real migration with
dryRun:falseonly after reviewing the affected Agents. - Re-read representative Agents and test the changed capability.