Writesonic

Need some inspiration for your next blog post, email, or landing page? Try Writesonic, the smart and fast way to write better.

Go to site
Explore
/
Apps
/
Writesonic

Writesonic API Integrations

Build and run workflows using the Writesonic API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    writesonic: {
      type: "app",
      app: "writesonic",
    }
  },
  async run({steps, $}) {
    const data = {
      "topic": `{your_topic}`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.writesonic.com/v2/business/content/blog-ideas`,
      headers: {
        "X-API-KEY": `${this.writesonic.$auth.api_key}`,
        "Accept": `application/json`,
        "Content-Type": `application/json`,
      },
      params: {
        engine: `economy`,
        language: `en`,
        num_copies: `1`,
      },
      data,
    })
  },
})

Authentication

Writesonic uses API keys for authentication. When you connect your Writesonic account, Pipedream securely stores the keys so you can easily authenticate to Writesonic APIs in both code and no-code steps.

To retrieve your API Key,

  • Navigate to your Writesonic account and sign in
  • Click the User dropdown on the top right
  • Go to “API Dashboard”