API Documentation
Integrate SafeLink into your own applications using our simple REST API.
Example Request
POST /api/links
Authorization: Bearer YOUR_JWT_TOKEN
{ "url": "https://example.com", "customAlias": "my-link" }Authentication
All API endpoints require a valid JWT token in the Authorization header. You can generate this token by logging into the dashboard.
Endpoints
POST /api/links- Create a new short linkGET /api/links- Get list of your linksGET /api/user/stats- Get your click and earning statisticsPOST /api/withdrawals- Request a withdrawal