Documentation Index
Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Using TypeScript? Check out our GraphQL SDK for a fully typed client.
We provide three methods for fetching tasks:
- Get tasks — paginated collection
- Get task by ID
- Get task by ref —
ref is the short human-readable identifier shown in the Plain app (e.g. T-123)
These queries require the following permissions:
Get tasks
query getTasks($first: Int = 50, $after: String) {
tasks(first: $first, after: $after) {
edges {
node {
id
ref
title
description
status
priority
assignedTo {
__typename
... on User {
id
fullName
}
... on MachineUser {
id
fullName
}
}
company {
id
name
}
tenant {
id
name
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Get task by ID
query getTask($taskId: ID!) {
task(taskId: $taskId) {
id
ref
title
description
status
priority
assignedTo {
__typename
... on User {
id
fullName
}
... on MachineUser {
id
fullName
}
}
}
}
{
"taskId": "ta_01HXXXXXXXXXXXXXXXXXXXXXXX"
}
Get task by ref
query getTaskByRef($ref: String!) {
taskByRef(ref: $ref) {
id
ref
title
description
status
priority
}
}