Get a workflow node type schema
GET/workflow/nodes/{nodeId}/schema
Base URL: https://api.tinkermode.com
Returns the definition for an Orion node. The node's inputSchema and outputSchema are JSON Schema documents.
Authentication
This endpoint does not require authentication.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
nodeId | string | Yes | The unique identifier for the node type. |
Responses
200 Successfully retrieved the node type definition.
Content type: application/json
| Property | Type | Required | Constraints | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
availableBranches | array<object> | No | min items: 1 | Branches this node may select. Present only for branching nodes; a workflow step using this node may define steps for any subset of these branch IDs, and for no ID outside them. | ||||||||||||||||||||
| ||||||||||||||||||||||||
description | string | No | Human-readable description of what the node does. | |||||||||||||||||||||
id | string | No | The unique identifier of the node type. | |||||||||||||||||||||
inputSchema | object | No | JSON Schema for a node's input field. | |||||||||||||||||||||
outputSchema | object | No | JSON Schema for a node's output field. | |||||||||||||||||||||
Response example
{
"id": "node.schema.example",
"description": "Gets an example of a workflow node schema.",
"inputSchema": {
"type": "object",
"properties": {
"exampleProperty": {
"type": "number",
"minimum": -90,
"maximum": 90
}
},
"required": [
"exampleProperty"
],
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"exampleProperty": {
"type": "number"
},
"someOutputProperty": {
"type": "object",
"properties": {
"past": {
"$ref": "#/$defs/someOutputPropertyData"
},
"current": {
"$ref": "#/$defs/someOutputPropertyData"
},
"future": {
"$ref": "#/$defs/someOutputPropertyData"
}
},
"required": [
"past",
"current",
"future"
],
"additionalProperties": false
}
},
"$defs": {
"someOutputPropertyData": {
"type": [
"null",
"object"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"condition": {
"type": "string"
}
},
"required": [
"date",
"condition"
],
"additionalProperties": false
}
},
"required": [
"exampleProperty",
"someOutputProperty"
],
"additionalProperties": false
}
}401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
404 The requested schema does not exist or is not accessible.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |