Skip to content
oriionn edited this page Aug 7, 2023 · 1 revision

API

Create a short link

POST /api/shorten

Parameters

Name Type Description
link string Required. The URL to shorten.
password string Optional. The password of the link.

Response

{
  "status": 200,
  "data": {
    "original": "https://google.com",
    "shorten": "http://quecto.local/abc123"
  }
}

(The type of the body is multipart/form-data)

(Precise the domain name in the config.js file)

Get a short link

GET /api/s/:code

Query

Name Type Description
password string Optional. The password of the link.

Response

{
  "status": 200,
  "data": {
    "original": "https://google.com",
    "shorten": "http://quecto.local/abc123"
  }
}

Know if this instance is a quecto instance

GET /api/quectoCheck

Response

{
  "status": 200,
  "data": {
    "quecto": true
  }
}
Clone this wiki locally