Skip to main content
The PlaneConnection API supports multiple authentication methods depending on your use case. All authenticated endpoints return 401 Unauthorized if no valid credentials are provided.

Authentication Methods

Public Endpoints

The following endpoints do not require authentication:

Role-Based Access Control (RBAC)

After authentication, the API enforces role-based access control. The authenticated user’s role determines which endpoints and actions they can access.

Role Hierarchy

Roles are organized in a hierarchy where higher-level roles have more privileges. Some endpoints require a minimum role level.

Role Guards

The API enforces role-based access on every request:
  • Unauthenticated requests receive 401.
  • Authenticated users whose role is below the minimum required level receive 403.
For example, AI email endpoints require the staff role (level 4+), while webhook management requires admin (level 6+).

Auth Context

Once authenticated, route handlers receive an auth context object with these fields:

Token Verification

Error Responses

Last modified on April 11, 2026