Skip to content

Catalog

Get source catalog

Get the source catalog, the block catalog that workflow source is compiled and type-checked against: every block type the caller may place in the workspace, with its fields, visibility conditions, outputs, triggers, and SDK builder names. Pass `workflowId` to add the block types already placed in that workflow. The response carries the catalog `hash` as an `ETag`; send it back in `If-None-Match` to receive `304 Not Modified` with no body when the catalog is unchanged. Returns `403` while workflows as code is not enabled. OAuth scope: `api:read`.

GET/api/v2/workspaces/{workspaceId}/workflows/source/catalog

Get the source catalog, the block catalog that workflow source is compiled and type-checked against: every block type the caller may place in the workspace, with its fields, visibility conditions, outputs, triggers, and SDK builder names. Pass workflowId to add the block types already placed in that workflow. The response carries the catalog hash as an ETag; send it back in If-None-Match to receive 304 Not Modified with no body when the catalog is unchanged. Returns 403 while workflows as code is not enabled.

OAuth scope: api:read.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:read

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:read.

Path parameters

workspaceIdstringRequired

Workspace whose integration allowlist, revealed preview blocks, and deployed custom blocks decide what the catalog contains.

minLength
1
maxLength
128

Query parameters

workflowIdstring

Return the source catalog for this workflow: the workspace catalog plus every block type already placed in it, the ones the caller could not add marked addable: false.

minLength
1

Header parameters

if-none-matchstring

A catalog hash (quoted, as sent in ETag) the caller already holds.

maxLength
1024

Responses

200

The source catalog.

object

The source catalog core shard.

1 field
dataobjectRequired

Response data.

10 fields
catalogVersionnumberRequired

Catalog format version.

const
1
hashstringRequired

SHA-256 of the catalog content; the response ETag.

sdkMajorintegerRequired

Workflow SDK major version this catalog serves.

minimum
-9007199254740991
maximum
9007199254740991
blocksobjectRequired

Placeable block types by type id.

Schema details
Additional propertiesobject

One placeable block type.

19 fields
typestringRequired

Block type id.

namestringRequired

Display name.

categorystringRequired

Block category.

enum
["blocks","tools","triggers"]
addableboolean

Present when new blocks of this type are refused; existing ones still compile.

const
false
lifecycleobject

Lifecycle flags.

3 fields
hiddenboolean

Hidden from the toolbar.

const
true
previewboolean

Unreleased preview block.

const
true
sunsetobject

Post-GA lifecycle state.

2 fields
statusstringRequired

Lifecycle state.

enum
["legacy","deprecated"]
replacedBystring

Successor block type.

Additional properties are not allowed.

Additional properties are not allowed.

triggerAllowedboolean

Whether the block can start a workflow.

triggersobject

Trigger mode support.

2 fields
enabledbooleanRequired

Whether trigger mode is available.

availablearrayRequired

Trigger ids the block supports.

Schema details
Array itemstring

Additional properties are not allowed.

singleInstanceboolean

At most one per workflow.

subBlocksarrayRequired

Configuration fields in declared order, inline or by reference.

Schema details
Array itemvalue
Schema details

Any of

Option 1object

One configuration field, in declared order; duplicate ids are kept with surface.

41 fields
idstringRequired

Field id; the param name unless the field is in a basic/advanced pair.

typestringRequired

Editor control type, e.g. short-input.

titlestring

Display title.

modestring

Which editor mode shows the field.

enum
["basic","advanced","both","trigger","trigger-advanced"]
canonicalParamIdstring

Shared param name of a basic/advanced pair.

surfacestring

Whether this declaration belongs to action or trigger mode.

enum
["action","trigger"]
conditionvalue

A condition clause, or { opaque: true } (treat as possibly holding).

Schema details

Any of

Option 1object

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

Option 2object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

visibleForobject

Per operation id: whether an opaque condition can show this field.

Schema details
Additional propertiesboolean
visibleWhenobject

Per operation id: the clause on other fields an opaque condition still asks to show this field.

Schema details
Additional propertiesobject

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

visibleForModelobject

