Shorten a URL
Creates a short link on your plan: code length, maximum lifetime and deep-link support follow the plan. lifetimeDays is clamped to the plan maximum (60 days on Free, 120 on Basic, unlimited on Pro); omit it to get the maximum. fallbackUrl is only valid when url is an app deep link (custom scheme such as myapp://...), and custom schemes require a Pro plan. Each call counts against your monthly URL allowance; once it is used up the API returns 429. With customCode (Pro), the link uses your custom code and redirects at https://gajo.io/c/{code}: an unclaimed code is claimed for you, and one of your own codes is used if it isn't currently linked to a URL. A code that's taken, released, or already linked returns 409 (change a linked code's destination with PUT /urls/{code}). Custom-code links don't expire, so lifetimeDays can't be combined with customCode.
Request
- Base URL: https://gajo.io/api/v1
- URL: https://gajo.io/api/v1/shorten
- Auth: API key in header x-api-key
Request body
Response
The new short link. Share it as https://gajo.io/{shortCode}.
Changes
No recorded changes to this operation across all 1 revision of this API.