API Documentation

Shorten URL Endpoint

Endpoint: https://www.minifyn.com/api/shorten

Description: This endpoint allows you to shorten a given URL.

Request

Method: POST

Headers:

  • Content-Type: application/json
  • Authorization: Bearer <token>

Body:

{
  "url": "<urlString>"
}

Response

Success (200):

{
  "message": "URL validation successful",
  "shortUrl": "https://mnfy.in/<shortCode>"
}

Error (400):

{
  "error": "URL is required"
}

Error (401):

{
  "error": "Unauthorized"
}

Error (429):

{
  "error": "Rate limit exceeded",
  "limits": {
    "remaining": number,
    "reset": number
  }
}

Error (500):

{
  "error": "Internal server error"
}