Per model id: whether an opaque condition shows this field.

Schema details
Additional propertiesboolean
requiredvalue

Whether a value is required, or the condition under which it is.

Schema details

Any of

Option 1boolean
Option 2value

A condition clause, or { opaque: true } (treat as possibly holding).

Schema details

Any of

Option 1object

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

Option 2object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

dependsOnobject

Editor clearing and fetch ordering hints; never visibility.

2 fields
allarrayRequired

Fields that must all hold values.

Schema details
Array itemstring
anyarrayRequired

Fields of which one must hold a value.

Schema details
Array itemstring

Additional properties are not allowed.

defaultValuevalue

Editor default value (any JSON).

valueDefaultvalue

The registry value thunk, evaluated where it is constant.

Schema details

Any of

Option 1object

A value thunk derived from other params.

2 fields
computedbooleanRequired

Always true.

const
true
initialvalue

What the thunk returns for a new block with no values (any JSON), when stable.

Additional properties are not allowed.

Option 2object

A value thunk that always returns this.

1 field
constantvalueRequired

The constant value (any JSON).

Additional properties are not allowed.

optionsvalue

Selectable options.

Schema details

Any of

Option 1array
Schema details
Array itemobject

One static option.

2 fields
idstringRequired

Stored option id.

labelstring

Display label; absent when it equals id, and on a block's non-operation fields.

Additional properties are not allowed.

Option 2object

Options fetched per workspace through selectorKey.

1 field
dynamicbooleanRequired

Always true.

const
true

Additional properties are not allowed.

Option 3object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

optionsVaryboolean

The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.

const
true
hiddenboolean

Hidden from the editor.

readOnlyboolean

Display-only.

passwordboolean

Holds a secret.

hideFromCopilotboolean

Not offered to Copilot.

contextstring

Only meaningful as an agent tool.

const
tool-input
paramVisibilitystring

Tool param visibility override.

emptyIsValidboolean

An empty value satisfies required.

languagestring

Code field language.

multipleboolean

Accepts several files.

minnumber

Minimum numeric value.

maxnumber

Maximum numeric value.

stepnumber

Slider increment.

integerboolean

Integers only.

columnsarray

Table column headers.

Schema details
Array itemstring
selectorKeystring

Selector that lists the options.

serviceIdstring

OAuth service the field binds.

credentialProvidersarray

Provider ids of the saved credentials the field accepts.

Schema details
Array itemstring
valueKindstringRequired

How a value for this field is written in source.

enum
["string","number","boolean","array","object","json","code","branches","tools","resource","picked","upload","none"]
resourceKindstring

Workspace resource kind, for resource fields.

storagestringRequired

Encoding a new value is stored with.

enum
["native","json-string"]
structuredstring

Structured value the canonical model decodes.

enum
["tools","branches","tableRows","inputFormat","variables","skills"]
acceptsNumberboolean

Free text that also takes a number, which the runtime coerces.

neverDecodedboolean

User text whose JSON-looking content is never decoded.

tableFilterboolean

A table filter: builder rows or a predicate.

valueShapestring

Shape of the value in an agent tool entry; absent means string.

enum
["number","boolean","json"]

Additional properties are not allowed.

Option 2object

A field stored once in the catalog subBlocks table.

1 field
sharedintegerRequired

Index into the catalog subBlocks table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

Option 3object

A run of a shared trigger’s fields, spliced in place, each with surface: "trigger".

3 fields
triggerstringRequired

Trigger id in the catalog triggers table.

startintegerRequired

First of that trigger’s fields in the run.

minimum
0
maximum
9007199254740991
countintegerRequired

How many consecutive fields the run holds.

maximum
9007199254740991
exclusiveMinimum
0

Additional properties are not allowed.

toolsobjectRequired

Tools the block calls.

2 fields
accessarrayRequired

Tool ids the block can call.

Schema details
Array itemstring
selectorstringRequired

How the tool is chosen: fixed, by operation, or by an unevaluated function.

enum
["single","operation","opaque"]

Additional properties are not allowed.

outputsobject

Declared outputs by name.

