Pie GraphQL API
Welcome to the Pie API documentation. Pie exposes its functionality through a single GraphQL API — the same API that powers the Pie web application. Everything you can do in the app, you can do through the API: browse and manage projects, create tasks, assign work, track time, and more.
Endpoint
#
All requests are POST requests to:
An interactive GraphiQL explorer is available at https://my.pie.me/api/graphiql — the easiest way to try queries while you read these docs.
Authentication
#
Authorization: Bearer pie_pat_... with every request. The token can see that one organization only. A Read token cannot make changes (api_token_read_only). A Read + write token can make a set of changes, such as creating and updating projects, tasks, assignments, time and posts, and creating boxes; anything outside that set is refused (api_token_not_allowed). Changes made with it are shown in Pie as "API User #" followed by the token's short code. The token belongs to the organization, not to the admin who created it, so me is not available with it; use organizations instead.Core concepts
#
Pie organizes work in a hierarchy:
Most queries are scoped by a parent id: projects and recipes take a workspaceId, slices are read through a project query, and todos are fetched with projectTodos(projectId:) or sliceTodos(sliceIds:).
Todos do not have to live inside a project: createTodo accepts a workspaceId (instead of a sliceId) to create a standalone task with no project, slice, or box involved. Standalone todos can only be created in your personal workspace and show up on the "My Work" page, not on project boards.
Personal workspaces are a special case: every user has one, and it can only hold standalone todos — projects, recipes, and other shared structures cannot be created there. The reverse also holds: regular workspaces cannot hold standalone todos — there, every todo lives in a project slice. Violating either rule returns a validation error explaining what to do instead.
Your first request
#
Start with the organizations query — it shows the organization your token belongs to and its workspaces:
Then list the organization's projects, grouped by stack the way the Project List page shows them:
Exploring this documentation
#
- Queries — read operations, grouped in the sidebar.
- Mutations — create/update/delete operations.
- Types — object definitions with field-level documentation.
Every operation page includes an auto-generated example query you can paste into GraphiQL.
New to GraphQL?
#
- Introduction to GraphQL — core concepts in 15 minutes
- Queries and mutations — syntax, arguments, variables, fragments
- Serving over HTTP — how GraphQL requests map to HTTP
- Introspection — query the schema itself
- GraphQL specification — the formal reference
- Client libraries: Apollo Client (JavaScript), gql (Python), Absinthe (Elixir — what powers this API)
assignment
