Skip to content

Make

There is no native Brainpercent Make app. Use the HTTP module against https://www.brainpercent.app/api/v1.

01What you need

  • A write key from Developer settings.
  • A project id from GET /projects.

02HTTP module

Method POST. URL https://www.brainpercent.app/api/v1/social/generate. Header Authorization Bearer. Body JSON. 0.6 credits per platform.

{
  "source_url": "{{1.url}}",
  "platforms": ["linkedin", "twitter"],
  "source_type": "blog",
  "project_id": "{{project_id}}"
}

Next module: Sleep 15 seconds. Then HTTP GET https://www.brainpercent.app/api/v1/social/content/{{content_id}}. Repeat while status is queued or generating. Ready or completed means the posts are there, partial means some channels failed, and failed means none were made. Then you can POST /social/publish if a channel is connected.

  1. HTTP moduleStart the postsPOST /social/generate
  2. SleepWait 15 seconds
  3. HTTP moduleAsk for the statusRepeat from Sleep until the posts are done.
  4. HTTP modulePublish the postsPOST /social/publish, if a channel is connected.
Every step starts in Make. Brainpercent only answers.

Keys: Developer settings.