Links

POST /url-shortify/v1/links

Creates a shortened URL link.

Headers

Name Value
Content-Type application/json
Authorization Bearer <token>

Request Body

Name Type Description
url string Target URL to shorten

Response

Success (200)

{
    "success": true,
    "data": {
        "short_url": "https://example.com/go/KoS"
    }
}

Error (400)

{
  "error": "Invalid request"
}

GET /url-shortify/v1/links

Retrieves all shortened links.

Response

Success (200)

{
    "success": true,
    "data": [
        {
            "id": "",
            "slug": "",
            "name": "",
            "url": "",
            "description": "",
            "nofollow": "",
            "track_me": "",
            "sponsored": "",
            "params_forwarding": "",
            "params_structure": "",
            "redirect_type": "",
            "status": "",
            "type": "",
            "type_id": null,
            "password": "",
            "expires_at": "",
            "unique_clicks": "",
            "total_clicks": "",
            "cpt_id": "",
            "cpt_type": "",
            "rules": "",
            "created_at": "",
            "created_by_id": "",
            "updated_at": "",
            "updated_by_id": ""
        }
    ]
}

Error (400)

{
  "error": "Invalid request"
}

Was this page helpful?