Skip to content

Projects

A project is one business: its website, language, audience and voice. Every article and post is generated inside a project, so most integrations start by picking a project_id here.

MethodPathNeeds
GET/api/v1/projectsread
GET/api/v1/projects/{id}read
POST/api/v1/projects/preflightread + projects scope. Free.
GET/api/v1/projects

Your projects, newest first, paginated. Free.

Query parameters

NameTypeRequiredDescription
pageintegerOptional1-based page Default 1.
limitintegerOptional1 to 100 Default 20.
statusstringOptionalExact match on the project status, for example completed
searchstringOptionalCase-insensitive match on business_name (max 200 characters)
Request
curl "https://www.brainpercent.app/api/v1/projects?limit=5" \
  -H "Authorization: Bearer $BP_KEY"
200Response
{
  "success": true,
  "data": [
    {
      "id": "1f8b4518-128d-4b2c-8b81-aa3939dbb7b5",
      "business_name": "Northwind Coffee",
      "business_website": "https://northwind.coffee/",
      "business_language": "en",
      "location": null,
      "expert_in": "Northwind Coffee roasts single-origin beans and sells brewing gear online.",
      "status": "completed",
      "created_at": "2026-09-28T09:32:51.128873+00:00",
      "updated_at": "2026-10-25T04:01:06.591743+00:00"
    }
  ],
  "pagination": {
    "total": 1,
    "page": 1,
    "limit": 5,
    "total_pages": 1,
    "has_more": false
  },
  "meta": {
    "timestamp": "2026-10-29T15:40:14.123Z"
  }
}
GET/api/v1/projects/:id

One project with the brand context generation uses: audience, tone, offer and products. Credentials and sync settings stored on the project are never returned. Another account's project is a 404. Free.

Request
curl https://www.brainpercent.app/api/v1/projects/1f8b4518-128d-4b2c-8b81-aa3939dbb7b5 \
  -H "Authorization: Bearer $BP_KEY"
200Response
{
  "success": true,
  "data": {
    "id": "1f8b4518-128d-4b2c-8b81-aa3939dbb7b5",
    "business_name": "Northwind Coffee",
    "business_website": "https://northwind.coffee/",
    "business_language": "en",
    "language_code": null,
    "location": null,
    "expert_in": "Northwind Coffee roasts single-origin beans and sells brewing gear online.",
    "avatar_icp": "Home brewers who want cafe results",
    "avatar_niche": "Specialty coffee",
    "tone_voice": "friendly",
    "tone_style": "practical",
    "structure_usp": "Roasted to order, shipped in 48 hours",
    "structure_main_offer": "Monthly bean subscription",
    "structure_key_products": "Beans, grinders, pour-over kits",
    "status": "completed",
    "project_status": "active",
    "created_at": "2026-09-28T09:32:51.128873+00:00",
    "updated_at": "2026-10-25T04:01:06.591743+00:00"
  },
  "meta": {
    "timestamp": "2026-10-29T15:40:14.123Z"
  }
}
POST/api/v1/projects/preflight

Ask whether this account already has a project for a website before you send someone to create one. Read-only: it never creates a project, starts a scan or spends credits. Needs the projects scope. Limited to 30 calls a minute per account.

Request body

NameTypeRequiredDescription
websitestringRequiredA URL or domain, for example northwind.coffee (max 500 characters)
business_namestringOptionalOptional, max 120 characters. Used to spot a likely duplicate with another address.
Request
curl -X POST https://www.brainpercent.app/api/v1/projects/preflight \
  -H "Authorization: Bearer $BP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"website": "northwind.coffee"}'
200Response
{
  "success": true,
  "data": {
    "verdict": "open_existing",
    "websiteKey": "northwind.coffee",
    "existing": {
      "id": "1f8b4518-128d-4b2c-8b81-aa3939dbb7b5",
      "business_name": "Northwind Coffee",
      "business_website": "https://northwind.coffee/"
    },
    "source": null
  },
  "meta": {
    "timestamp": "2026-10-29T15:40:14.123Z"
  }
}

Preflight verdicts

verdictMeaning
open_existingA project for this site exists. existing.id is the project_id to use.
blocked_removedA deleted, archived or locked project already holds this exact address, so a new one cannot be created with it. Sort it out in the app.
confirm_nameNo match on the address, but a recent project has the same name. Confirm before creating.
createNothing matches and the site is readable. Safe to create in the app.
holdThe site could not be read right now. Do not create yet; source.message says why.
invalidThe website value is not a usable address.

Errors: 400 VALIDATION_ERROR for a bad body, 403 FORBIDDEN without the projects scope, 429 RATE_LIMIT_EXCEEDED past 30 a minute, 503 INTERNAL_ERROR when the check could not run.