You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/public-api.mdx
+84-54Lines changed: 84 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,15 @@ title: Public API
3
3
description: "How to use Postiz public API"
4
4
---
5
5
6
-
import {Callout} from'nextra/components';
6
+
import {Callout} from"nextra/components";
7
7
8
8
<Callouttype="warning">
9
-
**Warning:** This Feature is currently in Beta and is in active-development. It does **not** provide all of the Postiz Features currently.
9
+
**Warning:** This Feature is currently in Beta and is in active-development.
10
+
It does **not** provide all of the Postiz Features currently.
10
11
</Callout>
11
12
12
13
## For NodeJS users
14
+
13
15
You can use the <ahref="https://www.npmjs.com/package/@postiz/node"target="_blank">Postiz NodeJS SDK</a> to interact with the Postiz Public API.<br />
14
16
15
17
For a custom n8n node check <ahref="https://www.npmjs.com/package/n8n-nodes-postiz"target="_blank">Postiz n8n custom node</a><br />
@@ -22,12 +24,22 @@ If you are using the hosted version of Postiz the URL will be `https://api.posti
22
24
If you are self-hosting Postiz the URL will be `https://{NEXT_PUBLIC_BACKEND_URL}/public/v1`.<br /><br />
23
25
24
26
<u>There is a limit of **30** requests per hour.</u>
27
+
It does not mean you can post only 30 posts per hour, it means you can make 30
28
+
requests to the API per hour. If you plan ahead, you can have a lot more every
29
+
hour.
30
+
25
31
<br />
26
-
Here are the following API endpoints you can use:
32
+
33
+
<strong>
34
+
NOTE: The UI representation is a `channel`, but on the API it is called
35
+
`integration`. So when you see `integration` in the API, it means a `channel`.
36
+
</strong>
27
37
28
38
<br />
29
39
30
-
> NOTE: The UI representation is a `channel`, but on the API it is called `integration`. So when you see `integration` in the API, it means a `channel`.
40
+
Here are the following API endpoints you can use:
41
+
42
+
<br />
31
43
32
44
### Get all added channels
33
45
@@ -90,6 +102,7 @@ GET https://api.postiz.com/public/v1/posts
90
102
```
91
103
92
104
Payload
105
+
93
106
```json
94
107
{
95
108
"startDate": "UTC date in ISO format - ex. 2024-12-14T08:18:54.274Z",
0 commit comments