Bevaya Logo
Bevaya API

Schemas


client.FieldStatus

string · enum
Enum values:
PENDING
EXTRACTED
SAVED
REVIEWED
APPROVED
REJECTED
ARCHIVED

client.FileCategory

string · enum
Enum values:
KNOWLEDGE
CONTEXT
HELPER
DOCUMENT_PROCESSING

client.ItemStatus

string · enum
Enum values:
QUEUED
IN_PROGRESS
DEFERRED
REVIEW
COMPLETE
CLOSED
FAILED
CANCELED

client.ReviewStatus

string · enum
Enum values:
PENDING
IN_PROGRESS
SUBMITTED
COMPLETED
REJECTED
CANCELED

domain-types.BoundingBox

Bounding box structure for field location in documents
height
​number · required

Height of the box, in pixels. Measured on the same page image x and y are relative to.

width
​number · required

Width of the box, in pixels. Measured on the same page image x and y are relative to.

x
​number · required

Horizontal offset, in pixels, of the box's left edge from the page image's left edge.

y
​number · required

Vertical offset, in pixels, of the box's top edge from the page image's top edge.

domain-types.FieldSourceDto

One input source that contributed to a field value, listed individually. DOCUMENT/API carry `documentId` (+ RBAC-resolved `documentName`) and locations; EXTERNAL/API carry `displayName`/`url`. `stale`/`staleReason` surface PSS staleness for the source's document.
id
​string · required

Unique identifier for this source. Format: UUID.

​domain-types.FieldSourceLocationDto[] · required

Pages and bounding boxes within the source document where the value was found. Empty for source types that are not document-based.

type
​string · enum · required

Kind of source that produced this contribution to the value. DOCUMENT — read from one of the item's documents; carries documentId and locations. API — reserved for future explicit API provenance, not produced today. EXTERNAL — a non-document source such as a flow-configured external system or a web-search result; carries displayName/url. DERIVED — computed, aggregated, or entered directly during review; carries neither. Like API, nothing produces DERIVED sources today: a value entered during review has an empty sources array rather than a derived one.

Enum values:
DOCUMENT
API
EXTERNAL
DERIVED
​

Human-readable name for an EXTERNAL source. For the web-search citations that produce these today it is the search result's title, or null when the provider returned none. Absent for other source types.

​

Document this source was read from. Present for DOCUMENT sources; null or absent for other source types. Format: UUID.

​

Display name of the source document, resolved for the caller's access. Null when this source has no associated document, or when the document could not be resolved for display — see stale.

stale
​boolean

Whether this source's grounding no longer holds against the source document's current state. Currently set only when the source document could not be resolved. Detecting a replaced, split, or reorganized document is computed by a separate internal check and is not yet reflected here. Applies only to document-backed sources; absent for other source types.

staleReason
​string | null · enum

Reason this source is stale, present when stale is true. Only UNAVAILABLE is currently produced, meaning the source document could not be resolved. SUPERSEDED (replaced by a newer version), DOCUMENT_SPLIT (pages now span more than one document) and PAGE_MOVED (page now belongs to a different document) are computed by a separate internal check and are not yet surfaced here. Absent when not stale.

Enum values:
SUPERSEDED
PAGE_MOVED
DOCUMENT_SPLIT
UNAVAILABLE
​

URL of an EXTERNAL source, such as a web page cited during extraction. Absent for other source types.

domain-types.FieldSourceLocationDto

A page + bounding box where a field value was found within a document source. `sourcePageKey` is the source page's OCR blob path — the stable anchor that survives PSS segment renumbering; `pageNumber` is a display hint.
id
​string · required

Unique identifier for this location. Format: UUID.

pageNumber
​number · required

Page number to display or scroll to for this location. A display hint only. sourcePageKey, not this value, is what identifies the page across document reorganization.

sourcePageKey
​string · required

Stable identifier for the source page. Used to match this location to the correct page even after the document has been reorganized. Opaque — treat it only as a matching key, not as a value to parse.

​object

Pixel-coordinate box on the page where the value was found. Absent means the value is grounded to the page as a whole, with no specific box to highlight.

domain-types.FieldSourceTypeDto

string · enum
Enum values:
DOCUMENT
API
EXTERNAL
DERIVED

domain-types.JsonValue

Any JSON value — string, number, boolean, null, array, or object.

dto.AuthenticateResponseDto

accessToken
​string · required

