Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.43 KB

File metadata and controls

49 lines (37 loc) · 1.43 KB

License: MIT Website Discussions myapi.rest Suite

myapi.rest — Short URL API

Create fast, reliable short URLs through a simple REST API.

Features

  • Generate short links instantly
  • Optional expiry timestamps
  • Webhook support for click events
  • Developer-friendly and lightweight

Quick Example

curl --location 'https://api.myapi.rest/api/shorturl/generate'   --header 'Authorization: Bearer <API_KEY>'   --header 'Content-Type: application/json'   --data '{
    "long_url": "https://myapi.rest",
    "expires_at": "2026-12-01T10:00:00Z"
  }'

Sample response:

{
  "shorturl": "https://grc.pw/Z7hye8b"
}

Documentation

See the /docs folder for full usage guides, examples, errors, and endpoint details.

Examples

Language examples are available in the /examples directory, including:

  • C#
  • JavaScript
  • Python
  • PHP
  • Postman Collection

myapi.rest Suite

This API is part of the broader myapi.rest developer suite.
For all APIs, documentation, and examples, visit:

👉 https://github.com/myapi-rest/myapi.rest