> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mymarky.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n

> Automate social posting with n8n workflows

## Overview

Connect Marky to n8n for automated social media posting. Common workflows:

* **Blog published → social posts** — RSS trigger → create post in Marky → schedule
* **New lead → welcome posts** — CRM trigger → create branded social content
* **Weekly batch** — Schedule trigger → create a week of posts

## Setup

### 1. Create an HTTP Request node

| Field          | Value                                                           |
| -------------- | --------------------------------------------------------------- |
| Method         | POST                                                            |
| URL            | `https://api.mymarky.ai/api/businesses/your-workspace-id/posts` |
| Authentication | Header Auth                                                     |
| Header Name    | `Authorization`                                                 |
| Header Value   | `Bearer mk_live_your_key_here`                                  |
| Body Type      | JSON                                                            |

### 2. Body

```json theme={null}
{
  "caption": "{{ $json.caption }}",
  "restrict_publish_to": ["instagram", "linkedin"]
}
```

### 3. Schedule the post (optional)

Add a second HTTP Request node:

| Field  | Value                                                                                   |
| ------ | --------------------------------------------------------------------------------------- |
| Method | POST                                                                                    |
| URL    | `https://api.mymarky.ai/api/businesses/your-workspace-id/posts/{{ $json.id }}/schedule` |
| Body   | `{"scheduled_publish_time": "{{ $json.scheduled_time }}"}`                              |

n8n's built-in looping makes it easy to create multiple posts and schedule them with staggered times.

## Rate limits

Each API key can make 100 requests per minute, 2,000 per day, and 10,000 per
week. A weekly batch of 10 posts uses \~20 requests, well within limits.
