Explore the 9asir API documentation and learn how to use the API to programmatically manage short links.
Welcome to the 9asir API documentation! This guide provides an overview of how to use our API to programmatically manage short links using API keys.
All API requests should be made to the following base URL:
https://9asir.com/api
To authenticate your requests, you must include an API key in the Authorization
header of your request. The API key should be prefixed with Bearer
. To obtain an API key, please contact our support team.
Here are some examples of how to use the 9asir API using cURL:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer your_api_key" -d '{
"url": "https://www.example.com",
"customKey": "custom_key",
"domain": "9asir.com",
"title": "Example Title",
"description": "Example Description"
}' "https://9asir.com/api/url"
curl -X GET -H "Authorization: Bearer your_api_key" "https://9asir.com/api/url/custom_key"
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer your_api_key" -d '{
"url": "https://www.updated-example.com",
"title": "Updated Title",
"description": "Updated Description"
}' "https://9asir.com/api/url/link_id"
curl -X DELETE -H "Authorization: Bearer your_api_key" "https://9asir.com/api/url/link_id"
If you have any questions, issues, or need assistance, please contact our support team at [email protected].
Happy coding!