Schema details
Additional propertiesobject

One output field.

7 fields
typestringRequired

Output value type.

descriptionstring

What the output holds.

conditionvalue

When the output is present: { field, value, not?, and? }.

hiddenFromDisplayboolean

Hidden from the output picker.

propertiesobject

Nested outputs by name, each of this same shape.

Schema details
Additional propertiesvalue

A nested output, of this same shape.

sharedPropertiesinteger

In place of properties: index of the nested outputs in the catalog outputs.

minimum
0
maximum
9007199254740991
itemsvalue

Array element output, of this same shape.

Additional properties are not allowed.

sharedOutputsinteger

In place of outputs: index of the outputs in the catalog outputs table.

minimum
0
maximum
9007199254740991
operationOutputsobject

Per operation id: the outputs its tool returns, where they differ.

Schema details
Additional propertiesobject
2 fields
namesarrayRequired

Block outputs the operation returns, in order.

Schema details
Array itemstring
nullablearray

Those of them the operation may return as null.

Schema details
Array itemstring

Additional properties are not allowed.

dynamicOutputsobject

Present when outputs derive from a param at run time.

2 fields
sourcestringRequired

What shapes the outputs.

enum
["responseFormat","inputFormat","humanForm","tableRows"]
paramstringRequired

Param holding that shape.

Additional properties are not allowed.

graphobjectRequired

Edge rules for the block.

5 fields
canBeTargetbooleanRequired

Whether an edge may connect into the block.

errorPortbooleanRequired

Whether the block has an error port.

containervalueRequired

The subflow kind for a container, else null.

Schema details

Any of

Option 1string
enum
["loop","parallel"]
Option 2null
annotationOnlybooleanRequired

A canvas note: no edges at all.

branchesobject

The field lifted into named branches.

2 fields
subBlockIdstringRequired

Field holding the branches.

kindstringRequired

Branch kind.

enum
["condition","router"]

Additional properties are not allowed.

Additional properties are not allowed.

legacyIdsarray

Field id renames applied on load.

Schema details
Array itemobject

One field id rename.

4 fields
fromstringRequired

Legacy field id.

tovalueRequired

Current field id, or null when removed.

Schema details

Any of

Option 1string
Option 2null
whenOperationarray

Operations the rename applies to.

Schema details
Array itemstring
conditionalboolean

Applies only to some values.

const
true

Additional properties are not allowed.

legacyCanonicalIdsarray

Basic/advanced pair id renames applied on load.

Schema details
Array itemobject

One pair id rename.

2 fields
fromstringRequired

Legacy pair id.

tostringRequired

Current pair id.

Additional properties are not allowed.

paramAliasesobject

The name source writes for a param, by param name: oauthCredential → credential.

2 fields
actionobject

Action-surface aliases.

Schema details
Additional propertiesstring
triggerobject

Trigger-surface aliases.

Schema details
Additional propertiesstring

Additional properties are not allowed.

customobject

Present for organization custom blocks.

1 field
sourceWorkflowIdstring

Workflow the custom block runs.

Additional properties are not allowed.

Additional properties are not allowed.

triggersobjectRequired

Triggers the listed blocks can run, by trigger id.

Schema details
Additional propertiesobject

One trigger a block can run in trigger mode.

8 fields
idstringRequired

Trigger id.

providerstringRequired

Provider the trigger belongs to.

namestringRequired

Display name.

pollingboolean

Poll-based rather than webhook-based.

webhookboolean

Receives webhooks.

subBlocksarrayRequired

Configuration fields in declared order, inline or by reference.

Schema details
Array itemvalue
Schema details

Any of

Option 1object

One configuration field, in declared order; duplicate ids are kept with surface.

41 fields
idstringRequired

Field id; the param name unless the field is in a basic/advanced pair.

typestringRequired

Editor control type, e.g. short-input.

titlestring

Display title.

modestring

Which editor mode shows the field.

enum
["basic","advanced","both","trigger","trigger-advanced"]
canonicalParamIdstring

Shared param name of a basic/advanced pair.

surfacestring

Whether this declaration belongs to action or trigger mode.

