Onplana Access Requests API
Request access to a project, page, library, or list you cannot see; the people who manage it grant or decline (all plans)
Request access to a project, page, library, or list you cannot see; the people who manage it grant or decline (all plans)
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-access-requests-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 Access Requests 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: access-requests
description: Request access to a project, page, library, or list you cannot see; the people who manage it grant or decline (all plans)
paths:
/access-requests:
post:
tags:
- access-requests
summary: Ask for access to a resource you cannot see
description: One open (PENDING) request per person + resource, deduped by a DB unique under concurrency (a duplicate answers 409 ALREADY_PENDING). Requires being an active member of the resource's org; the denial check is re-run server-side, the 403 payload is a hint, never the authority. 409 ALREADY_ACCESSIBLE when the caller can already open it; 400 OPEN_REQUEST_CAP at 10 open requests. Pending requests expire after 14 days. Deciders are notified (bell + email per their preference matrix).
parameters:
- $ref: '#/components/parameters/OrgHeader'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
resourceType:
type: string
enum:
- PROJECT
- PAGE
- LIBRARY
- TABLE
resourceId:
type: string
minLength: 1
maxLength: 64
note:
type: string
maxLength: 1000
description: Optional message the deciders will see.
required:
- resourceType
- resourceId
responses:
'201':
description: '{ id, status: PENDING, createdAt }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequests
x-operation-id-source: derived
/access-requests/mine:
get:
tags:
- access-requests
summary: List the caller's own requests
description: Newest first, all statuses (PENDING / APPROVED / DECLINED / EXPIRED / WITHDRAWN) with grantedLevel on approvals. Feeds the wall's pending state.
parameters:
- $ref: '#/components/parameters/OrgHeader'
responses:
'200':
description: Array of the caller's requests
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getAccessRequestsMine
x-operation-id-source: derived
/access-requests/inbox:
get:
tags:
- access-requests
summary: List pending requests the caller may decide
description: Scoped server-side to the manage-sharing set per resource, so a Portfolio Manager does NOT see workspace-resource requests they cannot grant. Rows carry the requester, note, resource, the grantable `levels` for that resource family, and the requester's most recent prior outcome on the same resource. Powers the People & Teams tab + the sidebar badge.
parameters:
- $ref: '#/components/parameters/OrgHeader'
responses:
'200':
description: '{ requests[], count }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getAccessRequestsInbox
x-operation-id-source: derived
/access-requests/{id}/approve:
post:
tags:
- access-requests
summary: Grant the request at a chosen level
description: 'Decider-gated (re-checked at decide time). Grants ONLY through the existing rails: project membership at MANAGER / MEMBER / CONTRIBUTOR / VIEWER, or a workspace grant at VIEW / CONTRIBUTE / MANAGE; request-access mints no new authority. Approving a NON-project-member on a project-scoped library/list/page ALSO adds them to the owning project as VIEWER (the members-only boundary: a grant alone is dead for a non-member); the inbox row flags this via willAddToProject, and the audit row records addedToProjectId. 409 NOT_PENDING when another decider (or a withdraw) got there first. The requester is notified.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Access request UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
level:
type: string
minLength: 1
maxLength: 32
description: A level from the inbox row's `levels` for this resource family.
orgRole:
type: string
enum:
- GUEST
- MEMBER
description: 'Read only for an invite request: the seat the invitation is sent at. Left out, what the requester asked for.'
required:
- level
responses:
'200':
description: '{ id, status: APPROVED }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequestsByIdApprove
x-operation-id-source: derived
/access-requests/{id}/decline:
post:
tags:
- access-requests
summary: Decline the request
description: 'Decider-gated. A decline does not burn the road: the requester may ask again. The requester is notified.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Access request UUID
responses:
'200':
description: '{ id, status: DECLINED }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequestsByIdDecline
x-operation-id-source: derived
/access-requests/{id}/withdraw:
post:
tags:
- access-requests
summary: Withdraw the caller's own pending request
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Access request UUID
responses:
'200':
description: '{ status: WITHDRAWN }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequestsByIdWithdraw
x-operation-id-source: derived
/access-requests/plan-ask/{featureKey}:
get:
tags:
- access-requests
summary: What a plan wall offers the caller for a feature
description: '`{ enabled, canAsk, askedAt, ownerName }`. `enabled` is the server switch plan_ask_owner_enabled. `canAsk` is false for someone who can change the plan (org.billing.manage), for a feature the workspace already has, and for one no plan includes. `askedAt` is set while the caller''s ask for this feature is inside its 14-day period. `ownerName` is the Owner''s name when the workspace has exactly one.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: featureKey
in: path
required: true
schema:
type: string
description: 'The ask key: a plan feature key (auditLogs), tier:<PlanCode> for a lock that names only a plan, cap:projects for the project cap, or cap:tool:<tool> for the monthly cap of an AI action'
responses:
'200':
description: '{ enabled, canAsk, askedAt, ownerName }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getAccessRequestsPlanAskByFeatureKey
x-operation-id-source: derived
/access-requests/plan-ask:
post:
tags:
- access-requests
summary: Ask the workspace Owners to upgrade for a feature
description: 'For someone who cannot change the plan. Notifies each active Owner (bell, and email per their approval-email preference) naming the feature and the plan that unlocks it, with a link to Billing on that plan. One ask per person, feature and workspace every 14 days, deduped by a DB unique: a second ask answers 409 ALREADY_ASKED and notifies nobody. 409 CAN_UPGRADE for someone who holds org.billing.manage, 409 FEATURE_AVAILABLE when the plan already includes it, 400 NOT_SOLD when no plan does. 404 while the server switch plan_ask_owner_enabled is off.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
featureKey:
type: string
minLength: 1
maxLength: 64
description: 'The ask key: a plan feature key (auditLogs), tier:<PlanCode>, cap:projects, or cap:tool:<tool>'
required:
- featureKey
responses:
'201':
description: '{ id, askedAt, plan }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequestsPlanAsk
x-operation-id-source: derived
/workspace/libraries/{id}/external-invites:
post:
tags:
- access-requests
summary: Invite someone outside the org to a restricted library
description: Manage-sharing gated. Creates an invitation carrying a pendingGrant that the accept path materializes; the invitee joins at orgRole (GUEST or MEMBER, the inviter's seat choice), becomes project VIEWER for project-scoped resources, and receives the grant. Restricted resources only (400 NOT_RESTRICTED); existing members are redirected to the grant picker (409 ALREADY_MEMBER); one live invite per email + resource (409 INVITE_PENDING); the member cap refuses at create (400 MEMBER_LIMIT). Same paths exist for /workspace/tables/{id} and /workspace/pages/{id}.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Library UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
maxLength: 254
format: email
pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
accessLevel:
type: string
enum:
- VIEW
- CONTRIBUTE
- MANAGE
orgRole:
default: GUEST
type: string
enum:
- GUEST
- MEMBER
required:
- email
- accessLevel
responses:
'201':
description: '{ id, email, orgRole, accessLevel, expiresAt }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceLibrariesByIdExternalInvites
x-operation-id-source: derived
get:
tags:
- access-requests
summary: List pending external invites on a restricted library
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Library UUID
responses:
'200':
description: '{ invites[] }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: getWorkspaceLibrariesByIdExternalInvites
x-operation-id-source: derived
/workspace/external-invites/{kind}/{invitationId}:
delete:
tags:
- access-requests
summary: Revoke a pending external invite
description: kind is project or org (which invitation table holds it). Gated by manage-sharing on the resource the invite's pendingGrant names.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: kind
in: path
required: true
schema:
type: string
description: project | org
- name: invitationId
in: path
required: true
schema:
type: string
description: Invitation UUID
responses:
'200':
description: '{ success: true }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: deleteWorkspaceExternalInvitesByKindByInvitationId
x-operation-id-source: derived
/organizations/{id}/seat-impact:
get:
tags:
- access-requests
summary: The seat consequence of adding one person at a role
description: 'Any active member. Returns { impact: within_free | billable | member_cap, freeGuestSeats, guestsUsed, perSeatMonthly, billingInterval, planCode, memberLimit, memberPlaces { used, limit, held? { count, firstReleaseAt } } }, where held (inviters only) is the places revoked or expired invitations still hold under the 30-day rule and when the first comes back, computed server-side (the free-Guest allowance is PlanPricing-overridable per org). Powers the share dialog''s pre-commit seat line.'
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Organization UUID
- name: role
in: query
schema:
type: string
enum:
- GUEST
- MEMBER
responses:
'200':
description: The seat impact
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getOrganizationsByIdSeatImpact
x-operation-id-source: derived
/public/access-requests/probe:
post:
tags:
- access-requests
summary: What the public ask page may render (unauthenticated)
description: 'Answers { requestable: true, resourceName, orgName } ONLY for a resource under the full double opt-in (the org master switch AND the resource''s own allowExternalRequests toggle, plus restrictAccess for workspace families); everything else, including nonexistent ids, is one uniform { requestable: false }, so this endpoint cannot enumerate resources. Rate-limited per IP.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
resourceType:
type: string
enum:
- PROJECT
- PAGE
- LIBRARY
- TABLE
resourceId:
type: string
minLength: 1
maxLength: 64
required:
- resourceType
- resourceId
responses:
'200':
description: '{ requestable, resourceName?, orgName? }'
'400':
description: Validation error
operationId: postPublicAccessRequestsProbe
x-operation-id-source: derived
/public/access-requests/start:
post:
tags:
- access-requests
summary: Email a one-time verification code (unauthenticated)
description: 'Captcha-gated where a captcha is configured. ALWAYS answers { sent: true }, whether or not the resource is requestable or the address deliverable, with the same timing, so neither is an oracle. The code (6 digits, 15-minute TTL, single-use, resend-throttled) proves control of the email before anything can reach a decider''s inbox.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
resourceType:
type: string
enum:
- PROJECT
- PAGE
- LIBRARY
- TABLE
resourceId:
type: string
minLength: 1
maxLength: 64
email:
type: string
maxLength: 254
format: email
pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
captchaToken:
type: string
maxLength: 4096
required:
- resourceType
- resourceId
- email
responses:
'200':
description: '{ sent: true } unconditionally'
'400':
description: Validation error
operationId: postPublicAccessRequestsStart
x-operation-id-source: derived
/public/access-requests/verify:
post:
tags:
- access-requests
summary: Prove the code and file the request (unauthenticated)
description: A correct code files an ExternalAccessRequest and notifies the deciders. Wrong-code feedback is safe here (the code went only to the address's holder) and bounded by a brute-force lockout (429 LOCKED). 400 INVALID_CODE otherwise; 429 RESOURCE_CAP at 25 pending external asks per resource. Requests expire after 14 days like internal ones.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
resourceType:
type: string
enum:
- PROJECT
- PAGE
- LIBRARY
- TABLE
resourceId:
type: string
minLength: 1
maxLength: 64
email:
type: string
maxLength: 254
format: email
pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
code:
type: string
minLength: 4
maxLength: 12
description: The 6-digit code from the email.
note:
type: string
maxLength: 1000
required:
- resourceType
- resourceId
- email
- code
responses:
'200':
description: '{ requested: true, alreadyPending }'
'400':
description: Validation error
operationId: postPublicAccessRequestsVerify
x-operation-id-source: derived
/access-requests/external/{id}/approve:
post:
tags:
- access-requests
summary: Approve an external ask (invite them in)
description: 'Decider-gated like the internal approve. Sends the Stage-1 invitation carrying the grant: on accept the requester joins the org at orgRole (GUEST or MEMBER, the decider''s seat choice), becomes project VIEWER where applicable, and receives the level. If the requester registered and joined between ask and decide, the grant applies directly instead ({ invited: false }). 400 MEMBER_LIMIT at the plan''s member cap.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: External access request UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
level:
type: string
minLength: 1
maxLength: 32
description: A level from the inbox row's `levels`.
orgRole:
default: GUEST
type: string
enum:
- GUEST
- MEMBER
required:
- level
responses:
'200':
description: '{ id, status: APPROVED, invited }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequestsExternalByIdApprove
x-operation-id-source: derived
/access-requests/external/{id}/decline:
post:
tags:
- access-requests
summary: Decline an external ask
description: Decider-gated. The requester's only channel is email, so the decline notifies there. They may ask again.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: External access request UUID
responses:
'200':
description: '{ id, status: DECLINED }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postAccessRequestsExternalByIdDecline
x-operation-id-source: derived
/organizations/{id}/external-access-requests:
get:
tags:
- access-requests
summary: Read the org master switch for external asks
description: Any active member (the share dialog hints from it).
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Organization UUID
responses:
'200':
description: '{ enabled }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getOrganizationsByIdExternalAccessRequests
x-operation-id-source: derived
put:
tags:
- access-requests
summary: Set the org master switch for external asks
description: OWNER/ADMIN, audited. One half of the double opt-in; nothing is publicly requestable until a resource's own toggle is ALSO on. Default off preserves existence hiding exactly.
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Organization UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
enabled:
type: boolean
required:
- enabled
responses:
'200':
description: '{ enabled }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: putOrganizationsByIdExternalAccessRequests
x-operation-id-source: derived
/workspace/libraries/{id}/external-requests:
put:
tags:
- access-requests
summary: Set a resource's allow-external-requests toggle
description: Manage-sharing gated; restricted resources only (400 NOT_RESTRICTED). The other half of the double opt-in. Same paths exist for /workspace/tables/{id}, /workspace/pages/{id}, and /projects/{id}.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Library UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
enabled:
type: boolean
required:
- enabled
responses:
'200':
description: '{ allowExternalRequests }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: putWorkspaceLibrariesByIdExternalRequests
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.