The trigger fields this workflow reads, derived from the graph
curl --request GET \
--url https://api.pineyard.ai/workflows/{id}/trigger-contract \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/workflows/{id}/trigger-contract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/workflows/{id}/trigger-contract"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"fields": [
{
"name": "<string>",
"type": "string",
"description": "<string>",
"declared": true,
"used": true,
"usedBy": [
"<string>"
]
}
],
"undeclared": [
"<string>"
],
"unused": [
"<string>"
]
}{
"error": "not_found"
}{
"error": "workflow_invalid",
"details": [
"<string>"
]
}Workflows
The trigger fields this workflow reads, derived from the graph
Derived from the persisted definition, never stored, so it cannot drift from what the graph actually reads. undeclared lists fields the graph references but the start step does not declare — informational/warning only, never a publish blocker. unused lists declared fields nothing references.
GET
/
workflows
/
{id}
/
trigger-contract
The trigger fields this workflow reads, derived from the graph
curl --request GET \
--url https://api.pineyard.ai/workflows/{id}/trigger-contract \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/workflows/{id}/trigger-contract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/workflows/{id}/trigger-contract"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"fields": [
{
"name": "<string>",
"type": "string",
"description": "<string>",
"declared": true,
"used": true,
"usedBy": [
"<string>"
]
}
],
"undeclared": [
"<string>"
],
"unused": [
"<string>"
]
}{
"error": "not_found"
}{
"error": "workflow_invalid",
"details": [
"<string>"
]
}Required scope:
workflows.view
Requires workflows enabled for your workspace. Otherwise the request is refused; see Errors.