The access token to use for subsequent requests. JWT format. Pass it in the Authorization Bearer header. Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....

​object · required

Resolved authentication/authorization context for the caller.

expiresAt
​number · required

Token expiration time. Unix epoch timestamp in milliseconds — pass it straight to new Date(...) or compare it against Date.now(). Note this is a different unit from the exp claim inside the token itself, which follows the JWT spec and is in seconds. Example: 1786454684000.

dto.FileResponseDto

blobPath
​string · required

Storage path within the organization's blob container. Not a public URL — use downloadUrl to fetch content.

category
​string · enum · required

File category. Defaults to DOCUMENT_PROCESSING when not specified at upload time.

Enum values:
KNOWLEDGE
CONTEXT
HELPER
DOCUMENT_PROCESSING
createdAt
​string · required

ISO timestamp when the file record was created.

createdBy
​string · required

ID of the user or process that created the file record. Format: UUID.

downloadUrl
​string · required

A presigned URL to download the file content directly from storage. Time-limited; re-fetch the file if it expires.

fileSize
​number · required

File size in bytes. Example: 102400.

filename
​string · required

Original filename, with extension. Example: document.pdf.

id
​string · required

Unique identifier for the file. Format: UUID. Example: 70326069-1786-01c4-4653-066594021234.

mimeType
​string · required

MIME type of the file. Example: application/pdf.

childCount
​number

Count of immediate children for this file

Recursive array of child files - populated up to MAX_DEPTH levels

​

Free-form metadata attached to the file, if any. Represents any valid JSON value that can be stored in a JSONB column.

parentFileId
​string

ID of the parent file, for files created as part of a hierarchy. Format: UUID.

dto.FlowExecutionDto

createdAt
​string · required

ISO timestamp when the execution record was created.

createdBy
​string · required

ID of the user or process that created the execution. Format: UUID.

flowId
​string · required

ID of the flow that was executed. Format: UUID. Example: 5e104847-9564-8fa2-2431-844372809012.

id
​string · required

Unique identifier for the flow execution. Format: UUID. Example: 81437170-2897-12d5-5764-177605132345.

organizationId
​string · required

Organization that owns this execution. Format: UUID.

startedAt
​string · required

When the execution started. ISO timestamp. Example: 2026-03-31T10:00:00Z.

status
​string · enum · required

Current lifecycle status. Lowercase string, one of pending, running, in_review, completed, failed, canceled. Five of the six are stored on the execution itself; in_review is derived at read time, and means the execution is still open and has produced a work item that is waiting on human review.

Enum values:
pending
running
in_review
completed
failed
canceled

Child executions for flows that spawn sub-flows.

completedAt
​string

When the execution finished, if it has. ISO timestamp; null/absent while still running.

​

Error details, if the execution failed. Represents any valid JSON value that can be stored in a JSONB column.

​

Provenance reference indicating which version/draft was executed. Format: "v:1.0.0" for published versions, "draft:{id}@{opCount}" for drafts, null for legacy.

​

Input payload the execution was started with. Represents any valid JSON value that can be stored in a JSONB column.

​

Output payload produced by the execution, once available. Represents any valid JSON value that can be stored in a JSONB column.

temporal_run_id
​string

Internal run identifier for the processing engine. Not part of the stable public contract; do not use it for API calls.

temporal_workflow_id
​string

Internal workflow identifier for the processing engine. Not part of the stable public contract; do not use it for API calls.

updatedAt
​string

ISO timestamp of the last update to the execution record.

updatedBy
​string

ID of the user or process that last updated the execution. Format: UUID.

dto.FlowExecutionStatusItemDto

itemId
​string · required

ID of the work item. Format: UUID.

projectId
​string · required

Project the item belongs to. Format: UUID.

displayId
​number

Human-facing sequence number for the item within its project. Absent for items that have not yet been assigned one.

reviewUrl
​string

Path into the review UI for this item, relative to the app root. Example: /items/{itemId}/review?projectId={projectId}. Present only while the item is awaiting review and the execution has not reached completed, failed or canceled. Absent otherwise.

dto.FlowExecutionStatusResponseDto

​dto.FlowExecutionStatusItemDto[] · required

Work items produced by this execution.

status
​string · enum · required

Projected lifecycle status of the execution. One of pending, running, in_review, completed, failed, canceled. Distinct from the internal ItemStatus/ReviewStatus vocabularies, which are never surfaced here.

Enum values:
pending
running
in_review
completed
failed
canceled
failureReason
​string

