Siteleaf

A friendly CMS for static sites. Powered by Jekyll, with GitHub sync, and a complete API.

Integrate the Siteleaf API with the Notion API

Setup the Siteleaf API trigger to run a workflow which integrates with the Notion API. Pipedream's integration platform allows you to integrate Siteleaf and Notion remarkably fast. Free for developers.

Append Block to Parent with Notion API on New Collection from Siteleaf API
Siteleaf + Notion
 
Try it
Append Block to Parent with Notion API on New Document from Siteleaf API
Siteleaf + Notion
 
Try it
Append Block to Parent with Notion API on New Page from Siteleaf API
Siteleaf + Notion
 
Try it
Append Block to Parent with Notion API on New Site from Siteleaf API
Siteleaf + Notion
 
Try it
Create Document with Siteleaf API on New Database from Notion API
Notion + Siteleaf
 
Try it
New Collection from the Siteleaf API

Emit new event when a new collection is created. See the docs here

 
Try it
New Document from the Siteleaf API

Emit new event when a new document is created. See the docs here

 
Try it
New Page from the Siteleaf API

Emit new event when a new page is created. See the docs here

 
Try it
New Site from the Siteleaf API

Emit new event when a new site is created. See the docs here

 
Try it
New Database from the Notion API

Emit new event when a database is created. Note: Databases must be shared with your Pipedream Integtration to trigger event.

 
Try it
Create Document with the Siteleaf API

Create a new document. See the docs here

 
Try it
Append Block to Parent with the Notion API

Creates and appends blocks to the specified parent. See the documentation

 
Try it
Create Page with the Notion API

Creates a page from a parent page. The only valid property is title. See the documentation

 
Try it
Create Page from Database with the Notion API

Creates a page from a database. See the docs

 
Try it
Duplicate Page with the Notion API

Creates a new page copied from an existing page block. See the docs

 
Try it

Overview of Siteleaf

The Siteleaf API facilitates content management by enabling programmatic interactions with your Siteleaf site. Via the API, you can automate content creation, updates, and retrieval, making it possible to keep your website current without manual intervention. It's designed for developers who need to streamline their content operations or integrate their Siteleaf content with other tools and services.

Connect Siteleaf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    siteleaf: {
      type: "app",
      app: "siteleaf",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.siteleaf.com/v2/sites`,
      auth: {
        username: `${this.siteleaf.$auth.api_key}`,
        password: `${this.siteleaf.$auth.api_secret}`,
      },
    })
  },
})

Overview of Notion

Notion's API allows for the creation, reading, updating, and deleting of pages, databases, and their contents within Notion. Leveraging Pipedream's platform, you can build workflows that connect Notion with a myriad of other services to automate tasks such as content management, task tracking, and data synchronization. With Pipedream's serverless execution, you can trigger these workflows on a schedule, or by external events from other services, without managing any infrastructure.

Connect Notion

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    notion: {
      type: "app",
      app: "notion",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.notion.com/v1/users/me`,
      headers: {
        Authorization: `Bearer ${this.notion.$auth.oauth_access_token}`,
        "Notion-Version": `2021-08-16`,
      },
    })
  },
})