API Specification
/api/v1/shorten
Create a shortened URL
Request Body
Response (201)
/api/v1/shorten/{short_code}
Retrieve shortened URL details
Response (200)
/api/v1/redirect/{short_code}
Redirect to original URL
Response (302)
/api/v1/shorten/{short_code}
Update a shortened URL
Request Body
Response (200)
/api/v1/shorten/{short_code}
Delete a shortened URL
Response (204)
/api/v1/shorten
List all shortened URLs
Response (200)
/api/v1/analytics/{short_code}
Get analytics for a shortened URL
Response (200)
/api/v1/validate
Validate a URL
Request Body
Response (200)
/api/v1/batch-shorten
Create multiple shortened URLs
Request Body
Response (201)
/api/v1/user/stats
Get user account statistics
Response (200)
/api/v1/shorten/{short_code}/disable
Disable a shortened URL
Request Body
No request body fields
Response (200)
/api/v1/shorten/{short_code}/enable
Enable a shortened URL
Request Body
No request body fields
Response (200)
Rendering diagram...
Rendering diagram...
Rendering diagram...
Rendering diagram...