Comment automations
Automatic answers to comments on social posts.
Values for the examples
Type them once and every example on this page uses them. The API key stays on this page only and is never saved.
GET/v1/marketing/posts
Lists the comment automations.
Read/postsOn success: 200.Permission: Read.
Response
36 fields
| Field | Type | Always there |
|---|---|---|
connections | array of object | Yes |
connections[].channel | string | Yes |
connections[].enabled | boolean | Yes |
connections[].id | string (uuid) | Yes |
connections[].label | string | Yes |
data | array of object | Yes |
data[].connectionId | string (uuid) | Yes |
data[].createContacts | boolean | Yes |
data[].createdAt | string (date-time) | Yes |
data[].enabled | boolean | Yes |
data[].endsAt | string (date-time) | Yes |
data[].engagement | object | Yes |
data[].engagement.error | null in the examples | Yes |
data[].engagement.fetchedAt | string | null (date-time) | Yes |
data[].engagement.metrics | object | null | Yes |
data[].engagement.metrics.comments | integer | Yes |
data[].engagement.metrics.reactions | integer | Yes |
data[].engagement.metrics.shares | integer | No |
data[].engagement.nextFetchAt | string (date-time) | Yes |
data[].id | string (uuid) | Yes |
data[].includeExisting | boolean | Yes |
data[].keywords | array of string | Yes |
data[].like | boolean | Yes |
data[].nextScanAt | string (date-time) | Yes |
data[].oncePerUser | boolean | Yes |
data[].organizationId | string (uuid) | Yes |
data[].permalink | string (uri) | Yes |
data[].planBlocked | boolean | Yes |
data[].postId | string | Yes |
data[].privateReply | string | Yes |
data[].publicReply | string | null | Yes |
data[].scanAfter | null in the examples | Yes |
data[].scanError | null in the examples | Yes |
data[].startsAt | string (date-time) | Yes |
data[].title | string | Yes |
limit | integer | Yes |
Example
curl -X GET "https://api.firmado.app/v1/marketing/posts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/marketing/posts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/marketing/posts", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/marketing/posts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"connections": [
{
"channel": "…",
"enabled": true,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"label": "…"
}
],
"data": [
{
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createContacts": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"endsAt": "2026-11-21T14:00:00.000Z",
"engagement": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"includeExisting": true,
"keywords": [],
"like": true,
"nextScanAt": "2026-11-21T14:00:00.000Z",
"oncePerUser": true,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"permalink": "https://example.com",
"planBlocked": true,
"postId": "…",
"privateReply": "…",
"publicReply": "…",
"scanAfter": null,
"scanError": null,
"startsAt": "2026-11-21T14:00:00.000Z",
"title": "…"
}
],
"limit": 1
}POST/v1/marketing/posts
Starts a comment automation on a post: what triggers it and what it replies.
Create/postsOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
enabled | boolean | No | default true |
startsAt | string (date-time) | Yes | |
endsAt | string (date-time) | Yes | |
like | boolean | No | default false |
publicReply | string | null | No | default null |
privateReply | string | null | No | default null |
keywords | array of string | No | max items 30 |
createContacts | boolean | No | default false |
includeExisting | boolean | No | default false |
oncePerUser | boolean | No | default true |
connectionId | string (uuid) | Yes | |
postId | string | Yes | pattern ^[\d_]{1,150}$ |
Response
33 fields
| Field | Type | Always there |
|---|---|---|
connections | array of object | Yes |
connections[].channel | string | Yes |
connections[].enabled | boolean | Yes |
connections[].id | string (uuid) | Yes |
connections[].label | string | Yes |
data | array of object | Yes |
data[].connectionId | string (uuid) | Yes |
data[].createContacts | boolean | Yes |
data[].createdAt | string (date-time) | Yes |
data[].enabled | boolean | Yes |
data[].endsAt | string (date-time) | Yes |
data[].engagement | object | Yes |
data[].engagement.error | null in the examples | Yes |
data[].engagement.fetchedAt | null in the examples | Yes |
data[].engagement.metrics | null in the examples | Yes |
data[].engagement.nextFetchAt | string (date-time) | Yes |
data[].id | string (uuid) | Yes |
data[].includeExisting | boolean | Yes |
data[].keywords | array of string | Yes |
data[].like | boolean | Yes |
data[].nextScanAt | string (date-time) | Yes |
data[].oncePerUser | boolean | Yes |
data[].organizationId | string (uuid) | Yes |
data[].permalink | string | null (uri) | Yes |
data[].planBlocked | boolean | Yes |
data[].postId | string | Yes |
data[].privateReply | string | null | Yes |
data[].publicReply | string | Yes |
data[].scanAfter | null in the examples | Yes |
data[].scanError | null in the examples | Yes |
data[].startsAt | string (date-time) | Yes |
data[].title | string | Yes |
limit | integer | Yes |
Example
curl -X POST "https://api.firmado.app/v1/marketing/posts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}'const res = await fetch("https://api.firmado.app/v1/marketing/posts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/marketing/posts",
headers={"X-Api-Key": "fmd_..."},
json={
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/marketing/posts", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/marketing/posts");
request.Content = new StringContent(""""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"connections": [
{
"channel": "…",
"enabled": true,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"label": "…"
}
],
"data": [
{
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createContacts": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"endsAt": "2026-11-21T14:00:00.000Z",
"engagement": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"includeExisting": true,
"keywords": [],
"like": true,
"nextScanAt": "2026-11-21T14:00:00.000Z",
"oncePerUser": true,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"permalink": "https://example.com",
"planBlocked": true,
"postId": "…",
"privateReply": "…",
"publicReply": "…",
"scanAfter": null,
"scanError": null,
"startsAt": "2026-11-21T14:00:00.000Z",
"title": "…"
}
],
"limit": 1
}DELETE/v1/marketing/posts/{id}
Deletes a comment automation.
Delete/posts/{id}On success: 200.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
33 fields
| Field | Type | Always there |
|---|---|---|
connections | array of object | Yes |
connections[].channel | string | Yes |
connections[].enabled | boolean | Yes |
connections[].id | string (uuid) | Yes |
connections[].label | string | Yes |
data | array of object | Yes |
data[].connectionId | string (uuid) | Yes |
data[].createContacts | boolean | Yes |
data[].createdAt | string (date-time) | Yes |
data[].enabled | boolean | Yes |
data[].endsAt | string (date-time) | Yes |
data[].engagement | object | Yes |
data[].engagement.error | null in the examples | Yes |
data[].engagement.fetchedAt | null in the examples | Yes |
data[].engagement.metrics | null in the examples | Yes |
data[].engagement.nextFetchAt | string (date-time) | Yes |
data[].id | string (uuid) | Yes |
data[].includeExisting | boolean | Yes |
data[].keywords | array of any | Yes |
data[].like | boolean | Yes |
data[].nextScanAt | string (date-time) | Yes |
data[].oncePerUser | boolean | Yes |
data[].organizationId | string (uuid) | Yes |
data[].permalink | string (uri) | Yes |
data[].planBlocked | boolean | Yes |
data[].postId | string | Yes |
data[].privateReply | string | Yes |
data[].publicReply | string | Yes |
data[].scanAfter | null in the examples | Yes |
data[].scanError | null in the examples | Yes |
data[].startsAt | string (date-time) | Yes |
data[].title | string | Yes |
limit | integer | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/marketing/posts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.delete(
"https://api.firmado.app/v1/marketing/posts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/marketing/posts/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/marketing/posts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"limit": 1,
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…",
"title": "…",
"permalink": "https://example.com",
"enabled": true,
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"like": true,
"publicReply": "…",
"privateReply": "…",
"keywords": [],
"createContacts": true,
"includeExisting": true,
"oncePerUser": true,
"scanAfter": null,
"nextScanAt": "2026-11-21T14:00:00.000Z",
"scanError": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"planBlocked": true,
"engagement": {}
}
],
"connections": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"channel": "…",
"label": "…",
"enabled": true
}
]
}PUT/v1/marketing/posts/{id}
Changes a comment automation, or pauses it.
Update/posts/{id}On success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
enabled | boolean | No | default true |
startsAt | string (date-time) | Yes | |
endsAt | string (date-time) | Yes | |
like | boolean | No | default false |
publicReply | string | null | No | default null |
privateReply | string | null | No | default null |
keywords | array of string | No | max items 30 |
createContacts | boolean | No | default false |
includeExisting | boolean | No | default false |
oncePerUser | boolean | No | default true |
Example
curl -X PUT "https://api.firmado.app/v1/marketing/posts/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}'const res = await fetch("https://api.firmado.app/v1/marketing/posts/{id}", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/marketing/posts/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": True,
"like": False,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/{id}")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/marketing/posts/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/marketing/posts/{id}");
request.Content = new StringContent(""""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/marketing/posts/{id}/logs
What a comment automation did: comments seen, replies and messages sent.
Read/posts/{id}/logsOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X GET "https://api.firmado.app/v1/marketing/posts/{id}/logs" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts/{id}/logs", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/marketing/posts/{id}/logs",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/{id}/logs");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/{id}/logs")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/marketing/posts/{id}/logs", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/{id}/logs"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/marketing/posts/{id}/logs");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/marketing/posts/accounts/{id}/posts
A connected account’s recent posts, to pick one for an automation.
Read/posts/accounts/{id}/postsOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
5 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].id | string | Yes |
data[].permalink | string (uri) | Yes |
data[].title | string | Yes |
next | null in the examples | Yes |
Example
curl -X GET "https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"id": "…",
"title": "…",
"permalink": "https://example.com"
}
],
"next": null
}Webhook events
Changes of this feature that webhooks can send.
post_automation.createdCreatepost_automation.updatedUpdatepost_automation.deletedDelete