-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
Status: Stub — pending Epic B codegen completion. Full typed operation reference will be generated from codegen output. This page covers the essential endpoint and auth contract.
| Environment | URL |
|---|---|
| Local dev | http://localhost:8080/v1/graphql |
| Staging | https://hasura.<staging-domain>/v1/graphql |
Production (web SaaS, web/ntask) |
Configured via VITE_HASURA_URL / EXPO_PUBLIC_HASURA_URL
|
All requests require a JWT Authorization header:
Authorization: Bearer <JWT>
Obtain a JWT via the Auth service (port 4000 local):
mutation SignIn($email: String!, $password: String!) {
signInEmailPassword(email: $email, password: $password) {
session {
accessToken
refreshToken
}
}
}Table prefix: np_* (per ADR pending P0-3 ratification).
Core tables (see Database-Schema for full detail):
-
np_lists— task lists -
np_todos— individual tasks -
np_shares— list sharing (permissions: owner/editor/viewer) -
np_presence— real-time presence data -
np_attachments— file attachments -
np_comments— task comments -
np_subtasks— task subtasks
The Hasura Console provides a live GraphQL explorer and schema browser:
http://localhost:8080/console
Requires HASURA_GRAPHQL_ADMIN_SECRET (from backend/.env.dev).
Full typed operation reference will be added post-Epic B codegen. Key operations:
Queries: np_lists, np_todos, today view, overdue view, calendar view, notification center
Mutations: create/update/delete list, create/update/delete task, share list, create attachment, create comment, create subtask
Subscriptions: live list updates, presence changes, notification feed
See apps/mobile/src/lib/graphql/ (this repo) or the equivalent path in web/ntask/ (separate repo) for current operation definitions.
- Backend-Architecture: service diagram
- Database-Schema: full table reference
- Backend-Setup: environment setup
Getting Started
Features
CLI & Agents
Backend
Architecture
Deployment
Reference
External