cURL
curl --request POST \ --url https://cloud.activepieces.com/api/v1/flows \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "displayName": "<string>", "folderId": "<string>", "folderName": "<string>", "projectId": "<string>", "metadata": {} }'
{ "id": "<string>", "created": "<string>", "updated": "<string>", "projectId": "<string>", "externalId": "<string>", "folderId": "<string>", "status": "ENABLED", "publishedVersionId": "<string>", "metadata": {}, "version": { "id": "<string>", "created": "<string>", "updated": "<string>", "flowId": "<string>", "displayName": "<string>", "trigger": { "name": "<string>", "valid": true, "displayName": "<string>", "nextAction": "<any>", "type": "PIECE_TRIGGER", "settings": { "sampleData": { "sampleDataFileId": "<string>", "sampleDataInputFileId": "<string>", "lastTestDate": "<string>" }, "propertySettings": {}, "customLogoUrl": "<string>", "pieceName": "<string>", "pieceVersion": "<string>", "triggerName": "<string>", "input": {} } }, "updatedBy": "<string>", "valid": true, "schemaVersion": "<string>", "agentIds": [ "<string>" ], "state": "LOCKED", "connectionIds": [ "<string>" ] }, "triggerSource": { "schedule": { "type": "CRON_EXPRESSION", "cronExpression": "<string>", "timezone": "<string>" } } }
Create a flow
Use your api key generated from the admin console
Show child attributes
Default Response
ENABLED