curl --request POST \
--url https://api.sakari.io/v1/accounts/{accountId}/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"definition": {
"nodes": [
{
"id": "<string>",
"type": {},
"config": {
"message": "<string>",
"groups": [
{
"id": "<string>",
"name": "<string>",
"phoneNumbers?": [
"<any>"
],
"notifications": [
"<any>"
],
"tags": [
"<any>"
],
"users": [
"<any>"
],
"senders": [
"<any>"
],
"officeHours": {
"active": "<any>",
"timezone": "<any>",
"times": "<any>"
},
"isDefault": true,
"useSharedPool": true
}
]
}
}
],
"edges": [
{
"id": "<string>",
"type": "standard",
"source": "<string>",
"target": "<string>",
"value": "<string>"
}
],
"properties": [
{
"name": "<string>",
"dataType": "string",
"created": {
"at": "2023-11-07T05:31:56Z"
}
}
]
},
"templateId": "<string>",
"parameters": [
{
"id": "<string>",
"value": "<string>"
}
]
}'
{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"versions": [
{
"id": "<string>",
"name": "<string>",
"definition": {
"nodes": [
{
"id": "<string>",
"type": {
"id": "<string>",
"type": "<string>",
"group": "<string>",
"name": "<string>",
"label": "<string>",
"description": "<string>",
"icon": "<string>",
"properties": [
{}
],
"outputs": [
{
"default": true,
"path": "<string>",
"name": "<string>",
"dataType": "boolean"
}
],
"validation": {
"numEdgeCondition": "exactly",
"numEdges": 123,
"edges": [
{}
]
},
"supportsReenrollment": true,
"color": "<string>",
"status": "<string>",
"supportLink": "<string>"
},
"config": {
"message": "<string>",
"groups": [
"<any>"
]
}
}
],
"edges": [
{
"id": "<string>",
"type": "standard",
"source": "<string>",
"target": "<string>",
"value": "<string>"
}
],
"properties": [
{
"name": "<string>",
"dataType": "string",
"created": {
"at": "2023-11-07T05:31:56Z"
}
}
]
},
"readonly": true,
"active": "2023-11-07T05:31:56Z",
"lastActive": "2023-11-07T05:31:56Z",
"created": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
},
"updated": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
}
}
],
"created": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
},
"updated": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
}
}
}
curl --request POST \
--url https://api.sakari.io/v1/accounts/{accountId}/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"definition": {
"nodes": [
{
"id": "<string>",
"type": {},
"config": {
"message": "<string>",
"groups": [
{
"id": "<string>",
"name": "<string>",
"phoneNumbers?": [
"<any>"
],
"notifications": [
"<any>"
],
"tags": [
"<any>"
],
"users": [
"<any>"
],
"senders": [
"<any>"
],
"officeHours": {
"active": "<any>",
"timezone": "<any>",
"times": "<any>"
},
"isDefault": true,
"useSharedPool": true
}
]
}
}
],
"edges": [
{
"id": "<string>",
"type": "standard",
"source": "<string>",
"target": "<string>",
"value": "<string>"
}
],
"properties": [
{
"name": "<string>",
"dataType": "string",
"created": {
"at": "2023-11-07T05:31:56Z"
}
}
]
},
"templateId": "<string>",
"parameters": [
{
"id": "<string>",
"value": "<string>"
}
]
}'
{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"versions": [
{
"id": "<string>",
"name": "<string>",
"definition": {
"nodes": [
{
"id": "<string>",
"type": {
"id": "<string>",
"type": "<string>",
"group": "<string>",
"name": "<string>",
"label": "<string>",
"description": "<string>",
"icon": "<string>",
"properties": [
{}
],
"outputs": [
{
"default": true,
"path": "<string>",
"name": "<string>",
"dataType": "boolean"
}
],
"validation": {
"numEdgeCondition": "exactly",
"numEdges": 123,
"edges": [
{}
]
},
"supportsReenrollment": true,
"color": "<string>",
"status": "<string>",
"supportLink": "<string>"
},
"config": {
"message": "<string>",
"groups": [
"<any>"
]
}
}
],
"edges": [
{
"id": "<string>",
"type": "standard",
"source": "<string>",
"target": "<string>",
"value": "<string>"
}
],
"properties": [
{
"name": "<string>",
"dataType": "string",
"created": {
"at": "2023-11-07T05:31:56Z"
}
}
]
},
"readonly": true,
"active": "2023-11-07T05:31:56Z",
"lastActive": "2023-11-07T05:31:56Z",
"created": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
},
"updated": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
}
}
],
"created": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
},
"updated": {
"at": "2023-11-07T05:31:56Z",
"by": {
"id": "<string>",
"name": "Joe Bloggs",
"firstName": "Joe",
"lastName": "Bloggs",
"email": "joe@bloggs.com",
"source": "<string>",
"subSource": "<string>"
}
}
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Account to apply operations to
successful operation
The response is of type object
.