Social posts
The social calendar: posts, approval and publishing.
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/social-posts
Lists the posts of the social calendar between two dates.
ListOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
from | string (date-time) | No | |
to | string (date-time) | No | |
status | "draft" | "pending" | "changes_requested" | "scheduled" | "publishing" | "published" | "failed" | No | |
unscheduled | string | No | |
connectionId | string (uuid) | No |
Response
42 fields
| Field | Type | Always there |
|---|---|---|
[].approvedAt | string | null (date-time) | Yes |
[].approvedBy | string | null (uuid) | Yes |
[].approvedByName | string | null | Yes |
[].automation | null in the examples | Yes |
[].caption | string | Yes |
[].countedAt | null in the examples | Yes |
[].createdAt | string (date-time) | Yes |
[].createdBy | string (uuid) | Yes |
[].createdByName | string | Yes |
[].firstComment | null in the examples | Yes |
[].id | string (uuid) | Yes |
[].media | array of object | Yes |
[].media[].alt | null in the examples | Yes |
[].media[].height | integer | Yes |
[].media[].id | string (uuid) | Yes |
[].media[].url | string (uri) | Yes |
[].media[].width | integer | Yes |
[].notes | null in the examples | Yes |
[].organizationId | string (uuid) | Yes |
[].publishedAt | null in the examples | Yes |
[].scheduledAt | string (date-time) | Yes |
[].status | string | Yes |
[].submittedAt | string | null (date-time) | Yes |
[].submittedBy | string | null (uuid) | Yes |
[].targets | array of object | Yes |
[].targets[].automationError | null in the examples | Yes |
[].targets[].automationId | null in the examples | Yes |
[].targets[].caption | null in the examples | Yes |
[].targets[].connectionId | string (uuid) | Yes |
[].targets[].error | null in the examples | Yes |
[].targets[].errorDetail | null in the examples | Yes |
[].targets[].externalId | null in the examples | Yes |
[].targets[].id | string (uuid) | Yes |
[].targets[].label | string | Yes |
[].targets[].metrics | null in the examples | Yes |
[].targets[].network | string | Yes |
[].targets[].permalink | null in the examples | Yes |
[].targets[].publishedAt | null in the examples | Yes |
[].targets[].status | string | Yes |
[].title | null in the examples | Yes |
[].updatedAt | string (date-time) | Yes |
[].updatedBy | string (uuid) | Yes |
Example
curl -X GET "https://api.firmado.app/v1/social-posts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/social-posts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-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/social-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/social-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/social-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/social-posts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": null,
"caption": "…",
"firstComment": null,
"media": [
{}
],
"automation": null,
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"approvedAt": "2026-11-21T14:00:00.000Z",
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": "Ana Lima",
"targets": [
{}
]
}
]POST/v1/social-posts
Creates a post draft for the connected accounts.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | null | No | |
caption | string | No | max length 63206 · default "" |
firstComment | string | null | No | |
media | array of object | No | max items 10 |
media[].id | string (uuid) | Yes | |
media[].alt | string | null | No | |
notes | string | null | No | |
scheduledAt | string (date-time) | null | No | |
targets | array of object | No | max items 10 |
targets[].connectionId | string (uuid) | Yes | |
targets[].caption | string | null | No | |
automation | object | null | No | |
automation.days | integer | No | min 1 · max 90 · default 7 |
automation.like | boolean | No | default false |
automation.publicReply | string | null | No | default null |
automation.privateReply | string | null | No | default null |
automation.keywords | array of string | No | max items 30 |
automation.createContacts | boolean | No | default false |
automation.oncePerUser | boolean | No | default true |
Response
56 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | null in the examples | Yes |
approvedBy | null in the examples | Yes |
approvedByName | null in the examples | Yes |
automation | object | null | Yes |
automation.createContacts | boolean | Yes |
automation.days | integer | Yes |
automation.keywords | array of string | Yes |
automation.like | boolean | Yes |
automation.oncePerUser | boolean | Yes |
automation.privateReply | string | Yes |
automation.publicReply | null in the examples | Yes |
caption | string | Yes |
countedAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | string | null | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | null in the examples | Yes |
history[].type | string | Yes |
history[].userId | string (uuid) | Yes |
history[].userName | string | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | string | null | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | string | null (date-time) | Yes |
status | string | Yes |
submittedAt | null in the examples | Yes |
submittedBy | null in the examples | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | string | null | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | null in the examples | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | null in the examples | Yes |
targets[].network | string | Yes |
targets[].permalink | null in the examples | Yes |
targets[].publishedAt | null in the examples | Yes |
targets[].status | string | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/social-posts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
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/social-posts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
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(`{
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/social-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/social-posts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
"""))
.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/social-posts");
request.Content = new StringContent(""""
{
"title": "…",
"caption": "",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": {
"days": 1,
"like": true,
"keywords": [
"…"
],
"oncePerUser": true,
"publicReply": null,
"privateReply": "…",
"createContacts": true
},
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": null,
"submittedAt": null,
"approvedBy": null,
"approvedAt": null,
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": null,
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": "…",
"status": "…",
"externalId": null,
"permalink": null,
"error": null,
"errorDetail": null,
"publishedAt": null,
"automationId": null,
"automationError": null,
"metrics": null
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}DELETE/v1/social-posts/{id}
Deletes a post that has not gone out.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/social-posts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/social-posts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/social-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/social-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) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/social-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/social-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/social-posts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/social-posts/{id}
Returns a post with each account’s result and its history.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
60 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | string (date-time) | Yes |
approvedBy | string (uuid) | Yes |
approvedByName | string | Yes |
automation | object | null | Yes |
automation.createContacts | boolean | Yes |
automation.days | integer | Yes |
automation.keywords | array of string | Yes |
automation.like | boolean | Yes |
automation.oncePerUser | boolean | Yes |
automation.privateReply | string | Yes |
automation.publicReply | null in the examples | Yes |
caption | string | Yes |
countedAt | string (date-time) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | string | null | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | string | null | Yes |
history[].type | string | Yes |
history[].userId | string | null (uuid) | Yes |
history[].userName | string | null | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | string | null | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | string | null (date-time) | Yes |
scheduledAt | string (date-time) | Yes |
status | string | Yes |
submittedAt | string (date-time) | Yes |
submittedBy | string (uuid) | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | string | null (uuid) | Yes |
targets[].caption | string | null | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | string | null | Yes |
targets[].errorDetail | string | null | Yes |
targets[].externalId | string | null | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | object | null | Yes |
targets[].metrics.error | null in the examples | Yes |
targets[].metrics.fetchedAt | null in the examples | Yes |
targets[].metrics.metrics | null in the examples | Yes |
targets[].metrics.nextFetchAt | string (date-time) | Yes |
targets[].network | string | Yes |
targets[].permalink | string | null (uri) | Yes |
targets[].publishedAt | string | null (date-time) | Yes |
targets[].status | string | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X GET "https://api.firmado.app/v1/social-posts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/social-posts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}");
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/social-posts/{id}")
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/social-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/social-posts/{id}"))
.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/social-posts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": {
"days": 1,
"like": true,
"keywords": [
"…"
],
"oncePerUser": true,
"publicReply": null,
"privateReply": "…",
"createContacts": true
},
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"approvedAt": "2026-11-21T14:00:00.000Z",
"publishedAt": "2026-11-21T14:00:00.000Z",
"countedAt": "2026-11-21T14:00:00.000Z",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": "Ana Lima",
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": "…",
"status": "…",
"externalId": "…",
"permalink": "https://example.com",
"error": "…",
"errorDetail": "…",
"publishedAt": "2026-11-21T14:00:00.000Z",
"automationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"automationError": null,
"metrics": {}
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}PATCH/v1/social-posts/{id}
Changes a post that has not gone out.
UpdateOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | null | No | |
caption | string | No | max length 63206 |
firstComment | string | null | No | |
media | array of object | No | max items 10 |
media[].id | string (uuid) | Yes | |
media[].alt | string | null | No | |
notes | string | null | No | |
scheduledAt | string (date-time) | null | No | |
targets | array of object | No | max items 10 |
targets[].connectionId | string (uuid) | Yes | |
targets[].caption | string | null | No | |
automation | object | null | No | |
automation.days | integer | No | min 1 · max 90 · default 7 |
automation.like | boolean | No | default false |
automation.publicReply | string | null | No | default null |
automation.privateReply | string | null | No | default null |
automation.keywords | array of string | No | max items 30 |
automation.createContacts | boolean | No | default false |
automation.oncePerUser | boolean | No | default true |
Response
49 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | null in the examples | Yes |
approvedBy | null in the examples | Yes |
approvedByName | null in the examples | Yes |
automation | null in the examples | Yes |
caption | string | Yes |
countedAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | string | null | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | string | null | Yes |
history[].type | string | Yes |
history[].userId | string (uuid) | Yes |
history[].userName | string | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | string | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | string (date-time) | Yes |
status | string | Yes |
submittedAt | string | null (date-time) | Yes |
submittedBy | string | null (uuid) | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | string | null | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | null in the examples | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | null in the examples | Yes |
targets[].network | string | Yes |
targets[].permalink | null in the examples | Yes |
targets[].publishedAt | null in the examples | Yes |
targets[].status | string | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X PATCH "https://api.firmado.app/v1/social-posts/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/social-posts/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/social-posts/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
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/social-posts/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
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(`{
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/social-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/social-posts/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
"""))
.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("PATCH"), "https://api.firmado.app/v1/social-posts/{id}");
request.Content = new StringContent(""""
{
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": null,
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": null,
"approvedAt": null,
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": null,
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": "…",
"status": "…",
"externalId": null,
"permalink": null,
"error": null,
"errorDetail": null,
"publishedAt": null,
"automationId": null,
"automationError": null,
"metrics": null
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}POST/v1/social-posts/{id}/approve
Approves a post waiting for approval, scheduling it.
Update/{id}/approveOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
49 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | string (date-time) | Yes |
approvedBy | string (uuid) | Yes |
approvedByName | string | Yes |
automation | null in the examples | Yes |
caption | string | Yes |
countedAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | string | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | string | null | Yes |
history[].type | string | Yes |
history[].userId | string (uuid) | Yes |
history[].userName | string | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | string | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | string (date-time) | Yes |
status | string | Yes |
submittedAt | string (date-time) | Yes |
submittedBy | string (uuid) | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | string | null | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | null in the examples | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | null in the examples | Yes |
targets[].network | string | Yes |
targets[].permalink | null in the examples | Yes |
targets[].publishedAt | null in the examples | Yes |
targets[].status | string | Yes |
title | string | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/approve" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/approve", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/approve",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/approve");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/social-posts/{id}/approve")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/social-posts/{id}/approve", 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/social-posts/{id}/approve"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/social-posts/{id}/approve");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": null,
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"approvedAt": "2026-11-21T14:00:00.000Z",
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": "Ana Lima",
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": "…",
"status": "…",
"externalId": null,
"permalink": null,
"error": null,
"errorDetail": null,
"publishedAt": null,
"automationId": null,
"automationError": null,
"metrics": null
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}POST/v1/social-posts/{id}/comments
Writes a note in the post’s history, for the team.
Update/{id}/commentsOn success: 201.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
note | string | Yes | min length 1 · max length 2000 |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/comments" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"note": "…"
}'const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/comments", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"note": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/comments",
headers={"X-Api-Key": "fmd_..."},
json={
"note": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/comments");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"note": "…"
}
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/social-posts/{id}/comments")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"note": "…"
}
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(`{
"note": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/social-posts/{id}/comments", 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/social-posts/{id}/comments"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"note": "…"
}
"""))
.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/social-posts/{id}/comments");
request.Content = new StringContent(""""
{
"note": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/social-posts/{id}/duplicate
A new draft with the same content.
Create/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
44 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | null in the examples | Yes |
approvedBy | null in the examples | Yes |
approvedByName | null in the examples | Yes |
automation | null in the examples | Yes |
caption | string | Yes |
countedAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | null in the examples | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | null in the examples | Yes |
history[].type | string | Yes |
history[].userId | string (uuid) | Yes |
history[].userName | string | Yes |
id | string (uuid) | Yes |
media | array of any | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | null in the examples | Yes |
status | string | Yes |
submittedAt | null in the examples | Yes |
submittedBy | null in the examples | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | null in the examples | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | null in the examples | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | null in the examples | Yes |
targets[].network | string | Yes |
targets[].permalink | null in the examples | Yes |
targets[].publishedAt | null in the examples | Yes |
targets[].status | string | Yes |
title | null in the examples | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/duplicate" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/duplicate");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/social-posts/{id}/duplicate")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/social-posts/{id}/duplicate", 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/social-posts/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/social-posts/{id}/duplicate");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": null,
"caption": "…",
"firstComment": null,
"media": [],
"automation": null,
"notes": null,
"status": "…",
"scheduledAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": null,
"submittedAt": null,
"approvedBy": null,
"approvedAt": null,
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": null,
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": null,
"status": "…",
"externalId": null,
"permalink": null,
"error": null,
"errorDetail": null,
"publishedAt": null,
"automationId": null,
"automationError": null,
"metrics": null
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}POST/v1/social-posts/{id}/request-changes
Sends a post back to its author with what to change.
Update/{id}/request-changesOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
note | string | Yes | min length 3 · max length 2000 |
Response
49 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | null in the examples | Yes |
approvedBy | null in the examples | Yes |
approvedByName | null in the examples | Yes |
automation | null in the examples | Yes |
caption | string | Yes |
countedAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | string | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | string | null | Yes |
history[].type | string | Yes |
history[].userId | string (uuid) | Yes |
history[].userName | string | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | string | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | string (date-time) | Yes |
status | string | Yes |
submittedAt | string (date-time) | Yes |
submittedBy | string (uuid) | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | string | null | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | null in the examples | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | null in the examples | Yes |
targets[].network | string | Yes |
targets[].permalink | null in the examples | Yes |
targets[].publishedAt | null in the examples | Yes |
targets[].status | string | Yes |
title | string | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/request-changes" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"note": "…"
}'const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/request-changes", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"note": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/request-changes",
headers={"X-Api-Key": "fmd_..."},
json={
"note": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/request-changes");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"note": "…"
}
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/social-posts/{id}/request-changes")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"note": "…"
}
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(`{
"note": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/social-posts/{id}/request-changes", 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/social-posts/{id}/request-changes"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"note": "…"
}
"""))
.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/social-posts/{id}/request-changes");
request.Content = new StringContent(""""
{
"note": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": null,
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": null,
"approvedAt": null,
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": null,
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": "…",
"status": "…",
"externalId": null,
"permalink": null,
"error": null,
"errorDetail": null,
"publishedAt": null,
"automationId": null,
"automationError": null,
"metrics": null
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}POST/v1/social-posts/{id}/retry
Tries again the accounts where the post failed.
Update/{id}/retryOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
53 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | string (date-time) | Yes |
approvedBy | string (uuid) | Yes |
approvedByName | string | Yes |
automation | null in the examples | Yes |
caption | string | Yes |
countedAt | string (date-time) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | null in the examples | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | string | null | Yes |
history[].type | string | Yes |
history[].userId | string | null (uuid) | Yes |
history[].userName | string | null | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | null in the examples | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | string (date-time) | Yes |
status | string | Yes |
submittedAt | string (date-time) | Yes |
submittedBy | string (uuid) | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | null in the examples | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | string | null | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | object | null | Yes |
targets[].metrics.error | null in the examples | Yes |
targets[].metrics.fetchedAt | null in the examples | Yes |
targets[].metrics.metrics | null in the examples | Yes |
targets[].metrics.nextFetchAt | string (date-time) | Yes |
targets[].network | string | Yes |
targets[].permalink | string | null (uri) | Yes |
targets[].publishedAt | string | null (date-time) | Yes |
targets[].status | string | Yes |
title | null in the examples | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/retry" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/retry", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/retry",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/retry");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/social-posts/{id}/retry")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/social-posts/{id}/retry", 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/social-posts/{id}/retry"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/social-posts/{id}/retry");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": null,
"caption": "…",
"firstComment": null,
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": null,
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": null,
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"approvedAt": "2026-11-21T14:00:00.000Z",
"publishedAt": null,
"countedAt": "2026-11-21T14:00:00.000Z",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": "Ana Lima",
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": null,
"status": "…",
"externalId": "…",
"permalink": "https://example.com",
"error": null,
"errorDetail": null,
"publishedAt": "2026-11-21T14:00:00.000Z",
"automationId": null,
"automationError": null,
"metrics": {}
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}POST/v1/social-posts/{id}/schedule
Schedules a post, or sends it for approval when that is required.
Update/{id}/scheduleOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
now | boolean | No | default false |
Response
56 fields
| Field | Type | Always there |
|---|---|---|
approvedAt | string | null (date-time) | Yes |
approvedBy | string | null (uuid) | Yes |
approvedByName | string | null | Yes |
automation | object | null | Yes |
automation.createContacts | boolean | Yes |
automation.days | integer | Yes |
automation.keywords | array of string | Yes |
automation.like | boolean | Yes |
automation.oncePerUser | boolean | Yes |
automation.privateReply | string | Yes |
automation.publicReply | null in the examples | Yes |
caption | string | Yes |
countedAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
createdByName | string | Yes |
firstComment | string | null | Yes |
history | array of object | Yes |
history[].createdAt | string (date-time) | Yes |
history[].id | string (uuid) | Yes |
history[].note | string | null | Yes |
history[].type | string | Yes |
history[].userId | string (uuid) | Yes |
history[].userName | string | Yes |
id | string (uuid) | Yes |
media | array of object | Yes |
media[].alt | string | null | Yes |
media[].height | integer | Yes |
media[].id | string (uuid) | Yes |
media[].url | string (uri) | Yes |
media[].width | integer | Yes |
notes | null in the examples | Yes |
organizationId | string (uuid) | Yes |
publishedAt | null in the examples | Yes |
scheduledAt | string (date-time) | Yes |
status | string | Yes |
submittedAt | string (date-time) | Yes |
submittedBy | string (uuid) | Yes |
targets | array of object | Yes |
targets[].automationError | null in the examples | Yes |
targets[].automationId | null in the examples | Yes |
targets[].caption | string | null | Yes |
targets[].connectionId | string (uuid) | Yes |
targets[].error | null in the examples | Yes |
targets[].errorDetail | null in the examples | Yes |
targets[].externalId | null in the examples | Yes |
targets[].id | string (uuid) | Yes |
targets[].label | string | Yes |
targets[].metrics | null in the examples | Yes |
targets[].network | string | Yes |
targets[].permalink | null in the examples | Yes |
targets[].publishedAt | null in the examples | Yes |
targets[].status | string | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/schedule" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"now": false
}'const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/schedule", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"now": false
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/schedule",
headers={"X-Api-Key": "fmd_..."},
json={
"now": False,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/schedule");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"now": 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/social-posts/{id}/schedule")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"now": 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(`{
"now": false
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/social-posts/{id}/schedule", 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/social-posts/{id}/schedule"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"now": 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("POST"), "https://api.firmado.app/v1/social-posts/{id}/schedule");
request.Content = new StringContent(""""
{
"now": false
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"caption": "…",
"firstComment": "…",
"media": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"alt": "…",
"url": "https://example.com",
"width": 1,
"height": 1
}
],
"automation": {
"days": 1,
"like": true,
"keywords": [
"…"
],
"oncePerUser": true,
"publicReply": null,
"privateReply": "…",
"createContacts": true
},
"notes": null,
"status": "…",
"scheduledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"submittedAt": "2026-11-21T14:00:00.000Z",
"approvedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"approvedAt": "2026-11-21T14:00:00.000Z",
"publishedAt": null,
"countedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"createdByName": "Ana Lima",
"approvedByName": "Ana Lima",
"targets": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"caption": "…",
"status": "…",
"externalId": null,
"permalink": null,
"error": null,
"errorDetail": null,
"publishedAt": null,
"automationId": null,
"automationError": null,
"metrics": null
}
],
"history": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"note": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"userId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"userName": "Ana Lima"
}
]
}POST/v1/social-posts/{id}/unschedule
Takes a post off the schedule, back to draft.
Update/{id}/unscheduleOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/{id}/unschedule" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/{id}/unschedule", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/{id}/unschedule",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/{id}/unschedule");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/social-posts/{id}/unschedule")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/social-posts/{id}/unschedule", 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/social-posts/{id}/unschedule"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/social-posts/{id}/unschedule");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/social-posts/media
Uploads a picture for posts.
Create/mediaOn success: 201.Permission: Create.
Body: a multipart form, with the file in `file`
| Field | Type | Required | Notes |
|---|---|---|---|
file | string (binary) | Yes |
Response
5 fields
| Field | Type | Always there |
|---|---|---|
alt | null in the examples | Yes |
height | integer | Yes |
id | string (uuid) | Yes |
url | string (uri) | Yes |
width | integer | Yes |
Example
curl -X POST "https://api.firmado.app/v1/social-posts/media" \
-H "X-Api-Key: fmd_..." \
-F "file=@./file.pdf"import { openAsBlob } from "node:fs"
const form = new FormData()
form.append("file", await openAsBlob("./file.pdf"), "file.pdf")
const res = await fetch("https://api.firmado.app/v1/social-posts/media", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
body: form,
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/social-posts/media",
headers={"X-Api-Key": "fmd_..."},
files={"file": open("file.pdf", "rb")},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/media");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
CURLOPT_POSTFIELDS => ["file" => new CURLFile("file.pdf")],
]);
$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/social-posts/media")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req.set_form([["file", File.open("file.pdf")]], "multipart/form-data")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)var buf bytes.Buffer
form := multipart.NewWriter(&buf)
part, _ := form.CreateFormFile("file", "file.pdf")
f, _ := os.Open("file.pdf")
io.Copy(part, f)
form.Close()
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/social-posts/media", &buf)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", form.FormDataContentType())
res, err := http.DefaultClient.Do(req)// Multipart is simplest with OkHttp (com.squareup.okhttp3:okhttp)
var body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file", "file.pdf", RequestBody.create(new File("file.pdf"), null))
.build();
var request = new Request.Builder()
.url("https://api.firmado.app/v1/social-posts/media")
.header("X-Api-Key", "fmd_...")
.method("POST", body)
.build();
var response = new OkHttpClient().newCall(request).execute();using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/social-posts/media");
request.Content = new MultipartFormDataContent { { new StreamContent(File.OpenRead("file.pdf")), "file", "file.pdf" } };
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"width": 1,
"height": 1,
"alt": null
}GET/v1/social-posts/overview
The accounts posts can go to, the approval rules and what the caller may do.
Read/overviewOn success: 200.Permission: Read.
Response
13 fields
| Field | Type | Always there |
|---|---|---|
accounts | array of object | Yes |
accounts[].canPublish | boolean | Yes |
accounts[].id | string (uuid) | Yes |
accounts[].label | string | Yes |
accounts[].network | string | Yes |
accounts[].reconnectRequired | boolean | Yes |
canApprove | boolean | Yes |
pendingApproval | integer | Yes |
publishingEnabled | boolean | Yes |
settings | object | Yes |
settings.approverMemberIds | array of string (uuid) | Yes |
settings.approverRole | string | Yes |
settings.requireApproval | boolean | Yes |
Example
curl -X GET "https://api.firmado.app/v1/social-posts/overview" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/social-posts/overview", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/social-posts/overview",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/overview");
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/social-posts/overview")
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/social-posts/overview", 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/social-posts/overview"))
.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/social-posts/overview");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"settings": {
"requireApproval": true,
"approverRole": "…",
"approverMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
},
"canApprove": true,
"pendingApproval": 1,
"publishingEnabled": true,
"accounts": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"canPublish": true,
"reconnectRequired": true
}
]
}PUT/v1/social-posts/settings
Whether posts need approval and who approves (administrators).
Update/settingsOn success: 200.Permission: Update.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
requireApproval | boolean | Yes | |
approverRole | "editor" | "admin" | "owner" | Yes | |
approverMemberIds | array of string | No | max items 100 |
Response
13 fields
| Field | Type | Always there |
|---|---|---|
accounts | array of object | Yes |
accounts[].canPublish | boolean | Yes |
accounts[].id | string (uuid) | Yes |
accounts[].label | string | Yes |
accounts[].network | string | Yes |
accounts[].reconnectRequired | boolean | Yes |
canApprove | boolean | Yes |
pendingApproval | integer | Yes |
publishingEnabled | boolean | Yes |
settings | object | Yes |
settings.approverMemberIds | array of string (uuid) | Yes |
settings.approverRole | string | Yes |
settings.requireApproval | boolean | Yes |
Example
curl -X PUT "https://api.firmado.app/v1/social-posts/settings" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}'const res = await fetch("https://api.firmado.app/v1/social-posts/settings", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/social-posts/settings",
headers={"X-Api-Key": "fmd_..."},
json={
"requireApproval": True,
"approverRole": "editor",
"approverMemberIds": [
"…",
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/social-posts/settings");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}
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/social-posts/settings")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}
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(`{
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/social-posts/settings", 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/social-posts/settings"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}
"""))
.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/social-posts/settings");
request.Content = new StringContent(""""
{
"requireApproval": true,
"approverRole": "editor",
"approverMemberIds": [
"…"
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"settings": {
"requireApproval": true,
"approverRole": "…",
"approverMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
},
"canApprove": true,
"pendingApproval": 1,
"publishingEnabled": true,
"accounts": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"network": "…",
"label": "…",
"canPublish": true,
"reconnectRequired": true
}
]
}Webhook events
Changes of this feature that webhooks can send.
social_post.createdCreatesocial_post.updatedUpdatesocial_post.publishedUpdatesocial_post.failedUpdatesocial_post.deletedDelete