Authentication
How to authenticate your API requests.
Every request must include your API key in the x-api-key header.
The API key is the API token set on the Staff page of your Link Shortener dashboard. If no token is set, the API is disabled and every request returns 403.
Headers
x-api-keystringrequiredYour API authentication key.
Responses
- 401Missing API key
- 401Invalid API key
- 403API disabled
- 429Too Many Requests
Request
curl -X GET 'https://api.example.com/api/link/google' \
-H 'x-api-key: YOUR_API_KEY'
{
"x-api-key": "your-api-key-here"
}
401 Missing API key
{
"msg": "Missing API key."
}
401 Invalid API key
{
"msg": "Invalid API key."
}
403 API disabled
{
"msg": "The API is disabled. Set an API token on the Staff page."
}
429 Too Many Requests
{
"msg": "Too many requests. Please try again later."
}
Discussion 0
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.
No comments yet. Sign in with Discord to start the conversation.
Sign in required
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.