Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Organization → Create a new site.

AI-generated

Summary

Create a new site within an existing organization by providing the organization's ID and the site details in the request body.

Inputs

  • Org ID (required) — The unique identifier of the organization under which the site will be created.
  • Body (required) — JSON object containing the site details such as name, type (one of 'newt', 'wireguard', 'local'), exitNodeId, pubKey, subnet, newtId, secret, and address.
  • Options — Additional options including 'Raw Response' to determine if the full response data should be returned without splitting arrays.

Output shape

A single JSON object representing the created site is returned if 'Raw Response' is false; otherwise, the full raw response data is returned.

The operation requires the 'Org ID' parameter and a valid JSON body as input. If 'Raw Response' is enabled, the entire API response is provided as output without transformation.

Examples

Example 1: Create a new site for organization with ID 'org123' providing site details in the JSON body.

Set 'Org ID' to 'org123', provide the site creation JSON in 'Body', and optionally toggle 'Raw Response'.

Discussion