API quick start
Five calls from a key to a published post. Steps 1 to 2 and 4 are free. Step 3 costs 0.6 credits per platform; an article costs 1.5.
- 01Make a keyIn the app. Tick write.
- 02Find your projectCopy its id.
- 03Turn a URL into postsCopy the content_id.
- 04Wait for itPoll until it finishes.
- 05Publish or scheduleNow, or at a set time.
01Make a key
Open Developer settings, create a key, tick write, and copy it. Then check it works:
export BP_KEY="bp_your_key"
curl https://www.brainpercent.app/api/v1/user/credits -H "Authorization: Bearer $BP_KEY"02Find your project
Everything is written in a project's brand voice and language. Projects are created in the app by pasting a website.
curl "https://www.brainpercent.app/api/v1/projects?limit=5" -H "Authorization: Bearer $BP_KEY"
# copy data[0].id
export PROJECT_ID="..."03Turn a URL into posts
curl -X POST https://www.brainpercent.app/api/v1/social/generate \
-H "Authorization: Bearer $BP_KEY" \
-H "Content-Type: application/json" \
-d "{
\"source_url\": \"https://example.com/blog/your-post\",
\"platforms\": [\"linkedin\", \"instagram\"],
\"project_id\": \"$PROJECT_ID\"
}"
# copy data.content_id
export CONTENT_ID="..."04Wait for it
curl https://www.brainpercent.app/api/v1/social/content/$CONTENT_ID -H "Authorization: Bearer $BP_KEY"
# repeat every few seconds until status is completed (or partial / failed)05Publish or schedule
Connect the social accounts in the app first (Connections). Then:
curl -X POST https://www.brainpercent.app/api/v1/social/publish \
-H "Authorization: Bearer $BP_KEY" \
-H "Content-Type: application/json" \
-d "{\"content_id\": \"$CONTENT_ID\", \"scheduled_at\": \"2026-11-03T14:00:00Z\"}"Leave out scheduled_at to publish now.