Cruss
/

Wisk-API

Try free →

Wisk-API

The Wisk API allows you to programmatically create and manage short URLs. Our RESTful API is easy to integrate with any application or service.

https://wisk.in
POST
/api/encode

encode

Encode Endpoint
Convert a long URL into a short Wisk link.

POST /encode

Request Parameters:

  • Parameter {url}

  • Type {string}

  • Description {The long URL to shorten}
  • Required
    Yes

    Parameter

    custom_slug

    Type
    string

    Description
    Custom short code (for logged-in users)

    Required
    No

    Example Request:
    curl -X POST https://wisk.in/api/encode \
    -H "Authorization: Bearer YOURAPIKEY" \
    -H "Content-Type: application/json" \
    -d '{"url": "https://example.com/very/long/url", "custom_slug": "my-link"}'

  • Example Response:

  • {
    "status": "success",
    "short_url": "https://wisk.in/my-link",
    "original_url": "https://example.com/very/long/url"
    }

    Headers

    NameDescription
    Accept
    application/json
    User-Agent
    Cruss/1.0
    Content-Type
    application/json
    POST
    /api/decode

    decode

    Decode Endpoint
    Retrieve the original URL from a short Wisk link.

    GET /decode

    Request Parameters:
    Parameter
    short_url

    Type
    string

    Description
    The short Wisk URL to decode

    Required
    Yes

    Example Request:
    curl -X GET "https://wisk.in/api/decode?short_url=https://wisk.in/my-link" \
    -H "Authorization: Bearer YOURAPIKEY"
    Example Response:
    {
    "status": "success",
    "original_url": "https://example.com/very/long/url",
    "short_url": "https://wisk.in/my-link"
    }

    Headers

    NameDescription
    Accept
    application/json
    User-Agent
    Cruss/1.0
    Content-Type
    application/json