enum
["action","trigger"]
conditionvalue

A condition clause, or { opaque: true } (treat as possibly holding).

Schema details

Any of

Option 1object

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

Option 2object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

visibleForobject

Per operation id: whether an opaque condition can show this field.

Schema details
Additional propertiesboolean
visibleWhenobject

Per operation id: the clause on other fields an opaque condition still asks to show this field.

Schema details
Additional propertiesobject

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

visibleForModelobject

Per model id: whether an opaque condition shows this field.

Schema details
Additional propertiesboolean
requiredvalue

Whether a value is required, or the condition under which it is.

Schema details

Any of

Option 1boolean
Option 2value

A condition clause, or { opaque: true } (treat as possibly holding).

Schema details

Any of

Option 1object

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

Option 2object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

dependsOnobject

Editor clearing and fetch ordering hints; never visibility.

2 fields
allarrayRequired

Fields that must all hold values.

Schema details
Array itemstring
anyarrayRequired

Fields of which one must hold a value.

Schema details
Array itemstring

Additional properties are not allowed.

defaultValuevalue

Editor default value (any JSON).

valueDefaultvalue

The registry value thunk, evaluated where it is constant.

Schema details

Any of

Option 1object

A value thunk derived from other params.

2 fields
computedbooleanRequired

Always true.

const
true
initialvalue

What the thunk returns for a new block with no values (any JSON), when stable.

Additional properties are not allowed.

Option 2object

A value thunk that always returns this.

1 field
constantvalueRequired

The constant value (any JSON).

Additional properties are not allowed.

optionsvalue

Selectable options.

Schema details

Any of

Option 1array
Schema details
Array itemobject

One static option.

2 fields
idstringRequired

Stored option id.

labelstring

Display label; absent when it equals id, and on a block's non-operation fields.

Additional properties are not allowed.

Option 2object

Options fetched per workspace through selectorKey.

1 field
dynamicbooleanRequired

Always true.

const
true

Additional properties are not allowed.

Option 3object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

optionsVaryboolean

The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.

const
true
hiddenboolean

Hidden from the editor.

readOnlyboolean

Display-only.

passwordboolean

Holds a secret.

hideFromCopilotboolean

Not offered to Copilot.

contextstring

Only meaningful as an agent tool.

const
tool-input
paramVisibilitystring

Tool param visibility override.

emptyIsValidboolean

An empty value satisfies required.

languagestring

Code field language.

multipleboolean

Accepts several files.

minnumber

Minimum numeric value.

maxnumber

Maximum numeric value.

stepnumber

Slider increment.

integerboolean

Integers only.

columnsarray

Table column headers.

Schema details
Array itemstring
selectorKeystring

Selector that lists the options.

serviceIdstring

OAuth service the field binds.

credentialProvidersarray

Provider ids of the saved credentials the field accepts.

Schema details
Array itemstring
valueKindstringRequired

How a value for this field is written in source.

enum
["string","number","boolean","array","object","json","code","branches","tools","resource","picked","upload","none"]
resourceKindstring

Workspace resource kind, for resource fields.

storagestringRequired

Encoding a new value is stored with.

enum
["native","json-string"]
structuredstring

Structured value the canonical model decodes.

enum
["tools","branches","tableRows","inputFormat","variables","skills"]
acceptsNumberboolean

Free text that also takes a number, which the runtime coerces.

neverDecodedboolean

User text whose JSON-looking content is never decoded.

tableFilterboolean

A table filter: builder rows or a predicate.

valueShapestring

Shape of the value in an agent tool entry; absent means string.

enum
["number","boolean","json"]

Additional properties are not allowed.

Option 2object

A field stored once in the catalog subBlocks table.

1 field
sharedintegerRequired

Index into the catalog subBlocks table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

outputsobject

Declared outputs by name.

Schema details
Additional propertiesobject

One output field.

7 fields
typestringRequired

Output value type.

descriptionstring

What the output holds.

conditionvalue

When the output is present: { field, value, not?, and? }.

hiddenFromDisplayboolean

Hidden from the output picker.

