Skip to main content
GET
/
v1
/
workspaces
/
{workspace_id}
/
workflows
List workflows
curl --request GET \
  --url https://api.app.layer.ai/api/v1/workspaces/{workspace_id}/workflows \
  --header 'Authorization: Bearer <token>'
{
  "workflows": [
    {
      "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "inputs": [
        {
          "name": "<string>",
          "type": "<string>",
          "required": true,
          "description": "<string>",
          "value_schema": {},
          "display_name": "<string>",
          "default": "<unknown>"
        }
      ],
      "outputs": [
        {
          "name": "<string>",
          "type": "<string>",
          "description": "<string>",
          "value_schema": {},
          "display_name": "<string>"
        }
      ],
      "modality": "text",
      "published_at": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "has_more_results": true,
    "next_cursor": "<string>",
    "total_count": 123
  }
}

Authorizations

Authorization
string
header
required

Personal Access Token or OAuth2 JWT. Create a PAT at app.layer.ai → Settings → Personal Access Tokens.

Path Parameters

workspace_id
string<uuid>
required

Query Parameters

search
string | null

Full-text search on workflow name/description

limit
integer
default:20
Required range: 1 <= x <= 100
cursor
string | null

Response

Successful Response

workflows
WorkflowSummary · object[]
required
pagination
PaginationOutput · object
required