Bounded, best-effort summary of why the execution failed. Present only when status is failed.

dto.FlowLayoutDto

Layout information about which nodes are visible on the canvas. Node IDs in this map correspond to step names in the DSL workflow.
​object

Canvas position by node ID. Node IDs correspond to step names in the DSL workflow; absence means the step isn't a canvas node.

dto.GroupedStepExecutionDto

A grouped step that may contain multiple iterations (for loops). Groups all executions of the same step name (derived from step_ref) together. Note: Canvas visibility and preprocessing categorization should be determined by the frontend using the layout field in the response. The frontend can use: - layout.nodes to determine which steps are canvas nodes - isDocAIPreprocessingStep() to identify preprocessing steps by name
iterationCount
​number · required

Count of iterations. Equal to iterations.length.

​dto.StepExecutionDto[] · required

All executions of this step. Multiple entries when the step is inside a for loop, one per iteration.

status
​string · required

Overall status - "completed" if all iterations completed, "failed" if any failed, "running" otherwise

step_name
​string · required

Display name derived from step_ref (e.g., "process_item"). Used for grouping iterations together.

step_ref
​string · required

The full step reference path (e.g., "/do/0/for/2/process_item"). For grouped steps with iterations, this is the ref from the first iteration.

step_type
​string · required

The step type. Example: task, for, set.

dto.PageDto

createdAt
​string · required

ISO timestamp when the page record was created.

fileId
​string · required

ID of the file this page belongs to. Format: UUID.

id
​string · required

Unique identifier for the page record. Format: UUID.

pageNumber
​number · required

1-indexed page number within the file.

documentId
​string

ID of the document this page is associated with, if any. Format: UUID.

downloadUrl
​string

Presigned URL to download the rendered page image.

imagePath
​string

Storage path of the rendered page image, if generated.

ocrDownloadUrl
​string

Presigned URL to download the OCR output for this page.

ocrPath
​string

Storage path of the OCR output for this page, if generated.

dto.RerunFlowResponseDto

executionId
​string · required

Database primary key for the newly created FlowExecution record. Use this for API calls. Format: UUID.

temporalWorkflowId
​string · required

Internal workflow identifier for the processing engine. Not part of the stable public contract; do not use it for API calls.

dto.RunFlowResponseDto

executionId
​string · required

Database primary key for the FlowExecution record. Use this for API calls. Format: UUID. Example: 81437170-2897-12d5-5764-177605132345.

temporalWorkflowId
​string · required

Internal workflow identifier for the processing engine. Not part of the stable public contract; do not use it for API calls.

dto.StepExecutionDto

A single step execution record.
createdAt
​string · required

ISO timestamp when the step execution record was created.

flowExecutionId
​string · required

ID of the parent flow execution this step belongs to. Format: UUID.

id
​string · required

Unique identifier for the step execution record. Format: UUID.

organizationId
​string · required

Organization that owns this step execution. Format: UUID.

retry_count
​number · required

Number of times this step has been retried.

startedAt
​string · required

When the step started. ISO timestamp.

status
​string · required

Current execution status of the step. Lowercase string, one of active, completed, failed. Canceled activities are recorded as failed.

step_name
​string · required

Display name derived from step_ref (e.g., "process_item"). The last non-numeric segment of the ref path.

step_ref
​string · required

The full step reference path (e.g., "/do/0/for/2/process_item"). Provides complete execution context for debugging.

step_type
​string · required

The step type. Example: task, for, set.

Child steps from module workflows that were spawned by this step. Only populated for parent workflow steps that trigger child workflows.

completedAt
​string

When the step finished, if it has. ISO timestamp; absent while still running.

​

Error details, if the step failed. Represents any valid JSON value that can be stored in a JSONB column.

​

Input payload the step was invoked with. Represents any valid JSON value that can be stored in a JSONB column.

​

Output payload produced by the step, once available. Represents any valid JSON value that can be stored in a JSONB column.

updatedAt
​string

ISO timestamp of the last update to the step execution record.

dto.StepExecutionsResponseDto

executionStatus
​string · enum · required

Status derived from the associated DSL child execution for this response, not necessarily the root/parent flow execution. One of pending, running, in_review, completed, failed, canceled — the same six-value vocabulary returned by the other flow-execution endpoints. in_review means the run is still open and has produced a work item waiting on human review.

Enum values:
pending
running
in_review
completed
failed
canceled
​dto.GroupedStepExecutionDto[] · required

