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 SSO 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: SSO
description: Single Sign-On configuration and flow (ENTERPRISE+)
paths:
/sso/{orgSlug}/initiate:
get:
tags:
- SSO
summary: Begin an SSO login flow for an organization
security: []
parameters:
- name: orgSlug
in: path
required: true
schema:
type: string
description: Organization slug
responses:
'302':
description: Redirect to identity provider
operationId: getSsoByOrgSlugInitiate
x-operation-id-source: derived
/sso/discover:
post:
tags:
- SSO
summary: Find the workspace whose single sign-on covers an email address
description: 'For the sign-in page. Answers `{ ssoSlug }`: the slug of the one workspace whose enabled SSO lists the email''s work domain as verified, to pass to `/sso/{orgSlug}/initiate`, or null for every other case (no such workspace, SSO off, two workspaces claiming the domain, a consumer mailbox, an invalid body). Off unless the operator has enabled it, in which case it always answers null. Rate-limited per IP.'
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
maxLength: 320
responses:
'200':
description: '`{ ssoSlug: string | null }`'
'429':
description: Too many lookups from this address
operationId: postSsoDiscover
x-operation-id-source: derived
/sso/config:
get:
tags:
- SSO
summary: Read the SSO configuration (ADMIN)
responses:
'200':
description: SSO configuration
operationId: getSsoConfig
x-operation-id-source: derived
put:
tags:
- SSO
summary: Update SSO configuration (ADMIN, ENTERPRISE+)
responses:
'200':
description: Updated SSO configuration
operationId: putSsoConfig
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.