Skip to content

List workflows

GET
/workflows
curl --request GET \
--url 'https://safe-api.safetyradar.com/v2/workflows?flowType=assessment&q=Safety&page=1&limit=50' \
--header 'Authorization: Bearer <token>' \
--header 'x-team: my-team-slug'

List all active workflow definitions for a team. Only returns the active version of each workflow.

flowType

Filter by flow type (e.g., ‘assessment’, ‘form_submission’)

string
Example
assessment

Filter by flow type (e.g., ‘assessment’, ‘form_submission’)

q

Search workflows by name

string
Example
Safety

Search workflows by name

page

Page number, starting at 1 (default: 1)

integer
default: 1
Example
1

Page number, starting at 1 (default: 1)

limit

Results per page (default: 50, max: 1000). A larger value is refused with a 400 validation_error; it is not clamped.

integer
default: 50 <= 1000
Example
50

Results per page (default: 50, max: 1000). A larger value is refused with a 400 validation_error; it is not clamped.

x-team

Deprecated — accepted but ignored; the v2 API is org-scoped.

string
Example
my-team-slug

Deprecated — accepted but ignored; the v2 API is org-scoped.

List of workflows

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
organizationId
required
string format: uuid
teamId
required
string format: uuid
nullable
flowType
required
string
name
required
string
version
required
integer
>= -2147483648 <= 2147483647
isActive
required
boolean
createdById
required
string format: uuid
nullable
createdAt
required
string
updatedAt
required
string
meta
required
object
pagination
required
object
page
required
number
limit
required
number
total
required
number
totalPages
required
number
hasNext
required
boolean
hasPrev
required
boolean
Examplegenerated
{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"organizationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"teamId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"flowType": "example",
"name": "example",
"version": 1,
"isActive": true,
"createdById": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"createdAt": "example",
"updatedAt": "example"
}
],
"meta": {
"pagination": {
"page": 1,
"limit": 1,
"total": 1,
"totalPages": 1,
"hasNext": true,
"hasPrev": true
}
}
}

Invalid request: a parameter or the body failed validation (validation_error), or the body is not valid JSON (invalid_json)

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Unauthorized

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Rate limit exceeded (rate_limit_exceeded)

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Unexpected server error (internal_error)

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Version bd999fd · Released November 23, 2026