Steps grouped by step_name, with iterations and canvas visibility. Use this instead of a flat step list to correctly render loop iterations.

totalExecutions
​number · required

Total number of step executions, including all loop iterations. Greater than totalSteps when any step has multiple iterations.

totalSteps
​number · required

Total number of unique step names. Equal to groupedSteps.length.

​object

Layout information showing which step names are visible canvas nodes. Node IDs in this map correspond to step names in the DSL workflow.

dtos.CitationDto

A web-search citation (camelCase). Frontend-facing parallel copy of `item-review`'s `CitationDto` — keep the two in sync. Only the review path populates it; the UI defaults an absent value to an empty list.
​required

Search query that surfaced this citation. Null if the citation was not associated with a specific query.

​required

Title of the cited page. Null if the search provider did not return a title.

url
​string · required

URL of the web page cited as a source for this value. Example: [https://example.com/article](https://example.com/article).

dtos.DocumentMetadataDto

Document metadata for the lean detail response. Same as DocumentDto minus the unbounded inline `content` (still in blob storage, fetched via `blobPath`) and the nested `fields[]` (sourced from GET /items/:id/fields).
createdAt
​string · date-time · required
flowExecutionId
​string · required
id
​string · required
itemId
​string · required
name
​string · required
organizationId
​string · required
status
​string · required
type
​string · required
updatedAt
​string · date-time · required
blobPath
​string
externalId
​string
fileId
​string
filename
​string
language
​string
mimeType
​string
pageCount
​number
parentFileId
​string
processedAt
​string · date-time
size
​number
stepExecutionId
​string

dtos.FieldDto

createdAt
​string · date-time · required

ISO timestamp when this field was first created. Set once and never updated afterward.

​required

ID of the version currently treated as this field's value. Null if the field has no versions yet. Format: UUID.

​required

Document this field belongs to. Null for an item-level field (one that is not scoped to a specific document). Format: UUID.

id
​string · required

Unique identifier for this field. Format: UUID. Example: 6f215958-0675-90b3-3542-955483910123.

itemId
​string · required

Item this field belongs to. Format: UUID.

key
​string · required

Name of the field. Unique within the item (for item-level fields) or within the document (for document-scoped fields), so a flow that produces two fields under the same key for one document yields a single field rather than two. Example: invoice_total.

organizationId
​string · required

Organization that owns this field. Format: UUID.

type
​string · required

Data type of the field's value. Example: string, number, date, table.

updatedAt
​string · date-time · required

ISO timestamp of the last change to this field. Updates whenever a new version becomes current.

This field's current version, wrapped in an array. Contains at most one entry, the version referenced by currentVersionId, and is empty when the field has no current version. It is not the field's full version history.

dtos.FieldVersionDto

​required

Confidence the extraction model assigned to this value. Between 0 and 1, or null for values that were not model-extracted, such as a value entered during human review.

createdAt
​string · date-time · required

ISO timestamp when this version record was created. May differ from versionTimestamp, which reflects when the value was actually produced.

​required

ID of the user who created this version. Null if it was created by an automated process rather than a person. Format: UUID.

fieldId
​string · required

Field this is a version of. Format: UUID.

id
​string · required

Unique identifier for this field version. Format: UUID.

isValid
​boolean · required

Whether this value currently passes all validation rules configured for the field. Set independently of validationMessages. A rule can invalidate a value without attaching any message, so this can be false while validationMessages is empty.

organizationId
​string · required

Organization that owns this field version. Format: UUID.

​required

Internal reference path to the workflow step that produced this version. Prefer stepName for a readable label; this value is meaningful only in combination with the flow's own definition.

​required

How this version's value was produced. Example values include EXTRACTION (automated extraction) and REVIEW (created or edited during human review).

​domain-types.FieldSourceDto[] · required

Input sources that contributed to this version's value, listed individually. Empty when no provenance was recorded for this version.

status
​string · enum · required

Review/lifecycle status of this version's value. One of: PENDING (not yet processed), EXTRACTED (produced by automated extraction, awaiting review), SAVED (edited during review but not yet submitted), REVIEWED (kept for backward compatibility), APPROVED (finalized, via review submission or auto-approval), REJECTED (explicitly rejected), or ARCHIVED (superseded when the flow looped back and re-extracted). An ARCHIVED version can still be the one referenced by currentVersionId, when the re-extraction did not produce a value for that key, so check this status rather than assuming the current version is live.

Enum values:
PENDING
EXTRACTED
SAVED
REVIEWED
APPROVED
REJECTED
ARCHIVED
​required

ID of the workflow step execution that produced this version. Null if the version was not created by an automated step — for example, one entered during human review. Format: UUID.

​required

Readable label for the workflow step that produced this version, extracted from parentStepRef. Null when the version was not created by an automated step, or when a label could not be extracted.

​object[] · required

Messages attached by validation rules that fired against this value. Only rules configured with message text add an entry, whether or not the rule invalidated the value, so this can be non-empty while isValid is true. Each entry names the rule that fired (ruleId) alongside its configured explanation (message).

​required

The extracted or entered value for this version. A scalar, a nested object, or — for table fields — an array of row objects. Interpret its shape using the field's type.

versionTimestamp
​string · date-time · required

Time this version's value was produced, as reported by the process that created it. Determines this version's position in the field's history; may differ from createdAt, which is when the record was stored.

​object

Deprecated single-location bounding box for this value, kept for backward compatibility. Mirrors the first location of this version's first source. New integrations should read sources[].locations[] instead, which supports multiple sources and multiple locations per source.

​dtos.CitationDto[]

Web-search citations backing this value, if any. Populated only by the item-review endpoints. This endpoint always omits it, whether or not the value has citations.

pageNumber
​number

Deprecated single-location page number for this value, kept for backward compatibility. Mirrors the first location of this version's first source. New integrations should read sources[].locations[] instead.

versionNumber
​number

1-based position of this version within its field's history. 1 is the oldest version; the highest number is the newest. Absent in contexts that return a version without its field's full history.

dtos.ItemDetailDto

Lean payload for GET /items/:id. Bounds the single-item response and removes the 3x FieldVersion.value duplication: - NO `fields[]` — sourced from GET /items/:id/fields (paginated) - `documents[]` is metadata only (no `content`, no nested `fields[]`) - `itemReviews[].fieldVersions[]` are references only - `temporalWorkflowId` is retained (item-review service depends on it)
​required

Time in milliseconds the agent spent processing this item, or null if unavailable.

​required

AI-generated summary of the item, or null if not yet generated.

assignedBy
​string · required

ID of the user who made the current assignment. Format: UUID.

assignedTo
​string · required

ID of the user currently assigned to the item. Format: UUID.

​required

The assigned user's profile, or null if unassigned.

createdAt
​string · date-time · required

ISO timestamp when the item was created. Example: 2026-03-31T15:55:41.222Z.

displayId
​number · required

Human-readable sequential ID within the AI Agent. Example: 1001.

​dtos.DocumentMetadataDto[] · required

Document metadata for this item. Lean — omits inline content and nested fields[]; use GET /items/:id/fields for field detail.

id
​string · required

Unique identifier for the item. Format: UUID. Example: 6f215958-0675-90b3-3542-955483910123.

​dtos.ItemReviewRefDto[] · required

Review history for this item. Lean — fieldVersions[] entries are references only, not full field/version copies.

lastUpdatedBy
​string · required

ID of the user or process that last updated the item. Format: UUID.

organizationId
​string · required

Organization that owns this item. Format: UUID. Example: 1d7c0403-5120-4b68-8097-4009384c5678.

projectId
​string · required

Project this item belongs to. Format: UUID. Example: 3c9e2625-7342-6d80-0219-6221506e7890.

status
​string · enum · required

Current processing status of the item.

Enum values:
QUEUED
IN_PROGRESS
DEFERRED
REVIEW
COMPLETE
CLOSED
FAILED
CANCELED
updatedAt
​string · date-time · required

ISO timestamp of the last update to the item. Example: 2026-03-31T15:55:41.222Z.

​

ISO timestamp when the item was soft-deleted, or null/absent if active.

​

User-facing display name for the item, null to indicate cleared, absent if never set.

​

ID of the flow execution that produced this item, if any. Format: UUID.

​

ID of the flow that produced this item, if any. Format: UUID.

​

Name of the flow that produced this item, if any.

​

Internal run identifier for the processing engine. Not part of the stable public contract; do not use it for API calls.

​

Internal workflow identifier for the processing engine. Not part of the stable public contract; do not use it for API calls.

dtos.ItemListEntryDto

Per-item shape returned by the list endpoint (GET /items). Does not include `fields[]`, `documents[]`, or the full `itemReviews[]` tree.
​required

ID of the active review, or null if no open review exists. Format: UUID. Needed by the frontend to call PATCH /item-reviews/:id/reviewer.

​required

AI-generated summary of the item, or null if not yet generated.

​required

ID of the user currently assigned to the item, or null if unassigned. Format: UUID.

​required

The assigned user's profile, or null if unassigned.

createdAt
​string · date-time · required

ISO timestamp when the item was created.

displayId
​number · required

Human-readable sequential ID within the AI Agent. Example: 1001.

​required

User-facing display name for the item, or null if unset.

​required

ID of the flow that produced this item, or null if not flow-generated. Format: UUID.

​required

Name of the flow that produced this item, or null if not flow-generated.

id
​string · required

Unique identifier for the item. Format: UUID. Example: 6f215958-0675-90b3-3542-955483910123.

projectId
​string · required

ID of the project (AI Agent) that owns this item. Format: UUID. Needed on the workspace-wide list view, which spans multiple projects, to scope each row's reviewer picker — every other list view already knows its single project from the request itself.

​required

The open (PENDING/IN_PROGRESS) review's status + lockedAt, or null when none. Backs the "Locked - View Only" badge (isItemLocked); the 7-minute TTL check stays client-side. Replaces the full itemReviews[] tree on the list.

​required

UUID of the assigned reviewer on the active review, or null if unassigned. Format: UUID.

​required

The assigned reviewer's profile, or null if unassigned.

status
​string · enum · required

Current processing status of the item.

Enum values:
QUEUED
IN_PROGRESS
DEFERRED
REVIEW
COMPLETE
CLOSED
FAILED
CANCELED

dtos.ItemReviewFieldVersionRefDto

Reference-only review field-version for the lean detail response: the ids + review status, with NO embedded `field`/`fieldVersion` copies (those were the 3x `value` duplication). Field/version detail comes from GET /items/:id/fields.
fieldVersionId
​string · required
id
​string · required
itemReviewId
​string · required
​required
requiresReview
​boolean · required
status
​client.FieldStatus · enum · required
Enum values:
PENDING
EXTRACTED
SAVED
REVIEWED
APPROVED
REJECTED
ARCHIVED

dtos.ItemReviewRefDto

Review summary for the lean detail response: review scalars + computed stats \+ reference-only field-versions.
​required
completedFields
​number · required
completionPercentage
​number · required
createdAt
​string · date-time · required
​required
​dtos.ItemReviewFieldVersionRefDto[] · required
fieldsNeedReview
​number · required
​required
flowExecutionId
​string · required
id
​string · required
itemId
​string · required
​required
organizationId
​string · required
status
​client.ReviewStatus · enum · required
Enum values:
PENDING
IN_PROGRESS
SUBMITTED
COMPLETED
REJECTED
CANCELED
​required
​required
​required
totalFields
​number · required
version
​number · required

dtos.ItemSortFieldType

string · enum
Enum values:
createdAt
updatedAt
status
displayId
displayName
flowName
assignedToUser

Type for sort field values

dtos.SortOrderType

string · enum
Enum values:
asc
desc

Type for sort order values

dtos.UserDto

Supporting DTOs for nested data
email
​string · required

User's email address.

​required

User's first name, if set.

id
​string · required

Unique identifier for the user. Format: UUID.

​required

User's last name, if set.

execution-status.ExternalFlowExecutionStatus

string · enum
Enum values:
pending
running
in_review
completed
failed
canceled

types.AuthClaims

The named claims an access token carries.
organizationId
​string · required

Organization this access token is scoped to. Format: UUID.

permissions
​string[] · required

Permission keys this token grants. Checked by @ApiPermission-guarded endpoints via the RBAC middleware.

projectIds
​string[] · required

Projects the token grants access to. Requests scoped outside this list should be rejected.

userID
​string · required

ID of the authenticated subject (user or service account). Format: UUID.

userType
​string · enum · required

Kind of subject that authenticated. Distinguishes human users from service/system accounts.

Enum values:
user
apikey
worker
workspaceIds
​string[] · required

Workspaces the token grants access to. Requests scoped outside this list should be rejected.

types.SubjectType

string · enum
Enum values:
user
apikey
worker

Type of authenticated principal that made the request.

types.organizationId

string

workflow-constants.FlowExecutionRunFromValue

string · enum
Enum values:
ui
trigger
api

APIError

code
​string · required

Error code

Example: not_found
message
​string · required

Error message

details
​object

Error details