Entities
An organization's configuration and records (agents, workflows, documents, calls) as versioned entities, changed on branches and promoted to main through changesets. Read, create and change them on a branch.
Typical flow: explore the model (describe) -> inspect data (get,
search) -> create (create from YAML; allocate for provision-backed
types that reject raw-YAML create; copy to clone an existing entity
under a fresh id; scaffold to preview a defaults-filled YAML) -> change
(patch replaces a whole field/value; edit replaces text within a
string value) -> stay safe (validate before writing, history/restore
to recover). An explicit branch is required on all writes.
A large text field can be read in full via get with paths=<field>:
one call returning the complete field as line-numbered text (search
returns only matching lines). Type-level tools run through execute_tool;
media results are returned as inline parts along with persisted
saved-file metadata.
Schema: describe returns the entity model graph (fields, enums,
relationship edges, tools); schema returns form-oriented field metadata.
Operations
- Create an entity through its provisioning path.
POST /Platform/entities/{entity_type}/allocate - Suggest values for one allocation parameter.
GET /Platform/entities/{entity_type}/allocate-options - Describe an entity type's allocation parameters.
GET /Platform/entities/{entity_type}/allocate-schema - Get an entity as a display card.
GET /Platform/entities/{entity_type}/{entity_id}/block - Get display cards for several entities of one type.
POST /Platform/entities/blocks - List the entities on each branch.
GET /Platform/entities/branches - Abandon a changeset.
POST /Platform/entities/changesets/{changeset_id}/abandon - Draft a description for a changeset.
POST /Platform/entities/changesets/draft-description - Get a changeset for review.
GET /Platform/entities/changesets/{changeset_id} - List changesets.
GET /Platform/entities/changesets - Open a changeset.
POST /Platform/entities/changesets - Merge an approved changeset.
POST /Platform/entities/changesets/{changeset_id}/merge - Refresh a changeset after its branch moved.
POST /Platform/entities/changesets/{changeset_id}/refresh - Revert a merged changeset.
POST /Platform/entities/changesets/{changeset_id}/revert - Review a changeset.
POST /Platform/entities/changesets/{changeset_id}/review - Get an entity's current commit id.
GET /Platform/entities/{entity_type}/{entity_id}/commit - Get the current commit ids of several entities.
POST /Platform/entities/{entity_type}/commits - Copy an entity to a new id.
POST /Platform/entities/{entity_type}/{entity_id}/copy - Create an entity from YAML.
POST /Platform/entities/{entity_type} - List entities of one type, optionally filtered with HQL.
GET /Platform/entities/{entity_type} - Delete one or more entities.
POST /Platform/entities/{entity_type}/delete - Delete a branch.
POST /Platform/entities/delete-branch - Delete one entity.
DELETE /Platform/entities/{entity_type}/{entity_id} - Get an entity as YAML.
GET /Platform/entities/{entity_type}/{entity_id} - Store an entity from YAML.
PUT /Platform/entities/{entity_type}/{entity_id} - Describe the entity model, or search it by intent.
GET /Platform/entities/entity-graph - Diff two versions of an entity.
GET /Platform/entities/{entity_type}/{entity_id}/diff - Compare entities between two branches.
POST /Platform/entities/diff-branches - Diff two YAML strings.
POST /Platform/entities/diff-yaml - Replace text inside entity fields.
POST /Platform/entities/{entity_type}/edit - List the entity types that have at least one entity on a branch.
GET /Platform/entities/types/presence - Run a tool on one or more entities.
POST /Platform/entities/{entity_type}/{entity_id}/execute-tool - Fast-forward an entity from one branch to another.
POST /Platform/entities/{entity_type}/{entity_id}/fast-forward - Get the form field schema of an entity type.
GET /Platform/entities/schema/{entity_type} - Get who may access an entity.
GET /Platform/entities/{entity_type}/{entity_id}/acl - Change who may access an entity.
POST /Platform/entities/{entity_type}/{entity_id}/acl - List an entity's commit history.
GET /Platform/entities/{entity_type}/{entity_id}/history - List what a record uses and what uses it.
GET /Platform/entities/{entity_type}/{entity_id}/links - List the branches that take live traffic.
GET /Platform/entities/branch-traffic - Send a share of live traffic to a branch.
POST /Platform/entities/branch-traffic - List an entity type's tools: what you can do through it, such as a connected system's lookups (open booking slots, a client's record).
GET /Platform/entities/{entity_type}/tools - List every entity type.
GET /Platform/entities/types - Merge one entity from one branch into another.
POST /Platform/entities/{entity_type}/{entity_id}/merge - Promote a whole branch into another.
POST /Platform/entities/merge-branch - Set entity fields by JSON Pointer.
POST /Platform/entities/{entity_type}/patch - Get display names and labels for entity ids.
POST /Platform/entities/{entity_type}/resolve-names - Restore an entity to an earlier commit.
POST /Platform/entities/{entity_type}/{entity_id}/restore - Preview a new entity with its defaults filled in.
POST /Platform/entities/scaffold/{entity_type} - List every entity type with its field schema.
GET /Platform/entities/schemas - Search one entity's content with a regular expression.
POST /Platform/entities/{entity_type}/{entity_id}/search - List the id and current commit of every entity of a type.
GET /Platform/entities/status/{entity_type} - List ids and current commits for several entity types.
GET /Platform/entities/status-batch - Validate entity YAML without saving it.
POST /Platform/entities/{entity_type}/{entity_id}/validate - Validate one field value.
POST /Platform/entities/{entity_type}/validate-field
Objects
AllocateEntityResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Id of the new entity.commit_id: optional str or null. Its first commit.yaml_content: optional str or null. The new entity as YAML.access: optional EntityAccess or null. Access of the new entity.branch: optional str or null. The branch the entity was stored on.warnings: optional List[str]. Things that went wrong after the entity was created; show them to the user.
AllocateOptionsResponse
options: optional List[AllocateOption]. Suggestions, best first.query: optional str. The query these suggestions answer; a client typing ahead drops a response whose query is no longer the latest.
AllocateSchemaResponse
entity_type: optional str or null. Entity class name.requires_allocation: optional bool. True when the type must be created by allocation rather than from YAML.params: optional List[AllocateParam]. Parameters the allocation accepts.descriptor: optional dict or null. Cost and confirmation facts: pricing, cost_warning, confirm_text, irreversible, and lands_on (the branch the entity lands on whatever branch is passed, when the type declares one).
BranchContentsResponse
branches: optional List[dict]. One per branch: branch, time_based, base_timestamp, entity_count, types (count per entity type), entities (entity_type, entity_id, commit_id, committed_at: when the branch last changed it), repos (repo_id, sha: the code heads on the branch).truncated: optional bool. True when an entities list was cut off by limit (counts are always complete).
BranchTraffic
branch: str. The experiment branch.percent: int. Share of eligible contacts sent to it, 1-100.from_percent: int. Start of its bucket slice (inclusive).to_percent: int. End of its bucket slice (exclusive).condition: optional dict or null. When it applies (a routing condition); unset means always.description: optional str or null. What the experiment tests, as written by whoever started it.started_at: optional datetime or null. When this branch first took live traffic; unset for experiments started before this was recorded.ended_at: optional datetime or null. When it stopped taking traffic; unset while it is running. An ended experiment keeps the share it last had.max_contacts: optional int or null. The most people it takes; the first new person past it ends the experiment. Unset means no limit.contacts: optional int or null. People sent to it so far, counted only when it has a limit.
ChangesetDescriptionDraft
description: str. One to three plain sentences on what the change does and why.truncated: optional bool. The diffs were longer than the drafter reads; every changed item was still listed.
ChangesetListResponse
changesets: optional List[dict]. Changesets, newest first.can_approve: optional bool. You may approve changesets into the target branch (default main) in this organization, your own included, so a draft can go live without waiting for a reviewer.
ChangesetResponse
changeset: dict. changeset_id, from_branch, to_branch, status, description, author, origin_ref, approver, resolutions, plan, code_ranges (one per repository: repo_id, repo_name, base_sha, head_sha, to_sha, merged_sha), created_at, merged_at, members (entity members and, as RepoFile members, the files each code range changes), events, test_evidence.auto_approve_ignored: optional str or null. Why auto_approve was ignored (main is protected and the caller holds no bypass).
DeleteBranchResponse
branch: optional str or null. The branch.dry_run: optional bool. True when nothing was written; the response is a preview.deleted: optional int. Entities removed from the branch (or that would be).entities: optional List[dict]. The entities removed or previewed: entity_type, entity_id.hidden_count: optional int. Entities removed (or that would be) that you cannot read; counted in deleted, not listed.branch_metadata_removed: optional bool. True when the branch itself is gone (unscoped delete only).code_heads_removed: optional int. Repository heads removed from the branch (or that would be); unscoped delete only.
DeleteEntitiesResponse
deleted: optional int or null. Number of entities deleted.ids: optional List[Any] or null. Ids that were deleted.
DiffBranchesResponse
results: optional dict or null. Entity type to only_in_base, only_in_compare, diverged (entity_id, diff, changed_fields) and identical_count.code_ranges: optional List[dict]. Per repository: repo_id, base_sha, compare_sha and whether the two heads are identical.
EntityAclResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id.acl: optional List[str] or null. Principals who may read, besides the owner; None means everyone in the organization.acl_write: optional List[str] or null. Principals who may write; None means the same as the readers.owner: optional str or null. Principal that created the entity.can_write: optional bool. Whether the calling principal may write.locked: optional bool. True when only the owner and the system may write.commit_id: optional str or null. Audit commit written by an ACL change.
EntityBlock
kind: optional str. Always 'entity'.entity_type: str. Entity class name.id: optional str or null. Entity id.title: optional str or null. The display title field's value, else the prettified type name.subtitle: optional str or null. The display subtitle field's value.icon: optional str or null. Icon name from the type's display contract.accent: optional str or null. success, warning, danger or neutral, from the display contract.fields: optional List[dict]. Card fields in display order: name, label, dtype (a dtype name, or entity_ref, entity_ref_list, datetime, boolean, integer, number, string, json), value, and emphasis on the emphasised one. Hidden fields are never present.
EntityBlocksResponse
entity_type: optional str or null. Entity class name.blocks: optional List[EntityBlock]. One card per entity: in request order for ids, filter order otherwise.missing: optional List[str]. Requested ids that are not on the branch or not visible to the caller.truncated: optional bool. True when a filter matched more entities than were returned.
EntityCommitResponse
entity_id: optional str or null. Entity id.commit_id: optional str or null. Current commit; None when the entity is not on the branch.
EntityCommitsResponse
commits: optional Dict[str, str or null]. Entity id to its current commit (None when not on the branch).
EntityDiffResponse
diff: optional str or null. Unified diff; empty when the versions are identical.changed_fields: optional List[str] or null. Top-level fields that differ.commit_id: optional str or null. Right-side (newer) commit.parent_commit_id: optional str or null. Left-side (older) commit.committed_at: optional moment or null. When the right-side commit was made.
EntityEditResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id (single-id calls).commit_id: optional str or null. New commit; None when nothing was written.yaml_content: optional str or null. The entity's YAML after the write.diff: optional List[dict]. Structured diff hunks: kind, text.count: optional int or null. Replacements made (text edits).changed: optional bool. False when the write was a no-op: nothing was stored and commit_id is None.note: optional str or null. Why nothing changed, when changed is false.ignored_changes: optional List[dict]. Requested paths that validation ignored or normalized.access: optional EntityAccess or null. Access after the write (single-id calls).warnings: optional List[str]. Non-blocking problems the entity type reports about what was stored.results: optional List[dict] or null. Per-entity results when several ids were given: id, commit_id, changed, diff, note.
EntityGraphResponse
types: optional List[dict]. Type schemas: name, summary, fields (type_hint, description, enum_values, target_types), tools, allocation, display, branch_promotable, runtime, private_by_default. Empty when a query was given.matches: optional List[dict] or null. Ranked hits for a query: kind (entity_type, field or tool), entity_type, name, description, path, invoke_via.total: optional int or null. Size of the searched corpus, on a query.matched: optional int or null. Number of hits returned, on a query.unknown: optional List[str] or null. Requested names that are not entity types; the valid names are in entity_types.entity_types: optional List[str] or null. Valid entity type names, returned when some requested names are unknown.
EntityHistoryResponse
entity_id: optional str or null. Entity id.entity_type: optional str or null. Entity class name.history: optional List[dict]. One per commit: commit_id, committed_at, committed_by, commit_message.access: optional EntityAccess or null. Current access (it applies to every branch and commit).
EntityLinksResponse
outgoing: optional List[LinkGroup]. Records this one references, by field.incoming: optional List[LinkGroup]. Records that reference this one, by type and field.indexing: optional List[str]. Types whose reference index is still being built: older links from them may be missing.
EntityListResponse
entity_type: optional str or null. Entity class name.items: optional List[EntityResponse]. Matching entities, as YAML.total: optional int. Number of items returned.projected: optional bool. True when the filter had a select: each item holds only the selected fields.
EntityPutResponse
entity_id: optional str or null. Id of the stored entity (the minted slug for slug-backed types).slug: optional str or null. Public slug, for slug-backed types.commit_id: optional str or null. The new commit.canonical_yaml: optional str or null. The YAML as stored, when returned.access: optional EntityAccess or null. Access after the write.ignored_changes: optional List[dict]. Requested fields that were not stored (create): path, reason.
EntityResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id.commit_id: optional str or null. Commit the YAML was read at.yaml_content: optional str or null. The entity as YAML (only the requested fields on a paths read).access: optional EntityAccess or null. Who may read and write the entity; never part of the YAML.computed: optional dict or null. Read-only derived values (live URLs, state), computed per read and never written back.branch: optional str or null. Branch the read was served from.read_branch: optional str or null. The experiment branch whose version handled the live contact that wrote this record: the branch for the experiment group, main for the control group; null when no experiment was involved.view_offset: optional int or null. Line number of the first YAML line in the full view, on a single-path read.values: optional dict or null. The entity's fields as JSON (dtypes as their YAML form), on a values=true read.
EntitySchemaResponse
entity_type: optional str or null. Entity class name.fields: optional List[dict]. Field entries: name, kind, nullable, type_hint, child_fields, and path on search hits; dtype (dtype name), union_dtypes, inner_primitive and read_only when they apply.default_search_fields: optional List[str]. Fields searched by default.computed_fields: optional List[dict] or null. Read-only derived fields (name, kind 'computed', read_only, description); values come in get's computed.path: optional str or null. The requested path; fields is then that subtree.query: optional str or null. The search query; fields is then the ranked hits.total: optional int or null. Number of fields searched, on a query.
EntitySchemasResponse
entity_types: optional List[dict]. One per type: name.schemas: optional dict. Entity type to its field schema list.default_search_fields: optional dict. Entity type to the fields searched by default.
EntitySearchResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id.matches: optional List[dict]. One per match: line (view line number), text, jsonpath (indexed field path, usable as an edit anchor), heading_path and item_anchor when present.context: optional List[dict]. Surrounding lines: line, text, is_match.
EntityStatusBatchResponse
by_type: optional Dict[str, List[Any]]. Entity type to its entities: id, commit_id, yaml_byte_length.
EntityStatusListResponse
items: optional List[dict]. One per entity: id, commit_id.
EntityTypePresenceResponse
branch: str. The branch that was read.present: optional List[str]. Names of the types with at least one entity visible on the branch, sorted.
EntityTypesResponse
entity_types: optional List[dict]. One per type, sorted by name: name, description, display, branch_promotable, runtime, private_by_default, transactional, requires_allocation, identifier_kind, subtypes, parent, create.
EntityValidateResponse
valid: optional bool. Whether the YAML is a valid entity.canonical_yaml: optional str or null. The YAML as it would be stored, when valid.failures: optional List[str] or null. Why the YAML is invalid.
ExecuteToolResponse
toolName: optional str or null. The tool that ran.result: optional Any or null. The full return value; nested media appear as <attachment id="..."/> markers.failure: optional str or null. Why this entity's run failed (several-id calls only).parts: optional List[dict]. Viewable media: kind (image, url, text, file), base64 or url, mime, meta. Images inline; PDF, audio and files as short-lived signed URLs.handle: optional str or null. Content handle of the result, readable through the dtypes resource.type: optional str or null. Type label when the tool returned a model.entity_id: optional str or null. Which entity this result is for (several-id calls).mocked: optional bool or null. True when the tool ran in mock mode.persisted: optional bool or null. For editing tools: true when a new commit was stored, false for a no-op.commit_id: optional str or null. The new commit, when persisted.access: optional EntityAccess or null. Access after a persisted write.
FastForwardResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id.from_branch: optional str or null. Branch whose head was promoted.to_branch: optional str or null. Branch that was moved.fast_forwarded: optional bool. True only when the branch was actually moved.dry_run: optional bool. True when nothing was written.commit_id: optional str or null. Head of to_branch afterwards (or the commit it would move to, on a dry run).diff: optional str or null. Unified diff from to_branch to from_branch.changed_fields: optional List[str] or null. Top-level fields that differ.
ListToolsResponse
entity_type: optional str or null. Entity class name.tools: optional List[dict]. Tools: name, description, args (argument names, '?' marks optional), irreversible, requires_settlement, cost_class, and parameters in full detail.total: optional int. Number of tools the type has.matched: optional int. Number of tools returned.
MergeBranchResponse
from_branch: optional str or null. Branch promoted from.to_branch: optional str or null. Branch promoted into.dry_run: optional bool. True when nothing was written; the response is the plan.partial: optional bool. True when best-effort mode was requested.results: optional List[dict]. One per entity, children before parents: entity_type, entity_id, status, commit_id, conflicts, diff, failure.merged: optional int. Entities merged (or that would be).conflicted: optional int. Entities with conflicts.failed: optional int. Entities that failed.code: optional List[dict]. Per repository merged with the entities: repo_id, repo_name, head_sha, merged_sha (empty on a dry run).up_to_date: optional int. Entities already identical on to_branch.deleted: optional int. Entities the branch deleted, deleted (or that would be) on to_branch.skipped: optional List[dict]. Runtime-only entities (calls, conversations, ...) left on the source branch.skipped_count: optional int. Number of skipped entities.written: optional List[dict]. Entities actually written; non-empty with a failure means the promotion stopped midway.changeset_id: optional str or null. The merged changeset that records this promotion; None on a dry run.failure: optional str or null. Why the promotion was blocked or stopped; None when it completed.
MergeResponse
entity_type: optional str or null. Entity class name.entity_id: optional str or null. Entity id.from_branch: optional str or null. Branch merged from.to_branch: optional str or null. Branch merged into.status: optional str or null. merged, fast_forwarded, up_to_date or conflicts.dry_run: optional bool. True when nothing was written.base_commit_id: optional str or null. Nearest common ancestor commit, when a merge ran.commit_id: optional str or null. New head of to_branch.conflicts: optional List[dict]. One per conflict: path, reason, base, ours (to_branch), theirs (from_branch). Nothing is written while any remain.diff: optional str or null. Unified diff of what the merge changes on to_branch.
ResolveNamesResponse
names: optional Dict[str, str]. Entity id to its display name (the label's title), never the id.labels: optional Dict[str, dict]. Entity id to its label: title, and when set detail, status, tone and when.
ScaffoldEntityResponse
yaml_content: optional str or null. The entity as YAML, ready to edit and create.
ValidateFieldResponse
valid: bool. Whether the value is valid for the field.coerced: optional Any or null. JSON-safe coerced value, when valid.yaml_value: optional str or null. YAML rendering of the coerced value.failures: optional List[str] or null. Why the value is invalid.