Project Phil Documentation
Sign in

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-keystringrequired
    Your 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."
}
Written by !RAB Last updated 1 Dec 2026

Discussion 0

No comments yet. Sign in with Discord to start the conversation.