Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

Email Marketing

getList WorkflowsgetGet WorkflowpostCreate WorkflowputUpdate WorkflowdelDelete WorkflowpostVerify Workflow Config

Knowledge

Support

Projects

Workflows

List Workflows

Lists the project's workflows. Supports paging and an optional sort.

GET
/projects/{projectId}/workflows

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project to list workflows from.

Query Parameters

orderBystring

Field to sort by. Omit to keep the default ordering.

orderDirectionstring

Sort direction. Defaults to desc. Ignored unless orderBy is set.

Value in: "asc" | "desc"
skipnumber

Number of workflows to skip before collecting results.

takenumber

Maximum number of workflows to return.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://www.saasco.com/api/v2/projects/string/workflows"
[
  {
    "id": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "name": "string",
    "projectId": "string",
    "triggerEvent": "string",
    "maxRuns": -9007199254740991,
    "minDelayAmount": 5,
    "minDelayUnit": "MINUTES",
    "frequency": "ONCE",
    "status": "INACTIVE",
    "contactsFilterGroups": [
      {
        "filters": [
          {
            "attributeDistinctId": "string",
            "attributeType": "string",
            "operator": "equals",
            "value": "string"
          }
        ],
        "oneDayEventFilters": [
          {
            "eventName": "string",
            "operator": "performed"
          }
        ],
        "groupType": "AND",
        "requireSubscribed": true
      }
    ]
  }
]
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

Get Sender Status

Reports whether the project is currently allowed to send email. Saasco blocks sending for projects with poor deliverability or abuse signals; when blocked, `canSend` is false and `statusReason` explains why. Send Email Campaign and Send Test Email both enforce this, so check it before offering a send action in your own UI.

Get Workflow

Fetches a single workflow by ID. Returns 404 if no workflow matches.