> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the ontology summary

> Whether the organization has a model, its version and its template lineage.



## OpenAPI

````yaml ontology/openapi.json GET /v1/object-model
openapi: 3.1.0
info:
  description: >-
    An organization's records, facts and figures.


    **Beta.** Every operation is `x-stability: beta`: paths, fields and codes
    may still change before v1 is declared stable. From then on, changes within
    v1 are additive only — new operations, optional fields, response fields,
    enum values and error codes — so a client must ignore fields and values it
    does not know. Anything else needs a new version or a six-month deprecation
    announced with Deprecation and Sunset headers.


    ## Idempotency


    Every write needs an `Idempotency-Key` header: 1–255 printable ASCII
    characters, one key per logical write, sent again unchanged on every retry
    of that write. Reads, the read-only POSTs (`/record-search`,
    `/records/{type_id}/query`, `/facts/query`, `/figures/query`,
    `/figures/explain`) and dry runs (`dry_run: true`) need none and are never
    recorded. A write without one is refused with 400
    `idempotency_key_required`.


    A key belongs to the organization and the person the API key acts for, so
    two of one person's API keys retrying one write agree; another person's
    request under the same key is their own. The API records the request — the
    method, the route, the path parameters, the body as parsed (JSON key order
    and spacing do not matter) and any `If-Match` — and its answer:


    - **The same key and the same request, finished**: the recorded answer again
    — status, body, `Object-Model-Version` and `X-Request-Id` — with
    `Idempotent-Replayed: true`. Nothing runs again, and an `If-Match` the
    original carried is not checked again (the original's own success moved the
    version it named).

    - **The same key and the same request, still running**: 409
    `request_in_progress` with `Retry-After`.

    - **The same key and a different request**: 409 `idempotency_key_reused`.
    Use a new key for a new request.


    A replay is authorized like any request first: the API key must still be
    valid and carry the route's scope, and the rate limit counts it.


    **Retention.** A finished write answers its replays for 24 hours; after that
    the key is free again and a request under it runs. A request still running
    holds its key for as long as the API waits for it plus 30 seconds. Each
    write says, under **Re-sent under the same Idempotency-Key**, what a request
    sent again after that gets — past the 24 hours, or after a 504 ("past the
    replay window"). Most writes still recognize their key then, and are not
    made twice.


    **What is recorded.** Every answer the request got, refusals included: a 422
    for an action that stopped part way replays with what it committed, so a
    retry never silently writes more. A 403 for a missing permission, a 5xx, a
    503 and a 504 are not recorded, because none says what was committed: a
    retry with the same key runs again, and the write's own key keeps it from
    being made twice. After a 504 the request may still be running, so a retry
    within its hold hears `request_in_progress`. If the record cannot be written
    or read, the write is not run: 503 `idempotency_unavailable` with
    `Retry-After`.


    **A lost response.**


    ```http

    POST /v1/object-model/records/company

    Idempotency-Key: create-acme-2026-11-12


    {"values": {"name": "Acme"}}

    ```


    The connection drops before the answer arrives. The client sends the same
    request with the same key:


    ```http

    HTTP/1.1 200 OK

    Idempotent-Replayed: true

    X-Request-Id: 7f3a…   (the original request's)


    {"written_id": "6650…", "disposition": "created", "records": […]}

    ```


    **A concurrent duplicate.** A second copy arrives while the first is still
    running:


    ```http

    HTTP/1.1 409 Conflict

    Retry-After: 2


    {"status": "failed", "code": "request_in_progress", "error": "a request with
    this Idempotency-Key is still running; retry after it finishes to get its
    answer"}

    ```


    Retried after it finishes, it gets the first copy's answer with
    `Idempotent-Replayed: true`.


    **The generic endpoint** (`POST /v1/object-model/{object_model_id}/request`,
    the older endpoint these routes replace) takes `Idempotency-Key` optionally:
    without one a request runs every time it is sent; with one it is recorded
    and replayed as above. The model create (`POST /v1/object-model`) needs
    none: an organization has one model, and a second create is refused.
  title: VectorShift Object Model API
  version: '1'
servers:
  - url: https://api.vectorshift.ai
security: []
paths:
  /v1/object-model:
    get:
      tags:
        - schema
      summary: >-
        Whether the organization has a model, its version and its template
        lineage.
      description: >-
        Whether the organization has a model, its version and its template
        lineage.
      operationId: get_model_summary
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/object_model_DescribeResult'
          description: Answered.
          headers:
            Object-Model-Version:
              description: The model version the request was served under.
              schema:
                type: integer
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: >-
            Malformed JSON, an unknown field, an unknown query parameter, or one
            naming a field the route fixes.
          headers:
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: Missing, invalid or expired API key.
          headers:
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: >-
            The key lacks the scope (`scope_required`), the person lacks the
            permission (`forbidden`), or a feature the request needs is not
            enabled for the organization (`not_enabled`).
          headers:
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: >-
            No such record, or one this caller cannot see — the same answer on
            purpose.
          headers:
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: >-
            Understood and declined: a filter, cursor or parameter the read
            can't take.
          headers:
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: Rate limited. Retry-After says when to try again.
          headers:
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
        '504':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Failure'
          description: No answer in time. Retry the request.
          headers:
            X-Request-Id:
              description: >-
                The request's id: quote it when you contact support. Absent on a
                request refused before it ran, such as one with a bad key or a
                malformed body.
              schema:
                type: string
      security:
        - apiKey:
            - object_model:records:read
        - apiKey:
            - object_model:facts:read
        - apiKey:
            - object_model:model:read
        - apiKey:
            - object_model:actions:run
components:
  schemas:
    object_model_DescribeResult:
      additionalProperties: false
      properties:
        access_dependencies:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        access_dependencies_complete:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        access_dependency_type_ids:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        access_dependency_types_complete:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        actions:
          description: >-
            The actions: named writes that check the ontology's rules and change
            records, run with `POST /actions/{action_id}/run`.
          items:
            $ref: '#/components/schemas/object_model_DeclaredAction'
          type: array
        audiences:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        axes:
          description: >-
            Dimensions some quantities' facts are recorded along (a quantity
            names them in `axis_ids`), with the values each takes.
          items:
            $ref: '#/components/schemas/object_model_DeclaredAxis'
          type: array
        caller_configure:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: object
        caller_grid:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: object
        checks:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        claim_types:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        decisions:
          description: >-
            Changes a person must decide. Make one by running the action that
            makes it: unless the caller is one of its deciders, the run answers
            202 and waits for one. A record update that makes the change
            directly is refused (422).
          items:
            $ref: '#/components/schemas/object_model_DeclaredDecision'
          type: array
        declarations_fingerprint:
          description: >-
            A fingerprint of the declarations in this answer. Send it back as
            `known_declarations_fingerprint` to skip them when nothing has
            changed.
          type: string
        definitions:
          description: >-
            The figures the ontology computes from facts and fields, by
            `definition_id`: what `definition_ids` names in a figure query.
          items:
            $ref: '#/components/schemas/object_model_DeclaredDefinition'
          type: array
        drafts:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        entity_types:
          description: The record types, with their fields.
          items:
            $ref: '#/components/schemas/object_model_DeclaredEntityType'
          type: array
        explicit_grants:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        extensions:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        fiscal_year_end_month:
          description: >-
            The month (1 to 12) the organization's fiscal year ends, which
            fiscal periods follow.
          type: integer
        forms:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        lineage:
          allOf:
            - $ref: '#/components/schemas/object_model_ModelLineage'
          description: This version, and the template it is based on, if any.
        modules:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        nav:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: object
        prompts:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        quantities:
          description: >-
            What facts are recorded about: for each quantity, the record type it
            describes, its unit, and how its values relate over time.
          items:
            $ref: '#/components/schemas/object_model_DeclaredQuantity'
          type: array
        record_query_rollups:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        relations:
          description: >-
            How records of one type link to records of another. A record's links
            are written and read under `links`, keyed by `relation_id`.
          items:
            $ref: '#/components/schemas/object_model_DeclaredRelation'
          type: array
        reuse_declarations:
          description: >-
            True when `known_declarations_fingerprint` matched: the declarations
            are left out because the earlier answer still holds.
          type: boolean
        supports_record_query_relations:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        supports_subject_layouts:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        version:
          description: >-
            The ontology's version, also sent as the `Object-Model-Version`
            header.
          format: int64
          type:
            - string
            - integer
        view_overrides:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        viewer_audiences:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        viewer_rosters:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        views:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        waiting_on:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        walls:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        warnings:
          description: >-
            Parts of the ontology that could not be loaded and are left out of
            this answer. Usually empty.
          items:
            type: string
          type: array
        worlds:
          description: >-
            The scenarios. A scenario's `world_id` is what `context.world_id`
            and the scenario routes take.
          items:
            $ref: '#/components/schemas/object_model_DeclaredWorld'
          type: array
      type: object
    Failure:
      properties:
        code:
          type: string
        details:
          additionalProperties:
            type: string
          type: object
        error:
          type: string
        path:
          type: string
        request_id:
          type: string
        result:
          description: >-
            The operation's own result, when a declined operation has one: what
            it did before it stopped. An action that stopped part way
            (`partial`) carries its `instance_id`, the records it created, its
            `fact_ids` and `field_outcomes` here — the steps that committed.
            Same shape as the route's 200 body.
          type: object
        status:
          const: failed
          type: string
      required:
        - status
        - code
        - error
      type: object
    object_model_DeclaredAction:
      additionalProperties: false
      properties:
        action_id:
          description: The action's id, which `/actions/{action_id}/run` names.
          type: string
        answers:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: string
        caller_allowed:
          description: >-
            Whether the caller's role allows running it. False: every run is
            refused. True: the records it touches decide the rest.
          type: boolean
        confirms:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        display_name:
          description: What people call it.
          type: string
        params:
          description: What a run takes, in its `params`.
          items:
            $ref: '#/components/schemas/object_model_DeclaredParam'
          type: array
        require_reads:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        requirements:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: object
          type: array
        requires:
          description: >-
            The rules a run must pass, as the message each gives when it fails.
            A failing run is refused (422) and writes nothing.
          items:
            type: string
          type: array
        source:
          description: >-
            The action as written in the ontology: what it checks and what it
            writes.
          type: string
        subject_type_id:
          description: >-
            The record type it acts on: a run's `subject_id` is a record of this
            type.
          type: string
      type: object
    object_model_DeclaredAxis:
      additionalProperties: false
      properties:
        allowed_values:
          description: The values an `enum` dimension takes.
          items:
            type: string
          type: array
        axis_id:
          description: The dimension's id.
          type: string
        display_name:
          description: What people call it.
          type: string
        ref_type_id:
          description: The record type a `ref` dimension's values name.
          type: string
        required:
          description: A fact of a quantity along this dimension must carry a value for it.
          type: boolean
        value_kind:
          description: >-
            What its values are: `enum` (one of `allowed_values`), `string`,
            `numeric`, or `ref` (a record id of `ref_type_id`).
          type: string
      type: object
    object_model_DeclaredDecision:
      additionalProperties: false
      properties:
        attribute:
          description: The field whose change is decided.
          type: string
        autonomy:
          description: >-
            How far an AI agent may go alone: `human`, `prepare` or `auto`, from
            least to most.
          type: string
        autonomy_cap:
          description: >-
            A field of a linked record that can make `autonomy` stricter, as
            written. Empty: none.
          type: string
        changes:
          description: Every change to the field is decided.
          type: boolean
        decided_by:
          description: >-
            Who decides, as written: a field holding people (`attr:owner`) or a
            team.
          type: string
        decision_id:
          description: >-
            The rule's id. Not the id of a decision raised under it: `GET
            /decisions/{decision_id}` takes the `decision_id` a run's `202`
            answered.
          type: string
        display_name:
          description: What people call it.
          type: string
        enters:
          description: >-
            The value whose entry is decided, such as a stage. Empty when every
            change to the field is (`changes`).
          type: string
        evidence:
          description: 'What a proposal must carry: `attr:<field>` and `facet:<id>` values.'
          items:
            type: string
          type: array
        expires_days:
          description: >-
            Days a proposal waits before it expires, which denies it. 0: the
            default.
          type: integer
        link:
          description: >-
            The relation whose links from the record are decided, for a decision
            about links rather than a field.
          type: string
        link_where:
          description: >-
            A true/false field of the linked record that makes a link change
            decided.
          type: string
        only_if:
          description: >-
            The condition on the record under which the change is decided, as
            written. Empty: always.
          type: string
        second_approver:
          description: A decider's own change waits for another decider.
          type: boolean
        type_id:
          description: The record type whose change is decided.
          type: string
      type: object
    object_model_DeclaredDefinition:
      additionalProperties: false
      properties:
        definition_id:
          description: 'The figure''s id: what `definition_ids` names in a figure query.'
          type: string
        description:
          description: What it computes, as the ontology describes it.
          type: string
        display_name:
          description: What people call it.
          type: string
        expr:
          description: The formula, as written in the ontology.
          type: string
        format:
          description: How the app shows a value, as a field's `format`.
          type: string
        index:
          description: >-
            How one record's result is divided: empty for one value,
            `period:<grain>` for one per period, `element` for one per item, or
            `axis:<axis_id>` for one per value of a dimension.
          items:
            type: string
          type: array
        measure_kind:
          description: How its values combine, as a quantity's.
          type: string
        reads_definitions:
          description: The figures it reads, directly or through others.
          items:
            type: string
          type: array
        reads_quantities:
          description: The quantities it reads, directly or through other figures.
          items:
            type: string
          type: array
        reads_record_attributes:
          description: The record fields it reads, directly or through other figures.
          items:
            type: string
          type: array
        record_attribute_dependencies_complete:
          description: >-
            True when `reads_record_attributes` lists every field it reads.
            False when the formula reads fields it can only name as it runs.
          type: boolean
        referenced_by:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        subject_type_id:
          description: >-
            The record type it is computed for: one figure per record of this
            type.
          type: string
        unit:
          description: Its unit, as a quantity's.
          type: string
      type: object
    object_model_DeclaredEntityType:
      additionalProperties: false
      properties:
        access_declared:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        attributes:
          description: The type's fields.
          items:
            $ref: '#/components/schemas/object_model_DeclaredAttribute'
          type: array
        delete_with:
          description: >-
            The record this type's records are deleted with: `attr:<field>`, the
            record a reference field holds, or `link:<relation_id>`, the record
            linked through that relation.
          items:
            type: string
          type: array
        deletion_policy:
          description: >-
            What deleting a record does: `restrict` refuses while other records
            refer to it; `forbid` always refuses; `detach` clears the references
            to it and deletes the records of types that are deleted with it
            (`delete_with`).
          type: string
        display_name:
          description: What people call the type. Empty when the ontology names none.
          type: string
        facets:
          description: >-
            Groups of fields that apply only while a condition on the record
            holds, or that only some people may read or change.
          items:
            $ref: '#/components/schemas/object_model_DeclaredFacet'
          type: array
        icon_attribute:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: string
        image_attribute:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: string
        label_fallback_attributes:
          description: >-
            The fields a record's `label` falls back to, in order, when the
            primary label field is empty.
          items:
            type: string
          type: array
        lifecycle:
          allOf:
            - $ref: '#/components/schemas/object_model_DeclaredLifecycle'
          description: >-
            The field that holds the type's stage and its milestones in order,
            when the type declares a lifecycle.
        plural_name:
          description: The plural of `display_name`. Empty when none is declared.
          type: string
        primary_label_attribute:
          description: 'The field a record is called by: a record''s `label` is its value.'
          type: string
        type_id:
          description: The type's id, which paths and bodies name it by.
          type: string
      type: object
    object_model_ModelLineage:
      additionalProperties: false
      properties:
        latest_template_version:
          description: The newest template version.
          format: int64
          type:
            - string
            - integer
        org_version:
          description: >-
            The current version: what `If-Match` on `POST /model/configure`
            names.
          format: int64
          type:
            - string
            - integer
        template_id:
          description: 'The template the ontology is based on. Empty: none.'
          type: string
        template_version:
          description: The template version it is based on.
          format: int64
          type:
            - string
            - integer
        upgrade_available:
          description: A newer template version exists; `POST /model/upgrade` moves to it.
          type: boolean
      type: object
    object_model_DeclaredQuantity:
      additionalProperties: false
      properties:
        axis_ids:
          description: The dimensions its facts are recorded along (`axes`).
          items:
            type: string
          type: array
        capture:
          description: >-
            How values found in documents and conversations are taken in:
            `manual` (never; a person enters them), `proposed` (each waits for a
            person's approval), `fill` (recorded where nothing is, proposed
            where a value would change) or `auto` (recorded). Empty: no policy.
          type: string
        collect:
          description: >-
            How often people are expected to record it: `quarterly` or `annual`.
            Empty: no cadence.
          type: string
        description:
          description: What it measures, as the ontology describes it.
          type: string
        display_name:
          description: What people call it.
          type: string
        format:
          description: >-
            How the app shows a value, as a field's `format`. It never changes
            the value written.
          type: string
        former_ids:
          description: Ids this quantity had before it was renamed.
          items:
            type: string
          type: array
        measure_kind:
          description: >-
            How values combine: `flow` (amounts over a period, which add up),
            `level` (a balance at a moment: the latest counts, never a sum),
            `ratio`, `rate`, `state` or `event`.
          type: string
        quantity_id:
          description: The quantity's id, which fact reads and writes name.
          type: string
        referenced_by:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        source_names:
          additionalProperties:
            type: string
          description: What each source kind is called.
          type: object
        sources:
          description: >-
            The kinds of source a value may come from, weakest first. Empty:
            any.
          items:
            type: string
          type: array
        subject_type_id:
          description: >-
            The record type its facts are about: a fact's `subject_id` is a
            record of this type.
          type: string
        time:
          description: >-
            What a fact's dates mean: `interval` (a value over `valid_from` to
            `valid_to`), `instant` (a value at one moment) or `timeless` (no
            history).
          type: string
        unit:
          description: >-
            Its unit: a currency such as `USD`, `1` for a plain number or ratio
            (a fraction, so 0.25 is 25%), or a rate such as `1/year`.
          type: string
        verified_from:
          description: >-
            The weakest source kind whose values count as verified. Empty: only
            values a person entered or approved.
          type: string
      type: object
    object_model_DeclaredRelation:
      additionalProperties: false
      properties:
        cardinality:
          description: >-
            How many `to_type_id` records one record links to: `zero_or_one`,
            `exactly_one`, `zero_or_many` or `one_or_many`.
          type: string
        edge_label:
          description: What the link means, read from `from_type_id` to `to_type_id`.
          type: string
        from_type_id:
          description: The type whose records hold the links.
          type: string
        inverse_cardinality:
          description: >-
            How many `from_type_id` records link to one `to_type_id` record, in
            the same words.
          type: string
        inverse_label:
          description: What the link means, read the other way.
          type: string
        relation_id:
          description: >-
            The relation's id: the key of `links` on a record, and what
            `/related/{relation_id}` and a `has_links` filter name.
          type: string
        to_type_id:
          description: The type of the records they link to.
          type: string
        traversal_path:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
      type: object
    object_model_DeclaredWorld:
      additionalProperties: false
      properties:
        display_name:
          description: What people call it.
          type: string
        ephemeral:
          description: An unsaved what-if rather than a saved scenario.
          type: boolean
        parent_world_id:
          description: >-
            The scenario it builds on: it reads what that one holds and
            overrides some of it. Empty: built on the facts as recorded.
          type: string
        scope_entity_ids:
          description: 'The records its facts are about. Empty: any.'
          items:
            type: string
          type: array
        status:
          description: The scenario's status.
          type: string
        world_id:
          description: The scenario's id, which `context.world_id` takes.
          type: string
      type: object
    object_model_DeclaredParam:
      additionalProperties: false
      properties:
        creatable:
          description: >-
            Takes a new record as well as an existing one: `{"new": {<field>:
            <value>, …}}` creates it as the run writes.
          type: boolean
        display_name:
          description: What a form labels it.
          type: string
        fields:
          description: 'For a `list` param: the members of each object in the array.'
          items:
            $ref: '#/components/schemas/object_model_DeclaredParam'
          type: array
        name:
          description: The param's key in `params`.
          type: string
        param_type:
          description: >-
            Its type, written as a field of that `storage` is, plus `list` (an
            array of objects with the param's `fields`), `ref(quantity)` (a
            `quantity_id`), `ref(definition)` (a `definition_id`) and `any`.
          type: string
        ref_type_id:
          description: 'For a `ref(...)` param: the record type its id names, or `user`.'
          type: string
        required:
          description: A run without it is refused (422).
          type: boolean
      type: object
    object_model_DeclaredAttribute:
      additionalProperties: false
      properties:
        allowed_values:
          description: >-
            The option values the field takes. Write and filter by these values,
            never by their labels; any other value is refused (422). Empty: any
            value.
          items:
            type: string
          type: array
        archive_generation:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: integer
        archived:
          description: >-
            Retired: records keep their values, but a write to it is refused
            (422).
          type: boolean
        choice_overrides:
          description: >-
            Options that replace `allowed_values` on records whose
            `scope_attribute` holds `scope_record_id`.
          items:
            $ref: '#/components/schemas/object_model_DeclaredChoiceOverride'
          type: array
        decimals:
          description: Digits the app shows after the point.
          type: integer
        display_name:
          description: What people call the field. Empty when the ontology names none.
          type: string
        extensible:
          description: >-
            People can add options to this list in the app, where they enter a
            value. A write through this API takes only `allowed_values`.
          type: boolean
        fixed_after_create:
          description: >-
            Set when a record is created and never changed after: an update to
            it is refused (422).
          type: boolean
        format:
          description: >-
            How the app shows a number: `financial`, `integer`, `decimal`,
            `percent` (the value is a fraction: 0.0625 shows as 6.25%),
            `multiple` (2.5 shows as 2.5x), `bps` or `date`. It never changes
            the value written.
          type: string
        name:
          description: >-
            The field's id: its key in `values`, and what filters and sorts
            name.
          type: string
        option_colors:
          additionalProperties:
            type: string
          description: >-
            Each option value's color in the app. A record write ignores it, but
            a field edit restates it: to change a field, copy its line from `GET
            /model` rather than rebuilding it from this answer.
          type: object
        option_labels:
          additionalProperties:
            type: string
          description: >-
            Each option value's label, as people see it. Read only: a write
            takes the value.
          type: object
        referenced_by:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        required:
          description: >-
            A record must hold a value: creating one without it, or clearing it,
            is refused (422).
          type: boolean
        scope_attribute:
          description: >-
            With `scope_record_id`: the field applies only to records whose
            `scope_attribute` holds that record. Absent: every record of the
            type.
          type: string
        scope_record_id:
          description: See `scope_attribute`.
          type: string
        separator:
          description: How the app groups digits. It never changes the value written.
          type: string
        storage:
          description: >-
            The field's type, which decides how its value is written and read:
            `string`, `text`, `url`, `phone`, `int`, `decimal`, `number`,
            `bool`, `timestamp`, `single_select`, `multi_select`, `string_list`,
            `personal_name`, `location`, `image`, `ref(<type_id>)` (a record
            id), `ref_list(<type_id>)` (record ids), `ref(user)` (a person's
            user id: look one up with `GET /v1/users`), or a unit such as `USD`
            (a number in that unit). The JSON each one takes, with an example,
            is listed under a record create's `values`.
          type: string
        unique:
          description: >-
            No two records of the type may hold the same value. A create with
            `unique_by` naming it returns the record that already does.
          type: boolean
        unit:
          description: >-
            The unit of an amount, such as `USD`, or `1` for a plain number or
            ratio. Amounts are numbers in this unit: dollars, not cents.
          type: string
        value_format:
          description: >-
            What a text field holds: `email`, `phone` or `website`. The value is
            still written as text.
          type: string
      type: object
    object_model_DeclaredFacet:
      additionalProperties: false
      properties:
        after_readers:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: string
        attributes:
          description: The fields in the group.
          items:
            type: string
          type: array
        before_readers:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: string
        display_name:
          description: What people call the group.
          type: string
        edit:
          description: 'Who among the readers may change these fields. Empty: every reader.'
          items:
            type: string
          type: array
        edit_as_written:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        edit_audiences:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        facet_id:
          description: The group's id.
          type: string
        generated:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        hidden:
          description: >-
            The caller may not read these fields: they are left out of every
            record this caller reads.
          type: boolean
        quantities:
          description: The quantities in the group.
          items:
            type: string
          type: array
        read:
          description: >-
            Who may read these fields, as written in the ontology; any one entry
            admits. Empty: whoever may read the record.
          items:
            type: string
          type: array
        read_as_written:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        read_audiences:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          items:
            type: string
          type: array
        readers_by_audience:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: boolean
        restricted:
          description: >-
            The caller may read these fields on some records only: they are left
            out of the others.
          type: boolean
        source:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: string
        when:
          description: >-
            The condition on the record's own fields under which these fields
            apply, as written in the ontology. While it does not hold, a value
            for them is refused (422); clearing one always works. Empty: always.
          type: string
      type: object
    object_model_DeclaredLifecycle:
      additionalProperties: false
      properties:
        attribute:
          description: The field that holds the stage.
          type: string
        milestones:
          description: >-
            The stages every record passes, in order. The field's options may
            add stages between them.
          items:
            type: string
          type: array
      type: object
    object_model_DeclaredChoiceOverride:
      additionalProperties: false
      properties:
        allowed_values:
          description: The option values on those records.
          items:
            type: string
          type: array
        choice_colors:
          description: Read by the VectorShift app's own screens. A client can ignore it.
          type: object
        choice_labels:
          additionalProperties:
            type: string
          description: Each option value's label.
          type: object
        scope_attribute:
          description: The reference field that decides where these options apply.
          type: string
        scope_record_id:
          description: The record that field must hold.
          type: string
      type: object
  securitySchemes:
    apiKey:
      description: >-
        An API key issued with object_model scopes: Authorization: Bearer sk_….
        The scopes: object_model:records:read, object_model:records:write,
        object_model:facts:read, object_model:facts:write,
        object_model:model:read, object_model:model:configure,
        object_model:actions:run, object_model:changes:read. An operation's
        `security` lists the scopes it needs; several entries mean any one of
        them will do. A person field (`ref(user)`, `ref_list(user)`) holds a
        user id: look people up by email or id with `GET /v1/users`, outside
        this API, with a key that also has `users:read`.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.