Account templates
An account template is a reusable account configuration. You set up risk limits, copiers and features once, save them as a template, and apply the template to as many accounts as you like. Every account you apply it to stays linked to the template. When you change the template later, you can push the change to all linked accounts in one step.
Templates are managed per project on the Templates page.
What a template containsโ
A template carries one or more blocks. You choose which blocks it holds:
| Block | Content |
|---|---|
| Risk limits | The account's risk limits. |
| Copiers | The copiers of the account, each with its source (a master account or a strategy) and its settings. |
| Account features | The features added on the account itself. |
| Copier features | The features added on the copiers, kept per copier source. |
Some things are never part of a template, because they belong to exactly one account:
- Account-bound features: dedicated IP, dedicated IP pool, My Home IP, Telegram account, Telegram Connector, signal provider and signal follower subscriptions, and the Investor Program trader and investor features. They are left out when a template is created and ignored when it is applied, so each account keeps its own.
- Secrets and per-account values inside features: the secrets of the TradingView webhook, the HMAC secret, bearer token and custom headers of the outbound webhook, and the reference balance of the overall target. They are never stored in the template, even if you enter them in the template editor. On apply, the target account keeps the value it already has, and a new TradingView webhook secret is generated when the feature is created.
Creating a templateโ
On the Templates page you have two options:
- Create from existing account: pick an account that is already set up the way you want. Its configuration is copied into the template and the account becomes the template's reference account. The editor uses the reference account only to offer the right symbols in symbol pickers. Applying the template doesn't change the reference account unless you select it as a target yourself; the apply dialog warns you in that case.
- Create blank template: start with all four blocks and no content. A reference account is optional. Without one, you type symbols in by hand, and a few broker-bound feature types (for example proxies) can't be added. You can set or change the reference account later in the editor.
The blocks of a template are fixed when it is created. If the reference account is deleted later, the template simply has no reference account anymore.
You can also Duplicate an existing template. The copy gets the same content and the name suffix "(copy)".
A project can hold up to 100 templates. Template names must be unique within a project (not case-sensitive), and every template needs at least one block.
Editing and revisionsโ
Open a template to edit it. The page shows the current revision, the number of linked accounts and a read-only preview of the template content.
Every time you save a change to the template's content, its revision goes up by one. Changing only the name, the description, the blocks or the reference account doesn't create a new revision.
The History tab lists the saved revisions with their date. Click a revision to preview it and Restore this revision to make it the current content again. Like a save, this creates a new revision only if the content differs from the current one. The last 50 revisions are kept per template.
Who changed a template, and when, is recorded in the project audit log, whether the change was made in the web app, through the API or by an AI assistant.
If two people save changes to the same template's content at the same time, the second save is rejected, so nobody overwrites someone else's change unnoticed. Reload the template and save again. Changes to only the name, description or reference account don't create a revision and aren't checked this way: the last save wins.
Applying a templateโ
You can apply a template:
- from the Templates page with Apply to accounts,
- from the Accounts list with the Apply template button, for several accounts at once,
- from an account's Template menu with Apply template,
- when you create an account, by choosing a template in the account dialog. It is applied as soon as the account is created.
The apply dialog walks you through these steps:
- Accounts and blocks: select the target accounts and which of the template's blocks to apply. Blocks without content are marked "(empty)" and are not selected by default. If you select an empty block, the matching items are removed from the target accounts.
- Symbol resolution: symbols used in the template (for example in features or copier settings) are matched against each target's broker. MetaCopier first looks for the same symbol, then for your project's symbol mappings (respecting their broker filters), then suggests a match. You confirm or pick a symbol yourself where no match is found. Your choices are reused for the other targets.
- Preview: for every account you see what will be created, updated or removed per block.
- Apply: the changes are written account by account with live progress. You can cancel, retry the failed accounts, or export the errors as CSV.
How applying worksโ
Applying a template brings the selected blocks of the account in line with the template. The account's existing items are not wiped and created again:
- Items are matched by their key: risk limits by risk type, copiers by their source account or strategy, account features by feature type (EAs per chart), and copier features by feature type per copier.
- Matching items are updated in place.
- Items that exist only in the template are created.
- Items that exist only on the account are removed.
Blocks you don't select stay untouched.
A few special cases:
- A copier whose source is the target account itself is skipped.
- Copiers that are removed are deleted before new copiers are created. Deleting a copier also removes its copier features.
- Copier features are only applied to copiers whose source exists on the target account, including copiers created in the same run.
- The account is linked to the template only when every selected block was applied successfully. If only the link step failed, use Re-link in the dialog.
- If the browser tab is closed while a template is being applied, the Templates page shows a notice with Resume and Dismiss the next time you open it.
Linked accounts and propagating changesโ
After a successful apply, the account is linked to the template and remembers the revision it received. The account page shows the link (for example "Linked: My template ยท rev 3") in the account details and in the Template menu.
When you change a template, its linked accounts become outdated. The Templates page shows how many linked accounts are behind, for example "(2 outdated)". Click Propagate changes to open the apply dialog with the outdated accounts already selected. If all linked accounts are up to date, all of them are selected so you can re-apply the template. The blocks that were applied last time are preselected. Resume after an interrupted apply also preselects the blocks of that run.
To stop an account from following a template, choose Unlink from template in the account's Template menu. The account keeps its current configuration.
Needs attentionโ
A template is marked Needs attention when it refers to something that no longer exists, for example the master account or strategy of a copier in the template was deleted. The reason is shown on the template. Edit the template and save it to fix the reference; the marker is cleared automatically.
Deleting a templateโ
Click Delete on the template. If accounts are still linked to it, the confirmation tells you how many. Deleting the template removes the link from these accounts; their configuration stays as it is. Deleted accounts don't count as linked.
Using the APIโ
Templates are available in the REST API under /rest/api/v1/projects/{projectId}/templates:
| Method | Path | Description |
|---|---|---|
GET | /templates | List the templates of a project. |
POST | /templates | Create a template. |
GET | /templates/{templateId} | Get a template with its full payload. |
PUT | /templates/{templateId} | Update a template. expectedRevision is required. |
DELETE | /templates/{templateId} | Delete a template. Add force=true to unlink its accounts first. Not needed if only deleted accounts are linked. |
GET | /templates/{templateId}/linkedAccounts | List the linked accounts with their applied revision and, when known, the applied blocks (appliedBlocks). |
GET | /templates/{templateId}/revisions | List the revision history, newest first. Optional limit and offset. |
GET | /templates/{templateId}/revisions/{revision} | Get one revision with its payload. |
PUT | /rest/api/v1/accounts/{accountId}/appliedTemplate | Set or clear the link between an account and a template. |
The API stores templates and their links, it doesn't apply them. Applying a template is done by the web app, which writes the risk limits, copiers and features through the regular endpoints and then calls PUT .../appliedTemplate to record the link. If you apply a template with your own code, do the same: write the configuration first, then set the link.
Template objectโ
{
"name": "Prop firm 100k",
"description": "Risk limits and copier for 100k challenge accounts",
"referenceAccountId": "1530b73e-4dfc-425c-9284-778a6180afef",
"blocks": ["riskLimits", "copiers", "accountFeatures", "copierFeatures"],
"payload": {
"schemaVersion": 1,
"riskLimits": [],
"copiers": [],
"accountFeatures": [],
"copierFeatures": []
},
"expectedRevision": 3
}
name: required, up to 255 characters.description: optional, up to 4096 characters.referenceAccountId: optional. It must belong to the same project. If the account was deleted, it is returned asnull.blocks: any ofriskLimits,copiers,accountFeatures,copierFeatures. At least one is required.payload: a JSON object.riskLimitsholds risk-limit objects,copiersholds copier objects with eitherfromAccountIdorfromStrategyIdas source,accountFeaturesholds feature objects, and eachcopierFeaturesentry names its copier source withsourceKind(accountorstrategy) andsourceIdand lists the features. The objects have the same shape as in the regular risk-limit, copier and feature endpoints.schemaVersion: set automatically if missing. Payloads saved with an older version are migrated when read;compatibilityin the response isCURRENT,AUTO_MIGRATEDorREVIEW_NEEDED.expectedRevision: required onPUT. If it doesn't match the current revision, the update is rejected with409. Read the template again and retry.- Copier sources must belong to the same project. A source that was deleted is accepted, but the template is flagged with
needsAttentionand anattentionReason. - Read-only fields in the response:
id,projectId,revision,linkedCount,compatibility,needsAttention,attentionReason,created,updated,metadataUpdated. The list endpoint also returnsoutdatedCount.
Linking an accountโ
PUT /rest/api/v1/accounts/{accountId}/appliedTemplate
{
"templateId": "7d0c3c3e-5c1b-4d5e-9a63-2f0e1b6c9a11",
"templateRevision": 3,
"meta": {}
}
templateRevision must be between 1 and the template's current revision. meta is an optional JSON object that is stored as is. To unlink, send {"templateId": null} or {}; a request without a body is rejected. The account's appliedTemplate field then shows templateId, templateName, templateRevision, currentRevision and appliedAt.
Error codesโ
A missing or too long name, a too long description or a missing payload is rejected with 400 and a field list, for example {"errors": ["name -> must not be blank"]}. The other errors return one of these codes:
| HTTP | Code | Meaning |
|---|---|---|
| 400 | TEMPLATE_AT_LEAST_ONE_BLOCK_REQUIRED | blocks is empty. |
| 400 | TEMPLATE_PAYLOAD_NOT_AN_OBJECT | payload isn't a JSON object. |
| 400 | EXPECTED_REVISION_REQUIRED | expectedRevision is missing on update. |
| 400 | TEMPLATE_REFERENCE_ACCOUNT_NOT_IN_PROJECT | The reference account belongs to another project. |
| 400 | TEMPLATE_COPIER_SOURCE_INVALID | A copier in the payload has no valid source. |
| 400 | TEMPLATE_COPIER_SOURCE_NOT_IN_PROJECT | A copier source belongs to another project. |
| 400 | TEMPLATE_PER_PROJECT_REACHED_CONTACT_US | The project already has 100 templates. |
| 409 | TEMPLATE_NAME_ALREADY_USED | Another template in the project has the same name. |
| 409 | TEMPLATE_REVISION_MISMATCH | expectedRevision doesn't match the current revision. |
| 409 | TEMPLATE_HAS_LINKED_ACCOUNTS | Accounts that aren't deleted are still linked to the template. Delete with force=true. |
| 404 | TEMPLATE_NOT_FOUND | The template doesn't exist in this project. |
| 404 | TEMPLATE_REVISION_NOT_FOUND | The revision doesn't exist or is no longer kept. |
| 400 | APPLIED_TEMPLATE_BODY_REQUIRED | PUT .../appliedTemplate was sent without a body. |
| 400 | TEMPLATE_AND_ACCOUNT_PROJECT_MISMATCH | The template and the account belong to different projects. |
| 400 | TEMPLATE_REVISION_REQUIRED | templateRevision is missing. |
| 400 | TEMPLATE_REVISION_INVALID | templateRevision is outside 1 to the current revision. |
| 400 | APPLIED_TEMPLATE_META_NOT_AN_OBJECT | meta isn't a JSON object. |
Using an AI assistantโ
The AI tools can list, read, create, update and delete templates and show their revisions and linked accounts. They can't apply a template to an account; use the web app for that.