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 link
  • GET /api/links - Get list of your links
  • GET /api/user/stats - Get your click and earning statistics
  • POST /api/withdrawals - Request a withdrawal