Skip to main content
POST
Create a new organization

Authorizations

Authorization
string
header
required

Personal Access Token (PAT) passed in the Authorization header (e.g., Bearer <pat>) for authenticated API requests. PATs are generated via /auth/generate-pat after authenticating through the magic link flow.

Body

application/json
name
string
required
Example:

"My New Org"

vpnId
string
required

ObjectId of the VPN configuration to assign to the new organization. Obtain a valid ID from GET /auth/vpns.

Example:

"60c72b2f5f1b2c001c8e4b2a"

description
string | null
Example:

"Description of the organization"

Response

Organization created successfully

message
string
Example:

"Organization created successfully"

org
object