Onplana Notifications API
Push registration for the Onplana Tasks phone apps (companion token, TASKS_WRITE scope)
Push registration for the Onplana Tasks phone apps (companion token, TASKS_WRITE scope)
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/onplana-com:onplana-com-notifications-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Onplana Notifications API
version: 1.0.0
description: AI-native Project Management System REST API. All org-scoped routes require the `X-Organization-Id` header. Most routes require a Bearer JWT obtained from `/auth/login`.
servers:
- url: /api
security:
- bearerAuth: []
- patAuth: []
tags:
- name: Notifications
description: Push registration for the Onplana Tasks phone apps (companion token, TASKS_WRITE scope)
paths:
/notifications/companion/device-token:
post:
tags:
- Notifications
summary: Register this phone for push notifications
description: 'Needs the TASKS_WRITE scope. Upserts on the token, so a token registered again under another account moves to that account. The platform is decided by the token''s shape: a non-hex token is stored as ANDROID (FCM) whatever platform says. A 400 names the field that failed; the token is never echoed.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
token:
type: string
minLength: 1
maxLength: 512
description: APNs device token (32 to 200 hex characters) or FCM registration token (64 or more characters, no whitespace)
platform:
default: IOS
type: string
enum:
- IOS
- ANDROID
environment:
type: string
enum:
- sandbox
- production
description: The APNs environment the build was signed for
timezone:
type: string
maxLength: 64
description: Optional IANA timezone of the device, used for quiet hours; an unknown zone is refused
required:
- token
- environment
responses:
'204':
description: Registered
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postNotificationsCompanionDeviceToken
x-operation-id-source: derived
delete:
tags:
- Notifications
summary: Stop pushing to this phone (called on sign-out)
description: Needs the TASKS_WRITE scope. Deletes the caller's own row for the token; another user's token matches nothing. The token must be an APNs token (32 to 200 hex characters) or an FCM token (64 to 512 characters, no whitespace); anything else is refused with 400 VALIDATION.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
properties:
token:
type: string
minLength: 32
maxLength: 512
description: The token registered with POST
responses:
'204':
description: Unregistered, or nothing to remove
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: deleteNotificationsCompanionDeviceToken
x-operation-id-source: derived
/notifications/companion:
get:
tags:
- Notifications
summary: The notification feed of the Onplana Tasks apps
description: 'Needs the TASKS_READ scope. The caller''s notifications from the last 30 days that an app can act on: a task assigned or overdue, anything that names a task or an issue, an expense claim sent back, and being added to a project. Unread first, then newest first, at most 30. Rows of the organization and rows that belong to no organization are included. The organization comes from the token, or from X-Organization-Id on a browser session (400 ORG_CONTEXT_REQUIRED without one). unread counts over the newest 300 rows; unreadCapped is true when the real count may be higher.'
parameters:
- name: X-Organization-Id
in: header
required: false
schema:
type: string
description: Only read when the token carries no organization
responses:
'200':
description: The feed
content:
application/json:
schema:
type: object
required:
- notifications
- unread
- unreadCapped
properties:
notifications:
type: array
items:
type: object
properties:
id:
type: string
type:
type: string
title:
type: string
body:
type: string
nullable: true
read:
type: boolean
createdAt:
type: string
format: date-time
kind:
type: string
nullable: true
taskId:
type: string
nullable: true
issueId:
type: string
nullable: true
expenseId:
type: string
nullable: true
projectId:
type: string
nullable: true
projectName:
type: string
nullable: true
unread:
type: integer
unreadCapped:
type: boolean
'400':
description: ORG_CONTEXT_REQUIRED
'401':
description: Unauthorized
'403':
description: SCOPE_DENIED, or the organization's IP allowlist refuses this network
'503':
description: 'IP_ALLOWLIST_UNAVAILABLE: the allowlist could not be read'
operationId: getNotificationsCompanion
x-operation-id-source: derived
/notifications/companion/read:
post:
tags:
- Notifications
summary: Mark feed notifications as read
description: 'Needs the TASKS_WRITE scope. Send ids (at most 30), or all: true for every unread row the feed would show from the last 30 days (at most 100 a call). Only the caller''s own unread rows change; an id that is someone else''s or already read is skipped.'
parameters:
- name: X-Organization-Id
in: header
required: false
schema:
type: string
description: Only read when the token carries no organization
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ids:
maxItems: 30
type: array
items:
type: string
minLength: 1
description: Notification ids from the feed
all:
type: boolean
description: true marks everything the feed would show
description: 'ids with at least one entry, or all: true'
responses:
'200':
description: How many rows changed
content:
application/json:
schema:
type: object
required:
- updated
properties:
updated:
type: integer
'400':
description: 'VALIDATION (neither ids nor all: true), or ORG_CONTEXT_REQUIRED'
'401':
description: Unauthorized
'403':
description: SCOPE_DENIED, or the organization's IP allowlist refuses this network
'503':
description: 'IP_ALLOWLIST_UNAVAILABLE: the allowlist could not be read'
operationId: postNotificationsCompanionRead
x-operation-id-source: derived
/notifications/companion/preferences:
get:
tags:
- Notifications
summary: The caller's notification preferences
description: Needs the TASKS_READ scope. The saved preferences, or the defaults for someone who has never saved any. They are per person, not per organization.
responses:
'200':
description: One boolean per preference, the fields PUT accepts
'401':
description: Unauthorized
'403':
description: SCOPE_DENIED
operationId: getNotificationsCompanionPreferences
x-operation-id-source: derived
put:
tags:
- Notifications
summary: Change the caller's notification preferences
description: Needs the TASKS_WRITE scope. Every field is optional; only the ones sent change. pushEnabled governs the phone alone; emailEnabled turns every email below it off.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
emailEnabled:
type: boolean
description: The email master switch
pushEnabled:
type: boolean
description: Push notifications to the phone apps
taskAssigned:
type: boolean
taskOverdue:
type: boolean
projectUpdates:
type: boolean
weeklyDigest:
type: boolean
timesheetEmails:
type: boolean
approvalEmails:
type: boolean
workflowEmails:
type: boolean
riskEmails:
type: boolean
securityEmails:
type: boolean
setupReminderEmails:
type: boolean
productUpdateEmails:
type: boolean
projectDigest:
type: boolean
responses:
'200':
description: The preferences after the change
'400':
description: 'VALIDATION: a field that is not a boolean'
'401':
description: Unauthorized
'403':
description: SCOPE_DENIED
operationId: putNotificationsCompanionPreferences
x-operation-id-source: derived
/notifications/companion/stream:
get:
tags:
- Notifications
summary: A server-sent event stream that says which of the caller's lists changed
description: 'Needs the TASKS_READ scope. Behind the companion_stream_enabled switch: while it is off the answer is 404 STREAM_OFF, which the apps read as "keep polling". Sends `ready` on connect (re-read every list once), then `changed` with data { lists } naming any of tasks, delegated and notifications, never what changed. A comment line arrives every 25 seconds, and the server ends the stream after 5 minutes; reconnect to continue.'
parameters:
- name: X-Organization-Id
in: header
required: false
schema:
type: string
description: Only read when the token carries no organization
responses:
'200':
description: The event stream
content:
text/event-stream:
schema:
type: string
'400':
description: ORG_CONTEXT_REQUIRED
'401':
description: Unauthorized
'403':
description: SCOPE_DENIED, or the organization's IP allowlist refuses this network
'404':
description: 'STREAM_OFF: the switch is off'
'503':
description: 'IP_ALLOWLIST_UNAVAILABLE: the allowlist could not be read'
operationId: getNotificationsCompanionStream
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
patAuth:
type: apiKey
in: header
name: Authorization
description: 'Personal Access Token: `Authorization: Bearer pat_<token>`. Org context is embedded in the token - no `X-Organization-Id` header required.'
oauthApp:
type: oauth2
description: Third-party OAuth app (confidential client). Register the app under Settings > Developer > OAuth apps; the person approving picks the workspace the token acts in. Tokens last 90 days and extend while in use; there is no refresh token, so a dormant connection re-consents.
flows:
authorizationCode:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
tasks: Read and write the tasks assigned to the person, read their projects, log their time.
schedule: Read projects and create or update them (publish a schedule).
mcp: The MCP tool surface, as a member-capped agent persona.
webhooks: Create, list, change and delete the app's own webhook subscriptions.