Authentication
All requests use your FetchLayer API key as a Bearer token. No OpenAI account and no OpenAI API key is required — these are the answers an anonymous visitor gets, read for you.
Sending requests
curl -X POST https://api.fetchlayer.dev/chatgpt/mentions \
-H "Authorization: Bearer ss-your-key" \
-H "Content-Type: application/json" \
-d '{"prompt":"best reddit api alternatives","targets":[{"name":"FetchLayer","domains":["fetchlayer.dev"]}]}'Keep your key secret
Every route is a POST
All five endpoints take a JSON body over POST, so the key never travels in a URL. Unrecognised body fields are rejected with a 400 naming the field, so a typo such as targests fails loudly instead of being quietly ignored.
Authentication errors
A missing or invalid key returns HTTP 401.
{
"error": "Invalid API key"
}