List workflows
/api/v1/ext/workflows
List the automation workflows in a workspace owned by the installer.
Read-only list of the workflows built in Automations for a workspace. Scoped to the installer, so a token can only read the workflows of its own workspaces. Supports pagination and name search.
An unknown or non-owned workspace_id returns 404 (never an empty 200), and the same 404 is returned whether the workspace does not exist or simply is not yours — so existence is never leaked.
Pagination: page is clamped to >= 1 (default 1) and limit to [1, 200] (default 10). Invalid bounds are normalised rather than rejected; the response pagination object reports the applied page / limit, max_limit, total, total_pages, the raw requested values, and a normalized flag.
This is a read-only surface — creating, editing, and triggering workflows is done in the dashboard, not via the API.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | The workspace whose workflows to list. Must belong to the installer. |
| page | query | number | no | Page number — integer clamped to >= 1; default 1. Invalid values (0, negative, non-numeric) are normalised to 1, NOT rejected; see the response pagination object. |
| limit | query | number | no | Page size — integer clamped to [1, 200]; default 10. Out-of-range or non-numeric values are normalised, NOT rejected; the applied bounds and a normalized flag are echoed in the response pagination object. |
| search | query | string | no | Filter workflows by name (case-insensitive). |
Responses
| Status | When |
|---|---|
200 | OK |
400 | workspace_id missing |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id does not exist or is not owned by the installer (same response for both, so existence is never leaked) |
Response schema
workflowsobjectThe page of workflows plus totals for the workspace
workflowsarray<object>The page of workflows. Each carries id, name, status ("active" / "draft"), created_at, updated_at.
totalnumberTotal workflows in the workspace matching the filter.
12activeCountnumberHow many of them are active.
8draftCountnumberHow many of them are drafts.
4curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/workflows" \
-H "Authorization: Bearer <ACCESS_TOKEN>"{
"success": true,
"data": {
"workflows": [
{
"id": "wf_9a1",
"name": "Welcome new lead",
"status": "active",
"created_at": "2026-05-21T09:14:22.000Z",
"updated_at": "2026-07-01T12:00:00.000Z"
},
{
"id": "wf_9a2",
"name": "Missed-call follow up",
"status": "draft",
"created_at": "2026-06-02T10:00:00.000Z",
"updated_at": "2026-06-02T10:00:00.000Z"
}
],
"total": 12,
"activeCount": 8,
"draftCount": 4
},
"pagination": {
"page": 1,
"limit": 10,
"max_limit": 200,
"total": 12,
"total_pages": 2,
"requested": {
"page": null,
"limit": null
},
"normalized": false
}
}The workspace whose workflows to list. Must belong to the installer.
Page number — integer clamped to >= 1; default 1. Invalid values (0, negative, non-numeric) are normalised to 1, NOT rejected; see the response `pagination` object.
Page size — integer clamped to [1, 200]; default 10. Out-of-range or non-numeric values are normalised, NOT rejected; the applied bounds and a `normalized` flag are echoed in the response `pagination` object.
Filter workflows by name (case-insensitive).
« List submissions
Get workflow »
