Skip to content

Latest commit

Β 

History

History
69 lines (50 loc) Β· 1.16 KB

File metadata and controls

69 lines (50 loc) Β· 1.16 KB

πŸ“˜ PHLY API Documentation

Base URL: https://phly.ir/api/
Content-Type: application/json


πŸ”— Create Short Link

Endpoint: /links/create
Method: POST

Request Parameters

Name Type Required Description
url string βœ… The original URL to shorten

Example Request

{
  "url": "https://example.com"
}

Example Response

{
  "message": "success",
  "status": 200,
  "data": {
    "code": "jucc"
  }
}

Usage

Use the short link via:

https://phly.ir/jucc

πŸ’‘ Submit Idea

Endpoint: /ideas/create
Method: POST

Request Parameters

Name Type Required Description
idea string βœ… The idea content to send

Example Request

{
  "idea": "Add support for analytics on short links"
}

Response

  • HTTP 200 – Everything is OK

πŸ“Ž To use this API, make sure you send all requests with the appropriate Content-Type: application/json header.