1. Docs
  2. API Reference
REST · JSON · v1

Canopy Portal API

v1.0OpenAPI 3.0 All systems operational

The API behind Canopy's two signed-in applications. Authenticated with a user JWT and scoped to an Account and Application by path, it manages the same resources your team works with in the UI.

Base URLhttps://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/applications/{appSlug}

Authentication

Bearer TokenRequired
Authorization: Bearer <token>

Used for user-delegated actions via OAuth 2.0 flows.

Your first request

Minimal working example: list identities in your account.

bash — your-terminal
curl -H "Authorization: Bearer $CANOPY_TOKEN" \
  https://auth.canopy-io.com/portal/v1/accounts/acme/applications/prod/identities
200 OK application/json
{
  "items": [
    { "id": "id_01HXABC...", "name": "Production server", "last_used_at": "2026-06-28T14:02:11Z" }
  ],
  "pagination": { "page": 1, "take": 20, "item_count": 3, "page_count": 1 }
}

Response envelope

Every response follows one of a small set of predictable shapes, keyed by the top-level field.

Returns one resource wrapped in data .
{
  "data": {
    "id": "id_01HXABC...",
    "name": "Acme Realty",
    "createdAt": "2026-04-04T01:23:45.678Z"
  }
}

Errors

Errors use standard HTTP status codes and a consistent envelope. Use the code field for programmatic handling and message as the English fallback for display.

{
  "error": {
    "statusCode": 404,
    "code": "nodes.node_not_found",
    "message": "Organization node not found",
    "timestamp": "2026-04-04T01:23:45.678Z",
    "path": "/api/v1/nodes/abc",
    "method": "GET"
  }
}
Error code Message
400Validation failed: see details
401Missing or invalid credentials
403Authenticated, but lacks permission
404Resource does not exist
429Rate limit exceeded: see Retry-After header
500Unexpected server error

Conventions

Pagination
Page with page & take (max 100). List responses carry a pagination block.
Timestamps
All datetimes are ISO 8601 in UTC, e.g. 2026-06-28T14:02:11Z.
Idempotency
Send an Idempotency-Key on writes to safely retry without creating duplicates.
Environments
Credentials resolve to a single Environment. They never cross the prod / test line.

Browse endpoints

Endpoints are grouped by resource. Jump into any group to see request parameters, schemas, and live examples.

Auth 29 endpoints

Register, sign in, and manage sessions for platform admins.

GETPOSTDEL
OAuth Clients 7 endpoints

Register and manage the OAuth clients behind hosted sign-in.

GETPOSTPATCHDEL
Portal Account Applications 2 endpoints

List and create the Applications under an Account.

GETPOST
Portal Account Identities 15 endpoints

Manage identities across the whole Account, including bulk operations.

GETPOSTPATCHDEL
Portal Account Identity Invites 5 endpoints

Invite identities at the Account tier and track their status.

GETPOSTDEL
Portal Account Identity MFA 2 endpoints

Review and force-reset an identity's MFA enrollment as an admin.

GETPOST
Portal Account Members 2 endpoints

List and remove the platform admins who can manage the Account.

GETDEL
Portal Account Webhooks 9 endpoints

Subscribe to Account-level events and manage signed delivery.

GETPOSTPATCHDEL
Portal Accounts 3 endpoints

Read, rename, and delete the Account that owns your Applications.

GETPATCHDEL
Portal Admin Assignments 3 endpoints

Grant and revoke administrator roles across the Account.

GETPOSTDEL
Portal Admin Roles 8 endpoints

Define what an administrator can be, and how far it reaches.

GETPOSTPUTPATCHDEL
Portal API Keys 7 endpoints

Issue, scope, list, and revoke Application API keys.

GETPOSTPATCHDEL
Portal Applications 6 endpoints

Read, rename, and delete an individual Application.

GETPUTPATCHDEL
Portal Audit Log Admin 7 endpoints

Query, live-tail, and export the admin audit log.

GETPOSTDEL
Portal Audit Log Identities 7 endpoints

Query, live-tail, and export the end-user identity audit log.

GETPOSTDEL
Portal Auth Domain 4 endpoints
GETPOSTDEL
Portal Environments 16 endpoints

Create and configure the Environments within an Application.

GETPOSTPUTPATCHDEL
Portal Hierarchy 11 endpoints

Build and reshape the organizational tree: create, move, and prune nodes.

GETPOSTPATCHDEL
Portal Identities 14 endpoints

Create and manage identities and their role assignments in an Application.

GETPOSTPATCHDEL
Portal Identity Invites 6 endpoints

Invite identities to an Application and manage pending invites.

GETPOSTDEL
Portal Me 3 endpoints

What the signed-in user may do, and which products they open.

GET
Portal Me Audit Views 3 endpoints

Save, update, and delete your personal audit-log views.

GETPOSTDEL
Portal Me Preferences 2 endpoints

Read and update your Developer Console preferences.

GETPATCH
Portal Organizations 18 endpoints
GETPOSTPATCHDEL
Portal Publishable Keys 4 endpoints
GETPOSTPATCHDEL
Portal RBAC Assignments 8 endpoints

Assign roles to identities at any node, and review coverage.

GETPOSTPATCHDEL
Portal RBAC Permissions 7 endpoints

Browse the permission catalog and explain authorization decisions.

GETPOSTPATCHDEL
Portal RBAC Roles 7 endpoints

List built-in roles and define custom ones from the permission catalog.

GETPOSTPUTPATCHDEL
Portal SCIM Groups 3 endpoints

Map IdP-pushed SCIM groups to roles at a node.

GETPUTDEL
Portal SCIM Tokens 4 endpoints

Mint and manage the SCIM bearer tokens that drive directory sync.

GETPOSTDEL
Portal Setup 2 endpoints

Bootstrap an Environment's permission catalog and starter roles.

POST
Portal Setup Summaries 1 endpoints

Check setup status across every Environment in the Account.

GET
Portal SSO Connections 23 endpoints

Configure inbound SSO connections for end-user login.

GETPOSTPATCHDEL
Portal User Invites 6 endpoints

Invite platform admins to the Account and track their status.

GETPOSTPATCHDEL
Portal Users 6 endpoints

List and inspect the platform admins in the Account.

GETPOSTDEL
Portal Webhooks 9 endpoints

Subscribe to Application events and manage signed delivery.

GETPOSTPATCHDEL
Portal Workspace 16 endpoints

The operator surface, scoped to the caller’s own grants.

GETPOSTPATCHDEL
Portal Workspace Environments 1 endpoints

The Environments the caller may operate in.

GET

Machine-readable API

Everything in this reference is generated from OpenAPI 3 documents you can fetch directly. Point a code generator, your own tooling, or an AI agent at the same source the docs are built from.

Ready to build?
Jump into any resource group above, or start with the most common first integration.
Browse endpoints
Environment
API version
v1.0
On this page Was this page helpful?

Tell us how we can improve this guide.