propertiesobject

Nested outputs by name, each of this same shape.

Schema details
Additional propertiesvalue

A nested output, of this same shape.

sharedPropertiesinteger

In place of properties: index of the nested outputs in the catalog outputs.

minimum
0
maximum
9007199254740991
itemsvalue

Array element output, of this same shape.

Additional properties are not allowed.

sharedOutputsinteger

In place of outputs: index of the outputs in the catalog outputs table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

buildersobjectRequired

SDK builder methods keyed by dotted path, e.g. slack.sendMessage.

Schema details
Additional propertiesobject

One SDK builder method.

4 fields
typestringRequired

Block type the builder creates.

operationstring

Stored operation id the builder pins.

triggerModeboolean

Whether the builder creates a trigger-mode block.

fixedobject

Other field values the builder pins, such as the selected trigger.

Schema details
Additional propertiesstring

Additional properties are not allowed.

subBlocksarray

Fields declared identically by several blocks or triggers, stored once.

Schema details
Array itemobject

One configuration field, in declared order; duplicate ids are kept with surface.

41 fields
idstringRequired

Field id; the param name unless the field is in a basic/advanced pair.

typestringRequired

Editor control type, e.g. short-input.

titlestring

Display title.

modestring

Which editor mode shows the field.

enum
["basic","advanced","both","trigger","trigger-advanced"]
canonicalParamIdstring

Shared param name of a basic/advanced pair.

surfacestring

Whether this declaration belongs to action or trigger mode.

enum
["action","trigger"]
conditionvalue

A condition clause, or { opaque: true } (treat as possibly holding).

Schema details

Any of

Option 1object

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

Option 2object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

visibleForobject

Per operation id: whether an opaque condition can show this field.

Schema details
Additional propertiesboolean
visibleWhenobject

Per operation id: the clause on other fields an opaque condition still asks to show this field.

Schema details
Additional propertiesobject

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

visibleForModelobject

Per model id: whether an opaque condition shows this field.

Schema details
Additional propertiesboolean
requiredvalue

Whether a value is required, or the condition under which it is.

Schema details

Any of

Option 1boolean
Option 2value

A condition clause, or { opaque: true } (treat as possibly holding).

Schema details

Any of

Option 1object

Holds when field holds value.

4 fields
fieldstringRequired

Sibling field id whose value decides the condition.

valuevalueRequired

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the match.

andobject

A second clause that must hold as well.

3 fields
fieldstringRequired

Second field id.

valuevalue

Value, or set of accepted values, the named field must hold; a set may be a lists reference.

Schema details

Any of

Option 1value
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 2array
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
Option 3object

A value list stored once in the catalog lists table.

1 field
listintegerRequired

Index into the catalog lists table.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

notboolean

Invert the second match.

Additional properties are not allowed.

Additional properties are not allowed.

Option 2object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

dependsOnobject

Editor clearing and fetch ordering hints; never visibility.

2 fields
allarrayRequired

Fields that must all hold values.

Schema details
Array itemstring
anyarrayRequired

Fields of which one must hold a value.

Schema details
Array itemstring

Additional properties are not allowed.

defaultValuevalue

Editor default value (any JSON).

valueDefaultvalue

The registry value thunk, evaluated where it is constant.

Schema details

Any of

Option 1object

A value thunk derived from other params.

2 fields
computedbooleanRequired

Always true.

const
true
initialvalue

What the thunk returns for a new block with no values (any JSON), when stable.

Additional properties are not allowed.

Option 2object

A value thunk that always returns this.

1 field
constantvalueRequired

The constant value (any JSON).

Additional properties are not allowed.

optionsvalue

Selectable options.

Schema details

Any of

Option 1array
Schema details
Array itemobject

One static option.

2 fields
idstringRequired

Stored option id.

labelstring

Display label; absent when it equals id, and on a block's non-operation fields.

Additional properties are not allowed.

Option 2object

Options fetched per workspace through selectorKey.

1 field
dynamicbooleanRequired

Always true.

const
true

Additional properties are not allowed.

Option 3object

A function the catalog could not evaluate to data.

