Learn how to use Pangolin’s REST API to automate and script operations with fine-grained permissions
Pangolin is in heavy development. The REST API routes and behavior may include breaking changes between updates. We will do our best to document large changes.
The API is REST-based and supports many operations available through the web interface. Authentication uses Bearer tokens, and you can create multiple API keys with specific permissions for different use cases.For self-hosted editions, the integration API must be enabled. Check out the documentation for how to enable the integration API.
Root API keys have some extra permissions and can execute operations across orgs. They are only available in the fully self-hosted editions of Pangolin:
Root API keys have elevated permissions and should be used carefully. Only create them when you need server-wide access.
For a minimal walkthrough of common flows (sites, resources, targets, assigning roles and users), see Common API Routes.View the full Swagger docs here: https://api.pangolin.net/v1/docs.Interactive API documentation is available through Swagger UI:
Swagger UI showing API endpoints and interactive testing
For self-hosted Pangolin, access the documentation at https://api.your-domain.com/v1/docs.