The basics

  • Your API's address is https://your-project.codefreeapi.com/api/v1, followed by the entity name, like /tasks.
  • Every request sends your API key in the X-API-Key header.
  • Requests by signed-in users also send Authorization: Bearer ACCESS_TOKEN.
  • Bodies and answers are JSON. Errors look like { "error": "…" }.

Building with an AI tool? Make your project's API docs public in the project settings and give the link to Lovable, v0, Bolt or Cursor, together with these basics. It can then write the requests for you.

Your first request
const res = await fetch("https://your-project.codefreeapi.com/api/v1/tasks?done=false", {
  headers: { "X-API-Key": "cfa_your_key" },
});
const { data, pagination } = await res.json();

Ready to build?

Create a free account and follow the quick start. Your API is live in a few minutes.