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: Onplana Clients 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: Clients
description: Clients of the organization (Onplana Services)
paths:
/companies:
get:
tags:
- Clients
summary: List the organization's clients
description: Needs the Onplana Services plan feature (crm, 402 otherwise). The router has no scope gate, so any token reaches it. A Guest is refused with 403 CRM_READ_DENIED. By name; each client carries its owner, _count.contacts and `rollup`, its commercial state. total is the number of rows in this answer.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: search
in: query
required: false
schema:
type: string
description: Case-insensitive name-contains filter
- name: limit
in: query
required: false
schema:
type: integer
description: Rows to return, 1 to 200 (default 50)
responses:
'200':
description: The clients
content:
application/json:
schema:
type: object
required:
- companies
- total
properties:
companies:
type: array
items:
type: object
total:
type: integer
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'402':
description: Plan gate - feature not available on current plan
'403':
description: Forbidden - insufficient role
operationId: getCompanies
x-operation-id-source: derived
components:
parameters:
OrgHeader:
name: X-Organization-Id
in: header
required: true
description: UUID of the active organization. Sets org context for all scoped operations.
schema:
type: string
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.