Zapier
There is no native Brainpercent Zapier app. Use Webhooks by Zapier against https://www.brainpercent.app/api/v1.
01What you need
- A key with write, from Developer settings.
- A project id from GET https://www.brainpercent.app/api/v1/projects. Created in the app.
- A paid Zapier plan Webhooks by Zapier is a premium action.
02Generate an article
Costs 1.5 credits. Action: Webhooks by Zapier β Custom Request.
POST https://www.brainpercent.app/api/v1/articles/generate
Authorization: Bearer bp_your_key
Content-Type: application/json
{
"topic": "{{topic}}",
"project_id": "{{project_id}}",
"word_count": 1200
}Then Delay For 2 minutes, then GET https://www.brainpercent.app/api/v1/articles/{article_id}/status until is_complete is true. Loop the delay. Do not wait for a published status.
03Generate social
Costs 0.6 credits per platform. Same Custom Request pattern.
POST https://www.brainpercent.app/api/v1/social/generate
Authorization: Bearer bp_your_key
Content-Type: application/json
{
"source_url": "{{url}}",
"platforms": ["twitter", "linkedin"],
"source_type": "blog",
"project_id": "{{project_id}}"
}Key minting: Developer settings. Always www.