{ "openapi": "3.0.3", "info": { "title": "Activepieces Documentation", "version": "0.14.3" }, "components": { "schemas": { "project-member": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "email": { "type": "string" }, "platformId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string", "nullable": true }, "projectId": { "type": "string" }, "role": { "anyOf": [ { "type": "string", "enum": [ "ADMIN" ] }, { "type": "string", "enum": [ "EDITOR" ] }, { "type": "string", "enum": [ "VIEWER" ] } ] }, "status": { "anyOf": [ { "type": "string", "enum": [ "ACTIVE" ] }, { "type": "string", "enum": [ "PENDING" ] } ] } }, "required": [ "id", "created", "updated", "email", "platformId", "projectId", "role", "status" ] }, "project": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "ownerId": { "type": "string" }, "displayName": { "type": "string" }, "notifyStatus": { "anyOf": [ { "type": "string", "enum": [ "NEVER" ] }, { "type": "string", "enum": [ "ALWAYS" ] } ] }, "type": { "anyOf": [ { "type": "string", "enum": [ "PLATFORM_MANAGED" ] }, { "type": "string", "enum": [ "STANDALONE" ] } ] }, "platformId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string" }, "externalId": { "type": "string" }, "plan": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "stripeSubscriptionId": { "type": "string", "nullable": true }, "subscriptionStartDatetime": { "type": "string" }, "flowPlanName": { "type": "string" }, "minimumPollingInterval": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "tasks": { "type": "number" }, "tasksPerDay": { "type": "number", "nullable": true } }, "required": [ "id", "created", "updated", "projectId", "stripeSubscriptionId", "subscriptionStartDatetime", "flowPlanName", "minimumPollingInterval", "connections", "teamMembers", "tasks", "tasksPerDay" ] }, "usage": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "consumedTasks": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "consumedTasksToday": { "type": "number" }, "nextResetDatetime": { "type": "string" } }, "required": [ "id", "created", "updated", "projectId", "consumedTasks", "connections", "teamMembers", "consumedTasksToday", "nextResetDatetime" ] } }, "required": [ "id", "created", "updated", "ownerId", "displayName", "notifyStatus", "type", "plan", "usage" ] }, "flow": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "folderId": { "type": "string", "nullable": true }, "version": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "flowId": { "type": "string" }, "displayName": { "type": "string" }, "trigger": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "valid": { "type": "boolean" }, "displayName": { "type": "string" }, "nextAction": {}, "type": { "type": "string", "enum": [ "WEBHOOK" ] }, "settings": { "type": "object", "properties": { "inputUiInfo": { "additionalProperties": true, "type": "object", "properties": { "currentSelectedData": {}, "customizedInputs": { "type": "object", "additionalProperties": {} }, "lastTestDate": { "type": "string" } } } }, "required": [ "inputUiInfo" ] } }, "required": [ "name", "valid", "displayName", "type", "settings" ] }, { "type": "object", "properties": { "name": { "type": "string" }, "valid": { "type": "boolean" }, "displayName": { "type": "string" }, "nextAction": {}, "type": { "type": "string", "enum": [ "PIECE_TRIGGER" ] }, "settings": { "type": "object", "properties": { "pieceName": { "type": "string" }, "pieceVersion": { "type": "string", "pattern": "^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$" }, "pieceType": { "anyOf": [ { "type": "string", "enum": [ "CUSTOM" ] }, { "type": "string", "enum": [ "OFFICIAL" ] } ] }, "packageType": { "anyOf": [ { "type": "string", "enum": [ "ARCHIVE" ] }, { "type": "string", "enum": [ "REGISTRY" ] } ] }, "triggerName": { "type": "string" }, "input": { "type": "object", "additionalProperties": {} }, "inputUiInfo": { "additionalProperties": true, "type": "object", "properties": { "currentSelectedData": {}, "customizedInputs": { "type": "object", "additionalProperties": {} }, "lastTestDate": { "type": "string" } } } }, "required": [ "pieceName", "pieceVersion", "pieceType", "packageType", "triggerName", "input", "inputUiInfo" ] } }, "required": [ "name", "valid", "displayName", "type", "settings" ] }, { "type": "object", "properties": { "name": { "type": "string" }, "valid": { "type": "boolean" }, "displayName": { "type": "string" }, "nextAction": {}, "type": { "type": "string", "enum": [ "EMPTY" ] }, "settings": {} }, "required": [ "name", "valid", "displayName", "type", "settings" ] } ] }, "updatedBy": { "type": "string" }, "valid": { "type": "boolean" }, "state": { "anyOf": [ { "type": "string", "enum": [ "LOCKED" ] }, { "type": "string", "enum": [ "DRAFT" ] } ] } }, "required": [ "id", "created", "updated", "flowId", "displayName", "trigger", "updatedBy", "valid", "state" ] }, "status": { "anyOf": [ { "type": "string", "enum": [ "ENABLED" ] }, { "type": "string", "enum": [ "DISABLED" ] }, { "type": "string", "enum": [ "UNPUBLISHED" ] } ] }, "schedule": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "CRON_EXPRESSION" ] }, "cronExpression": { "type": "string" }, "timezone": { "type": "string" } }, "required": [ "type", "cronExpression", "timezone" ] } }, "required": [ "id", "created", "updated", "projectId", "folderId", "version", "status" ] }, "app-connection": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "name": { "type": "string" }, "type": { "anyOf": [ { "type": "string", "enum": [ "OAUTH2" ] }, { "type": "string", "enum": [ "PLATFORM_OAUTH2" ] }, { "type": "string", "enum": [ "CLOUD_OAUTH2" ] }, { "type": "string", "enum": [ "SECRET_TEXT" ] }, { "type": "string", "enum": [ "BASIC_AUTH" ] }, { "type": "string", "enum": [ "CUSTOM_AUTH" ] } ] }, "appName": { "type": "string" }, "projectId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string" }, "status": { "anyOf": [ { "type": "string", "enum": [ "ACTIVE" ] }, { "type": "string", "enum": [ "ERROR" ] } ] } }, "required": [ "id", "created", "updated", "name", "type", "appName", "projectId", "status" ] } } }, "paths": { "/v1/projects/": { "post": { "tags": [ "projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "displayName": { "type": "string" } }, "required": [ "displayName" ] } } }, "required": true }, "responses": { "201": { "description": "Default Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "ownerId": { "type": "string" }, "displayName": { "type": "string" }, "notifyStatus": { "anyOf": [ { "type": "string", "enum": [ "NEVER" ] }, { "type": "string", "enum": [ "ALWAYS" ] } ] }, "type": { "anyOf": [ { "type": "string", "enum": [ "PLATFORM_MANAGED" ] }, { "type": "string", "enum": [ "STANDALONE" ] } ] }, "platformId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string" }, "externalId": { "type": "string" }, "plan": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "stripeSubscriptionId": { "type": "string", "nullable": true }, "subscriptionStartDatetime": { "type": "string" }, "flowPlanName": { "type": "string" }, "minimumPollingInterval": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "tasks": { "type": "number" }, "tasksPerDay": { "type": "number", "nullable": true } }, "required": [ "id", "created", "updated", "projectId", "stripeSubscriptionId", "subscriptionStartDatetime", "flowPlanName", "minimumPollingInterval", "connections", "teamMembers", "tasks", "tasksPerDay" ] }, "usage": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "consumedTasks": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "consumedTasksToday": { "type": "number" }, "nextResetDatetime": { "type": "string" } }, "required": [ "id", "created", "updated", "projectId", "consumedTasks", "connections", "teamMembers", "consumedTasksToday", "nextResetDatetime" ] } }, "required": [ "id", "created", "updated", "ownerId", "displayName", "notifyStatus", "type", "plan", "usage" ] } } } } } }, "get": { "tags": [ "projects" ], "parameters": [ { "schema": { "type": "string" }, "in": "query", "name": "externalId", "required": false } ], "responses": { "200": { "description": "Default Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "ownerId": { "type": "string" }, "displayName": { "type": "string" }, "notifyStatus": { "anyOf": [ { "type": "string", "enum": [ "NEVER" ] }, { "type": "string", "enum": [ "ALWAYS" ] } ] }, "type": { "anyOf": [ { "type": "string", "enum": [ "PLATFORM_MANAGED" ] }, { "type": "string", "enum": [ "STANDALONE" ] } ] }, "platformId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string" }, "externalId": { "type": "string" }, "plan": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "stripeSubscriptionId": { "type": "string", "nullable": true }, "subscriptionStartDatetime": { "type": "string" }, "flowPlanName": { "type": "string" }, "minimumPollingInterval": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "tasks": { "type": "number" }, "tasksPerDay": { "type": "number", "nullable": true } }, "required": [ "id", "created", "updated", "projectId", "stripeSubscriptionId", "subscriptionStartDatetime", "flowPlanName", "minimumPollingInterval", "connections", "teamMembers", "tasks", "tasksPerDay" ] }, "usage": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "consumedTasks": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "consumedTasksToday": { "type": "number" }, "nextResetDatetime": { "type": "string" } }, "required": [ "id", "created", "updated", "projectId", "consumedTasks", "connections", "teamMembers", "consumedTasksToday", "nextResetDatetime" ] } }, "required": [ "id", "created", "updated", "ownerId", "displayName", "notifyStatus", "type", "plan", "usage" ] } }, "next": { "description": "Cursor to the next page", "type": "string", "nullable": true }, "previous": { "description": "Cursor to the previous page", "type": "string", "nullable": true } }, "required": [ "data", "next", "previous" ] } } } } } } }, "/v1/projects/{id}": { "post": { "tags": [ "projects" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "notifyStatus": { "anyOf": [ { "type": "string", "enum": [ "NEVER" ] }, { "type": "string", "enum": [ "ALWAYS" ] } ] }, "displayName": { "type": "string" }, "plan": { "type": "object", "properties": { "teamMembers": { "type": "number" }, "tasks": { "type": "number" } }, "required": [ "teamMembers", "tasks" ] } }, "required": [ "notifyStatus", "displayName" ] } } }, "required": true }, "parameters": [ { "schema": { "type": "string" }, "in": "path", "name": "id", "required": true } ], "responses": { "200": { "description": "Default Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "ownerId": { "type": "string" }, "displayName": { "type": "string" }, "notifyStatus": { "anyOf": [ { "type": "string", "enum": [ "NEVER" ] }, { "type": "string", "enum": [ "ALWAYS" ] } ] }, "type": { "anyOf": [ { "type": "string", "enum": [ "PLATFORM_MANAGED" ] }, { "type": "string", "enum": [ "STANDALONE" ] } ] }, "platformId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string" }, "externalId": { "type": "string" }, "plan": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "stripeSubscriptionId": { "type": "string", "nullable": true }, "subscriptionStartDatetime": { "type": "string" }, "flowPlanName": { "type": "string" }, "minimumPollingInterval": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "tasks": { "type": "number" }, "tasksPerDay": { "type": "number", "nullable": true } }, "required": [ "id", "created", "updated", "projectId", "stripeSubscriptionId", "subscriptionStartDatetime", "flowPlanName", "minimumPollingInterval", "connections", "teamMembers", "tasks", "tasksPerDay" ] }, "usage": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "projectId": { "type": "string" }, "consumedTasks": { "type": "number" }, "connections": { "type": "number" }, "teamMembers": { "type": "number" }, "consumedTasksToday": { "type": "number" }, "nextResetDatetime": { "type": "string" } }, "required": [ "id", "created", "updated", "projectId", "consumedTasks", "connections", "teamMembers", "consumedTasksToday", "nextResetDatetime" ] } }, "required": [ "id", "created", "updated", "ownerId", "displayName", "notifyStatus", "type", "plan", "usage" ] } } } } } } }, "/v1/project-members/": { "post": { "tags": [ "project-members" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "projectId": { "type": "string" }, "email": { "type": "string" }, "role": { "anyOf": [ { "type": "string", "enum": [ "ADMIN" ] }, { "type": "string", "enum": [ "EDITOR" ] }, { "type": "string", "enum": [ "VIEWER" ] } ] }, "status": { "default": "PENDING", "anyOf": [ { "type": "string", "enum": [ "ACTIVE" ] }, { "type": "string", "enum": [ "PENDING" ] } ] } }, "required": [ "projectId", "email", "role" ] } } }, "required": true }, "responses": { "201": { "description": "Default Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "created": { "type": "string" }, "updated": { "type": "string" }, "email": { "type": "string" }, "platformId": { "pattern": "^[0-9a-zA-Z]{21}$", "type": "string", "nullable": true }, "projectId": { "type": "string" }, "role": { "anyOf": [ { "type": "string", "enum": [ "ADMIN" ] }, { "type": "string", "enum": [ "EDITOR" ] }, { "type": "string", "enum": [ "VIEWER" ] } ] }, "status": { "anyOf": [ { "type": "string", "enum": [ "ACTIVE" ] }, { "type": "string", "enum": [ "PENDING" ] } ] } }, "required": [ "id", "created", "updated", "email", "platformId", "projectId", "role", "status" ] } } } } } } }, "/v1/project-members/{id}": { "delete": { "tags": [ "project-members" ], "parameters": [ { "schema": { "type": "string" }, "in": "path", "name": "id", "required": true } ], "responses": { "204": { "description": "Default Response" } } } } }, "servers": [ { "url": "https://cloud.activepieces.com/api", "description": "Production Server" } ], "externalDocs": { "url": "https://www.activepieces.com/docs", "description": "Find more info here" } }