Developer API
SunLinks includes a full REST API for programmatic access to your links: automate link creation, fetch analytics, or integrate SunLinks into your own workflows.Create an API token
- Go to Integrations → Developer API.
- Enter a Name for your token (for example “CI/CD Pipeline”).
- Select one or more Intents:
- READ: list and view links and analytics
- WRITE: create new links
- UPDATE: modify existing links
- DELETE: remove links
- ALL: full access (overrides all other intents)
- Click Create API Token, then copy the token and store it securely.
API documentation
SunLinks ships interactive Swagger/OpenAPI documentation. Click Read API Documentation in the Developer API tab, or visit/swagger-ui.html on your instance.
Every request must include your token in the X-API-Key header.
Discord integration
Admins can connect a Discord bot for notifications and alerts:- Go to Integrations → Discord.
- Enter your Discord Bot Token. See Create a Discord bot token.
- Enter your Discord User ID.
- Optionally configure alert channels for commands, license requests, and notifications.
- Click Save Discord Settings, then Start Discord Bot.