s.id Public API
  1. Links
  • Introduction
  • v1
    • Links
      • List Links
        GET
      • Create Link
        POST
      • Link Detail by Short
        GET
      • Link Detail
        GET
      • Update Link
        POST
      • Protected Link
        POST
      • Dispossable Link
        POST
      • Archive Link
        PUT
      • Unarchive Link
        PUT
    • Quota
      GET
    • Me
      GET
  • Ping
    GET
  1. Links

Create Link

POST
https://api.s.id/v1/links
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.s.id/v1/links' \
--header 'X-Auth-Id;' \
--header 'X-Auth-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "long_url": "http://yourexamplelink.id/this-very-long-url"
}'
Response Response Example
{
    "code": 200,
    "message": "link_created",
    "data": {
        "_id": "6673610e22b2eaa01abe4873",
        "id": 414736,
        "created_at": "2024-06-20T05:51:58.036434+07:00",
        "updated_at": "2024-06-20T05:51:58.036435+07:00",
        "short": "1JTi",
        "long_url": "https://example.com/test-link2",
        "blocked": false,
        "blocked_reason": null,
        "blocked_at": null,
        "microsite": false,
        "protected": false,
        "disposable": false,
        "adult": false,
        "archive_at": null
    }
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Modified at 2024-06-19 12:23:06
Previous
List Links
Next
Link Detail by Short
Built with