Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Restivity REST Public API
version: 1.0.0
description: 'OAuth-protected CRUD over tasks, projects, pomodoro sessions, comments, tags, and the user profile. Paired with an MCP surface (see /api/mcp) that exposes the same capabilities as tools: through it an agent can read and change your tasks, projects, custom statuses, teams, focus sessions, comments, tags and profile, and read your earnings.'
contact:
name: Restivity
url: https://restivity.ai
license:
name: Proprietary
url: https://restivity.ai/legal
servers:
- url: https://restivity.ai/api/v1
description: Production
tags:
- name: Public
paths:
/health:
get:
operationId: health.get
summary: Liveness probe
description: 'Unauthenticated. Returns `{ status: "ok", time }`; also the `status` target of the `/.well-known/api-catalog` linkset. Not rate-limited.'
tags:
- Public
security: []
responses:
'200':
description: The API is up.
content:
application/json:
schema:
$ref: '#/components/schemas/HealthStatus'
/openapi.json:
get:
operationId: openapi.get
summary: This document
description: Unauthenticated. The OpenAPI 3.1 description of the API, generated from the same Zod schemas the handlers validate with. Cached one hour at the edge.
tags:
- Public
security: []
responses:
'200':
description: The OpenAPI 3.1 document.
content:
application/json:
schema:
$ref: '#/components/schemas/OpenApiDocument'
components:
schemas:
HealthStatus:
type: object
properties:
status:
type: string
const: ok
time:
description: Server time, ISO 8601 UTC.
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
required:
- status
- time
additionalProperties: false
OpenApiDocument:
type: object
properties:
openapi:
description: OpenAPI version, `3.1.0`.
type: string
required:
- openapi
additionalProperties: {}
securitySchemes:
oauth2:
type: oauth2
description: 'OAuth 2.1 authorization code with PKCE (S256). Use Dynamic Client Registration (RFC 7591) via POST /api/oauth/register, then drive the user through /oauth/authorize → /api/oauth/token. profile:delete is intentionally not offered: account removal is human-only.'
flows:
authorizationCode:
authorizationUrl: https://restivity.ai/oauth/authorize
tokenUrl: https://restivity.ai/api/oauth/token
refreshUrl: https://restivity.ai/api/oauth/token
scopes:
tasks:read: 'Read tasks: list, get, full-text search and the today list.'
tasks:write: Create, update and restore tasks, batch-update them, and change or skip the rule of a recurring series.
tasks:delete: Soft-delete tasks (30-day retention).
projects:read: Read projects and the status lists of projects, teams and workspaces.
projects:write: Create, update and restore projects, use the agent inbox, change the status lists of projects, teams and workspaces, and reopen an archived team.
projects:delete: Soft-delete projects.
pomodoro:read: Read pomodoro / work-session history, and preview where a session can be moved.
pomodoro:write: Start, update and restore pomodoro sessions, and move a session, decide a move request or undo a move.
pomodoro:delete: Soft-delete pomodoro sessions.
comments:read: Read task comments.
comments:write: Create, edit and restore task comments.
comments:delete: Soft-delete comments.
tags:read: Read tags.
tags:write: Create, rename and restore tags.
tags:delete: Soft-delete tags.
profile:read: Read the user profile.
profile:write: Update whitelisted profile fields.
earnings:read: Read earnings summaries (worked hours and amounts by project, client, and period).