# Workflow
> Type in domain **Workflows**
- HTML: [Workflow.html](Workflow.html)
- Raw SDL: [Workflow.sdl](Workflow.sdl)
- Covered by: [llms.txt](../llms.txt)
## Fields
- `id`: `ID!` _(beta)_ — `Workflow` Id.
- `statuses`: `[WorkflowStatus]!` _(beta)_ — Multiple statuses define a `Workflow`. They represent a line/row in the Kanban board of the current `Workflow`.
## Reach via
Example queries that can return this type from the root `Query`.
### `library › workflow`
```graphql
query LibraryWorkflow {
library(id: "…") {
workflow {
__typename
id
statuses {
name
id
enterRules
assignedUsers {
__typename
name
id
}
checklistPresets {
id
content
assignedUser { id }
}
color {
alpha
blue
green
red
}
tasks {
total
page
limit
hasNextPage
items { id }
}
}
}
}
}
```
Raw: [`LibraryWorkflow.sdl`](../examples/LibraryWorkflow.sdl)
### `workspaceProject › workflow`
```graphql
query WorkspaceProjectWorkflow {
workspaceProject(id: "…") {
workflow {
__typename
id
statuses {
name
id
enterRules
assignedUsers {
__typename
name
id
}
checklistPresets {
id
content
assignedUser { id }
}
color {
alpha
blue
green
red
}
tasks {
total
page
limit
hasNextPage
items { id }
}
}
}
}
}
```
Raw: [`WorkspaceProjectWorkflow.sdl`](../examples/WorkspaceProjectWorkflow.sdl)
### `brand › libraries › workflow`
```graphql
query BrandLibrariesWorkflow {
brand(id: "…") {
libraries(limit: 25, page: 1) {
items {
workflow {
__typename
id
statuses {
name
id
enterRules
assignedUsers {
__typename
name
id
}
checklistPresets {
id
content
assignedUser { id }
}
color {
alpha
blue
green
red
}
tasks {
total
page
limit
hasNextPage
items { id }
}
}
}
}
}
}
}
```
Raw: [`BrandLibrariesWorkflow.sdl`](../examples/BrandLibrariesWorkflow.sdl)
### `webhooks › project › workflow`
```graphql
query WebhooksProjectWorkflow {
webhooks(limit: 25, page: 1) {
items {
... on ProjectWebhook {
project {
... on DocumentLibrary {
workflow {
__typename
id
statuses {
name
id
enterRules
assignedUsers {
__typename
name
id
}
checklistPresets {
id
content
assignedUser { id }
}
color {
alpha
blue
green
red
}
tasks {
total
page
limit
hasNextPage
items { id }
}
}
}
}
}
}
}
}
}
```
Raw: [`WebhooksProjectWorkflow.sdl`](../examples/WebhooksProjectWorkflow.sdl)
### `brands › libraries › workflow`
```graphql
query BrandsLibrariesWorkflow {
brands {
libraries(limit: 25, page: 1) {
items {
workflow {
__typename
id
statuses {
name
id
enterRules
assignedUsers {
__typename
name
id
}
checklistPresets {
id
content
assignedUser { id }
}
color {
alpha
blue
green
red
}
tasks {
total
page
limit
hasNextPage
items { id }
}
}
}
}
}
}
}
```
Raw: [`BrandsLibrariesWorkflow.sdl`](../examples/BrandsLibrariesWorkflow.sdl)