Request body.
Optionalacl?: {Access control list for the custom object. Supports explicit read and write grants to users, teams, organizations, organization roles, agents, or everyone.
Optionalagent?: stringAgent user ID to set as the object owner. Used when neither team nor user is supplied.
Optionalconfig?: stringConfig ID (cfg_...) that resolves to the target schema. Provide one of type, schema_key, or config.
Optionalfields?: Record<string, unknown>Key-value map of field values for the new object. Must conform to the schema's field definitions. Omit to create an object with all fields at their default or null values.
Optionalorg?: stringOrganization ID (org_...) to associate with the object. Typically required for system-owned objects.
Optionalschema_key?: stringLegacy alias for type (schema lookup_key). Prefer type on new clients. Provide one of type, schema_key, or config.
Optionalsystem?: booleanWhen true, creates a system-owned object with no team, user, or agent owner. Requires elevated API credentials; returns 403 if the caller lacks permission.
Optionalteam?: stringTeam ID (team_...) to set as the object owner. When supplied, takes priority over user and agent.
Optionaltype?: stringSchema type identifier (lookup_key) that defines the object's shape and validation rules. Preferred over the legacy schema_key / config aliases.
Optionalupsert?: booleanWhen true and the schema declares a row_key, updates the existing object at that key for the same owner instead of returning 409 Conflict. Returns HTTP 200 on update and 201 on create.
Optionaluser?: stringUser ID (user_...) to set as the object owner. Used when neither team nor a higher-priority owner is set.
The created (or upserted) custom object.
Delete a custom object
Permanently deletes the custom object identified by object. The caller
must be authenticated and have permission to delete the object.
On success, returns a confirmation payload containing the deleted object's
ID so callers can confirm the deletion without a follow-up fetch.
Attempting to delete an object that does not exist or has already been
deleted returns 404.
Custom object ID (cobj_...) of the object to delete.
Successful response
Retrieve a custom object Returns a single custom object identified by its ID. The authenticated viewer must have visibility access to the object. Returns 404 if the object does not exist, has been deleted, or is not visible to the viewer.
Custom object ID (cobj_...) to retrieve.
Optionalparams: { type?: string }Query parameters.
Optionaltype?: stringSchema type identifier (lookup_key) of the object. Optional; used for routing context only.
The requested custom object.
List custom objects
Returns a paginated list of custom objects visible to the authenticated
viewer, ordered by creation time descending. Results span all ownership
types (team-owned, user-owned, agent-owned, and system-owned) that the
viewer has access to.
Filter by schema type with type (preferred) or the legacy alias
schema_key. Use the row_key param to perform an exact-match partition
lookup. You may additionally supply sort_key to narrow within that
partition — sort_key requires row_key and the request returns 400 if
sort_key is provided alone. Owner filters (team, user, agent,
org) are additive: each accepts an array of IDs (or a single ID, which
is wrapped) and returns objects matching any of the supplied values.
When query is supplied, results are ranked by full-text relevance
(descending ts_rank) rather than creation time. The legacy search
param performs a case-insensitive substring match and is retained for
developer-namespace clients.
Optionalparams: {Query parameters.
Optionalagent?: string[]One or more agent IDs to filter by owning agent. Returns objects owned by any of the supplied agents.
Optionalorg?: string[]One or more organization IDs (org_...) to filter by. Typically used by admins to query system-owned objects in a specific org.
Optionalpage?: numberPage number to retrieve (1-indexed). Defaults to 1.
OptionalpageSize?: numberNumber of objects per page. Defaults to 25; maximum is 100.
Optionalquery?: stringFull-text search string matched against the schema's configured search fields. When supplied, results are ordered by relevance score descending instead of creation time descending.
OptionalrowKey?: stringExact row_key value to match. When supplied, only objects with this partition key are returned.
OptionalschemaKey?: stringLegacy alias for type. Prefer type on new clients. When both are supplied, type wins.
Optionalsearch?: stringCase-insensitive substring search applied across the schema type and serialized field values. Deprecated — prefer query for full-text search. Retained for developer-namespace clients.
OptionalsortKey?: string[]One or more sort_key values to match within the row_key partition. Requires row_key to be set.
Optionalteam?: string[]One or more team IDs (team_...) to filter by owning team. Returns objects owned by any of the supplied teams.
Optionaltype?: stringSchema type identifier (lookup_key) to filter by. Only objects of this type are returned. Alias of schema_key; either name is accepted.
Optionaluser?: string[]One or more user IDs (user_...) to filter by owning user. Returns objects owned by any of the supplied users.
Paginated list of custom objects matching the supplied filters.
Update a custom object
Updates the fields of an existing custom object and returns the updated
object along with its new version number. The authenticated viewer must have
permission to modify the object.
You may supply fields (a full or partial key-value map to merge into the
object), field_ops (granular array operations per field), acl, or any
compatible combination. The same field name must not appear in both
fields and field_ops, which returns 422. Returns 404 if the object does
not exist or has been deleted.
Custom object ID (cobj_...) to update.
Request body.
Optionalacl?: {Updated access control list. Supports full replacement via grants or targeted add/remove operations.
Optionalfield_ops?: Record<string, unknown>Granular array operations to apply per field (e.g. append, prepend, remove). A field must not appear in both fields and field_ops.
Optionalfields?: Record<string, unknown>Key-value map of field values to merge into the object. Only the supplied keys are affected.
Optionaltype?: stringSchema type identifier (lookup_key) of the object. Optional; used for routing context only.
Successful response
Create a custom object Creates a new custom object of the given schema type and returns the persisted object. The caller must be authenticated and authorized to create objects of the specified type. Identify the schema with
type(preferred), or the legacy aliasesschema_key(lookup key) /config(config ID). Exactly one identifier is required; when more than one is supplied,typewins overschema_key, which wins overconfig. Owner resolution follows a priority order: ifteamis supplied the object is team-owned; ifuseris supplied it is owned by that user; ifagentis supplied it is agent-owned; otherwise the object is owned by the authenticated user. Passsystem: trueexplicitly to force system ownership — this requires elevated API credentials and returns 403 if the caller lacks permission. If the schema declares arow_key(and optionally asort_key), you may passupsert: trueto update an existing object at that key instead of receiving a 409 Conflict. The response status is200on an update and201on a new create.