1 field
opaquebooleanRequired

Always true.

const
true

Additional properties are not allowed.

optionsVaryboolean

The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.

const
true
hiddenboolean

Hidden from the editor.

readOnlyboolean

Display-only.

passwordboolean

Holds a secret.

hideFromCopilotboolean

Not offered to Copilot.

contextstring

Only meaningful as an agent tool.

const
tool-input
paramVisibilitystring

Tool param visibility override.

emptyIsValidboolean

An empty value satisfies required.

languagestring

Code field language.

multipleboolean

Accepts several files.

minnumber

Minimum numeric value.

maxnumber

Maximum numeric value.

stepnumber

Slider increment.

integerboolean

Integers only.

columnsarray

Table column headers.

Schema details
Array itemstring
selectorKeystring

Selector that lists the options.

serviceIdstring

OAuth service the field binds.

credentialProvidersarray

Provider ids of the saved credentials the field accepts.

Schema details
Array itemstring
valueKindstringRequired

How a value for this field is written in source.

enum
["string","number","boolean","array","object","json","code","branches","tools","resource","picked","upload","none"]
resourceKindstring

Workspace resource kind, for resource fields.

storagestringRequired

Encoding a new value is stored with.

enum
["native","json-string"]
structuredstring

Structured value the canonical model decodes.

enum
["tools","branches","tableRows","inputFormat","variables","skills"]
acceptsNumberboolean

Free text that also takes a number, which the runtime coerces.

neverDecodedboolean

User text whose JSON-looking content is never decoded.

tableFilterboolean

A table filter: builder rows or a predicate.

valueShapestring

Shape of the value in an agent tool entry; absent means string.

enum
["number","boolean","json"]

Additional properties are not allowed.

listsarray

Condition value lists used by several fields, stored once.

Schema details
Array itemarray
Schema details
Array itemvalue
Schema details

Any of

Option 1string
Option 2number
Option 3boolean
outputsarray

Output records repeated across blocks and triggers, stored once.

Schema details
Array itemobject

Declared outputs by name.

Schema details
Additional propertiesobject

One output field.

7 fields
typestringRequired

Output value type.

descriptionstring

What the output holds.

conditionvalue

When the output is present: { field, value, not?, and? }.

hiddenFromDisplayboolean

Hidden from the output picker.

propertiesobject

Nested outputs by name, each of this same shape.

Schema details
Additional propertiesvalue

A nested output, of this same shape.

sharedPropertiesinteger

In place of properties: index of the nested outputs in the catalog outputs.

minimum
0
maximum
9007199254740991
itemsvalue

Array element output, of this same shape.

Additional properties are not allowed.

scopeobject

Present when the catalog includes an organization’s custom blocks.

1 field
organizationIdstringRequired

Organization whose custom blocks are included.

Additional properties are not allowed.

Additional properties are not allowed.

Additional properties are not allowed.

Response example 1

json
{
  "data": {
    "catalogVersion": 1,
    "hash": "3f0c1a9e5b7d2c4f6a8e0b1d3c5f7a9e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a",
    "sdkMajor": 1,
    "blocks": {
      "slack_v2": {
        "type": "slack_v2",
        "name": "Slack",
        "category": "tools",
        "subBlocks": [
          {
            "id": "operation",
            "type": "dropdown",
            "valueKind": "string",
            "storage": "native",
            "options": [
              {
                "id": "send",
                "label": "Send Message"
              }
            ]
          }
        ],
        "tools": {
          "access": [
            "slack_message"
          ],
          "selector": "operation"
        },
        "outputs": {
          "ts": {
            "type": "string",
            "description": "Message timestamp"
          }
        },
        "graph": {
          "canBeTarget": true,
          "errorPort": true,
          "container": null,
          "annotationOnly": false
        }
      }
    },
    "triggers": {},
    "builders": {
      "slack.sendMessage": {
        "type": "slack_v2",
        "operation": "send"
      }
    }
  }
}

Response headers

ETagstring

The catalog hash, quoted. Send it back in If-None-Match to revalidate the catalog.

minLength
1
X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit