Publications
Le calendrier éditorial : publications, approbation et mise en ligne.
Valeurs des exemples
Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.
GET/v1/social-posts
Liste les publications du calendrier éditorial entre deux dates.
ListerEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
from | string (date-time) | Non | |
to | string (date-time) | Non | |
status | "draft" | "pending" | "changes_requested" | "scheduled" | "publishing" | "published" | "failed" | Non | |
unscheduled | string | Non | |
connectionId | string (uuid) | Non |
Réponse
42 champs
| Champ | Type | Toujours présent |
|---|---|---|
[].approvedAt | string | null (date-time) | Oui |
[].approvedBy | string | null (uuid) | Oui |
[].approvedByName | string | null | Oui |
[].automation | null dans les exemples | Oui |
[].caption | string | Oui |
[].countedAt | null dans les exemples | Oui |
[].createdAt | string (date-time) | Oui |
[].createdBy | string (uuid) | Oui |
[].createdByName | string | Oui |
[].firstComment | null dans les exemples | Oui |
[].id | string (uuid) | Oui |
[].media | array of object | Oui |
[].media[].alt | null dans les exemples | Oui |
[].media[].height | integer | Oui |
[].media[].id | string (uuid) | Oui |
[].media[].url | string (uri) | Oui |
[].media[].width | integer | Oui |
[].notes | null dans les exemples | Oui |
[].organizationId | string (uuid) | Oui |
[].publishedAt | null dans les exemples | Oui |
[].scheduledAt | string (date-time) | Oui |
[].status | string | Oui |
[].submittedAt | string | null (date-time) | Oui |
[].submittedBy | string | null (uuid) | Oui |
[].targets | array of object | Oui |
[].targets[].automationError | null dans les exemples | Oui |
[].targets[].automationId | null dans les exemples | Oui |
[].targets[].caption | null dans les exemples | Oui |
[].targets[].connectionId | string (uuid) | Oui |
[].targets[].error | null dans les exemples | Oui |
[].targets[].errorDetail | null dans les exemples | Oui |
[].targets[].externalId | null dans les exemples | Oui |
[].targets[].id | string (uuid) | Oui |
[].targets[].label | string | Oui |
[].targets[].metrics | null dans les exemples | Oui |
[].targets[].network | string | Oui |
[].targets[].permalink | null dans les exemples | Oui |
[].targets[].publishedAt | null dans les exemples | Oui |
[].targets[].status | string | Oui |
[].title | null dans les exemples | Oui |
[].updatedAt | string (date-time) | Oui |
[].updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
[
{
"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
Crée un brouillon de publication pour les comptes connectés.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
title | string | null | Non | |
caption | string | Non | max length 63206 · default "" |
firstComment | string | null | Non | |
media | array of object | Non | max items 10 |
media[].id | string (uuid) | Oui | |
media[].alt | string | null | Non | |
notes | string | null | Non | |
scheduledAt | string (date-time) | null | Non | |
targets | array of object | Non | max items 10 |
targets[].connectionId | string (uuid) | Oui | |
targets[].caption | string | null | Non | |
automation | object | null | Non | |
automation.days | integer | Non | min 1 · max 90 · default 7 |
automation.like | boolean | Non | default false |
automation.publicReply | string | null | Non | default null |
automation.privateReply | string | null | Non | default null |
automation.keywords | array of string | Non | max items 30 |
automation.createContacts | boolean | Non | default false |
automation.oncePerUser | boolean | Non | default true |
Réponse
56 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | null dans les exemples | Oui |
approvedBy | null dans les exemples | Oui |
approvedByName | null dans les exemples | Oui |
automation | object | null | Oui |
automation.createContacts | boolean | Oui |
automation.days | integer | Oui |
automation.keywords | array of string | Oui |
automation.like | boolean | Oui |
automation.oncePerUser | boolean | Oui |
automation.privateReply | string | Oui |
automation.publicReply | null dans les exemples | Oui |
caption | string | Oui |
countedAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | string | null | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | null dans les exemples | Oui |
history[].type | string | Oui |
history[].userId | string (uuid) | Oui |
history[].userName | string | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | string | null | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | string | null (date-time) | Oui |
status | string | Oui |
submittedAt | null dans les exemples | Oui |
submittedBy | null dans les exemples | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | string | null | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | null dans les exemples | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | null dans les exemples | Oui |
targets[].network | string | Oui |
targets[].permalink | null dans les exemples | Oui |
targets[].publishedAt | null dans les exemples | Oui |
targets[].status | string | Oui |
title | string | null | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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}
Supprime une publication pas encore partie.
SupprimerEn cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Renvoie une publication avec le résultat de chaque compte et son historique.
Voir unEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
60 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | string (date-time) | Oui |
approvedBy | string (uuid) | Oui |
approvedByName | string | Oui |
automation | object | null | Oui |
automation.createContacts | boolean | Oui |
automation.days | integer | Oui |
automation.keywords | array of string | Oui |
automation.like | boolean | Oui |
automation.oncePerUser | boolean | Oui |
automation.privateReply | string | Oui |
automation.publicReply | null dans les exemples | Oui |
caption | string | Oui |
countedAt | string (date-time) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | string | null | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | string | null | Oui |
history[].type | string | Oui |
history[].userId | string | null (uuid) | Oui |
history[].userName | string | null | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | string | null | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | string | null (date-time) | Oui |
scheduledAt | string (date-time) | Oui |
status | string | Oui |
submittedAt | string (date-time) | Oui |
submittedBy | string (uuid) | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | string | null (uuid) | Oui |
targets[].caption | string | null | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | string | null | Oui |
targets[].errorDetail | string | null | Oui |
targets[].externalId | string | null | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | object | null | Oui |
targets[].metrics.error | null dans les exemples | Oui |
targets[].metrics.fetchedAt | null dans les exemples | Oui |
targets[].metrics.metrics | null dans les exemples | Oui |
targets[].metrics.nextFetchAt | string (date-time) | Oui |
targets[].network | string | Oui |
targets[].permalink | string | null (uri) | Oui |
targets[].publishedAt | string | null (date-time) | Oui |
targets[].status | string | Oui |
title | string | null | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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}
Modifie une publication pas encore partie.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
title | string | null | Non | |
caption | string | Non | max length 63206 |
firstComment | string | null | Non | |
media | array of object | Non | max items 10 |
media[].id | string (uuid) | Oui | |
media[].alt | string | null | Non | |
notes | string | null | Non | |
scheduledAt | string (date-time) | null | Non | |
targets | array of object | Non | max items 10 |
targets[].connectionId | string (uuid) | Oui | |
targets[].caption | string | null | Non | |
automation | object | null | Non | |
automation.days | integer | Non | min 1 · max 90 · default 7 |
automation.like | boolean | Non | default false |
automation.publicReply | string | null | Non | default null |
automation.privateReply | string | null | Non | default null |
automation.keywords | array of string | Non | max items 30 |
automation.createContacts | boolean | Non | default false |
automation.oncePerUser | boolean | Non | default true |
Réponse
49 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | null dans les exemples | Oui |
approvedBy | null dans les exemples | Oui |
approvedByName | null dans les exemples | Oui |
automation | null dans les exemples | Oui |
caption | string | Oui |
countedAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | string | null | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | string | null | Oui |
history[].type | string | Oui |
history[].userId | string (uuid) | Oui |
history[].userName | string | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | string | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | string (date-time) | Oui |
status | string | Oui |
submittedAt | string | null (date-time) | Oui |
submittedBy | string | null (uuid) | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | string | null | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | null dans les exemples | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | null dans les exemples | Oui |
targets[].network | string | Oui |
targets[].permalink | null dans les exemples | Oui |
targets[].publishedAt | null dans les exemples | Oui |
targets[].status | string | Oui |
title | string | null | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Approuve une publication en attente, en la programmant.
Modifier/{id}/approveEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
49 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | string (date-time) | Oui |
approvedBy | string (uuid) | Oui |
approvedByName | string | Oui |
automation | null dans les exemples | Oui |
caption | string | Oui |
countedAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | string | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | string | null | Oui |
history[].type | string | Oui |
history[].userId | string (uuid) | Oui |
history[].userName | string | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | string | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | string (date-time) | Oui |
status | string | Oui |
submittedAt | string (date-time) | Oui |
submittedBy | string (uuid) | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | string | null | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | null dans les exemples | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | null dans les exemples | Oui |
targets[].network | string | Oui |
targets[].permalink | null dans les exemples | Oui |
targets[].publishedAt | null dans les exemples | Oui |
targets[].status | string | Oui |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Écrit une note dans l’historique de la publication, pour l’équipe.
Modifier/{id}/commentsEn cas de succès : 201.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
note | string | Oui | min length 1 · max length 2000 |
Exemple
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
Un nouveau brouillon avec le même contenu.
Créer/{id}/duplicateEn cas de succès : 201.Permission : Créer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
44 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | null dans les exemples | Oui |
approvedBy | null dans les exemples | Oui |
approvedByName | null dans les exemples | Oui |
automation | null dans les exemples | Oui |
caption | string | Oui |
countedAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | null dans les exemples | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | null dans les exemples | Oui |
history[].type | string | Oui |
history[].userId | string (uuid) | Oui |
history[].userName | string | Oui |
id | string (uuid) | Oui |
media | array of any | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | null dans les exemples | Oui |
status | string | Oui |
submittedAt | null dans les exemples | Oui |
submittedBy | null dans les exemples | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | null dans les exemples | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | null dans les exemples | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | null dans les exemples | Oui |
targets[].network | string | Oui |
targets[].permalink | null dans les exemples | Oui |
targets[].publishedAt | null dans les exemples | Oui |
targets[].status | string | Oui |
title | null dans les exemples | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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
Renvoie une publication à son auteur avec ce qu’il faut changer.
Modifier/{id}/request-changesEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
note | string | Oui | min length 3 · max length 2000 |
Réponse
49 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | null dans les exemples | Oui |
approvedBy | null dans les exemples | Oui |
approvedByName | null dans les exemples | Oui |
automation | null dans les exemples | Oui |
caption | string | Oui |
countedAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | string | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | string | null | Oui |
history[].type | string | Oui |
history[].userId | string (uuid) | Oui |
history[].userName | string | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | string | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | string (date-time) | Oui |
status | string | Oui |
submittedAt | string (date-time) | Oui |
submittedBy | string (uuid) | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | string | null | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | null dans les exemples | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | null dans les exemples | Oui |
targets[].network | string | Oui |
targets[].permalink | null dans les exemples | Oui |
targets[].publishedAt | null dans les exemples | Oui |
targets[].status | string | Oui |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Réessaie sur les comptes où la publication a échoué.
Modifier/{id}/retryEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
53 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | string (date-time) | Oui |
approvedBy | string (uuid) | Oui |
approvedByName | string | Oui |
automation | null dans les exemples | Oui |
caption | string | Oui |
countedAt | string (date-time) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | null dans les exemples | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | string | null | Oui |
history[].type | string | Oui |
history[].userId | string | null (uuid) | Oui |
history[].userName | string | null | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | null dans les exemples | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | string (date-time) | Oui |
status | string | Oui |
submittedAt | string (date-time) | Oui |
submittedBy | string (uuid) | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | null dans les exemples | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | string | null | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | object | null | Oui |
targets[].metrics.error | null dans les exemples | Oui |
targets[].metrics.fetchedAt | null dans les exemples | Oui |
targets[].metrics.metrics | null dans les exemples | Oui |
targets[].metrics.nextFetchAt | string (date-time) | Oui |
targets[].network | string | Oui |
targets[].permalink | string | null (uri) | Oui |
targets[].publishedAt | string | null (date-time) | Oui |
targets[].status | string | Oui |
title | null dans les exemples | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Programme une publication, ou l’envoie pour approbation quand c’est exigé.
Modifier/{id}/scheduleEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
now | boolean | Non | default false |
Réponse
56 champs
| Champ | Type | Toujours présent |
|---|---|---|
approvedAt | string | null (date-time) | Oui |
approvedBy | string | null (uuid) | Oui |
approvedByName | string | null | Oui |
automation | object | null | Oui |
automation.createContacts | boolean | Oui |
automation.days | integer | Oui |
automation.keywords | array of string | Oui |
automation.like | boolean | Oui |
automation.oncePerUser | boolean | Oui |
automation.privateReply | string | Oui |
automation.publicReply | null dans les exemples | Oui |
caption | string | Oui |
countedAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
createdByName | string | Oui |
firstComment | string | null | Oui |
history | array of object | Oui |
history[].createdAt | string (date-time) | Oui |
history[].id | string (uuid) | Oui |
history[].note | string | null | Oui |
history[].type | string | Oui |
history[].userId | string (uuid) | Oui |
history[].userName | string | Oui |
id | string (uuid) | Oui |
media | array of object | Oui |
media[].alt | string | null | Oui |
media[].height | integer | Oui |
media[].id | string (uuid) | Oui |
media[].url | string (uri) | Oui |
media[].width | integer | Oui |
notes | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
publishedAt | null dans les exemples | Oui |
scheduledAt | string (date-time) | Oui |
status | string | Oui |
submittedAt | string (date-time) | Oui |
submittedBy | string (uuid) | Oui |
targets | array of object | Oui |
targets[].automationError | null dans les exemples | Oui |
targets[].automationId | null dans les exemples | Oui |
targets[].caption | string | null | Oui |
targets[].connectionId | string (uuid) | Oui |
targets[].error | null dans les exemples | Oui |
targets[].errorDetail | null dans les exemples | Oui |
targets[].externalId | null dans les exemples | Oui |
targets[].id | string (uuid) | Oui |
targets[].label | string | Oui |
targets[].metrics | null dans les exemples | Oui |
targets[].network | string | Oui |
targets[].permalink | null dans les exemples | Oui |
targets[].publishedAt | null dans les exemples | Oui |
targets[].status | string | Oui |
title | string | null | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Retire une publication de la programmation, en brouillon.
Modifier/{id}/unscheduleEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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
Envoie une image pour les publications.
Créer/mediaEn cas de succès : 201.Permission : Créer.
Corps : un formulaire multipart, avec le fichier dans `file`
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
file | string (binary) | Oui |
Réponse
5 champs
| Champ | Type | Toujours présent |
|---|---|---|
alt | null dans les exemples | Oui |
height | integer | Oui |
id | string (uuid) | Oui |
url | string (uri) | Oui |
width | integer | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"width": 1,
"height": 1,
"alt": null
}GET/v1/social-posts/overview
Les comptes où les publications peuvent aller, les règles d’approbation et ce que l’appelant peut faire.
Lire/overviewEn cas de succès : 200.Permission : Lire.
Réponse
13 champs
| Champ | Type | Toujours présent |
|---|---|---|
accounts | array of object | Oui |
accounts[].canPublish | boolean | Oui |
accounts[].id | string (uuid) | Oui |
accounts[].label | string | Oui |
accounts[].network | string | Oui |
accounts[].reconnectRequired | boolean | Oui |
canApprove | boolean | Oui |
pendingApproval | integer | Oui |
publishingEnabled | boolean | Oui |
settings | object | Oui |
settings.approverMemberIds | array of string (uuid) | Oui |
settings.approverRole | string | Oui |
settings.requireApproval | boolean | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Si les publications doivent être approuvées et par qui (administrateurs).
Modifier/settingsEn cas de succès : 200.Permission : Modifier.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
requireApproval | boolean | Oui | |
approverRole | "editor" | "admin" | "owner" | Oui | |
approverMemberIds | array of string | Non | max items 100 |
Réponse
13 champs
| Champ | Type | Toujours présent |
|---|---|---|
accounts | array of object | Oui |
accounts[].canPublish | boolean | Oui |
accounts[].id | string (uuid) | Oui |
accounts[].label | string | Oui |
accounts[].network | string | Oui |
accounts[].reconnectRequired | boolean | Oui |
canApprove | boolean | Oui |
pendingApproval | integer | Oui |
publishingEnabled | boolean | Oui |
settings | object | Oui |
settings.approverMemberIds | array of string (uuid) | Oui |
settings.approverRole | string | Oui |
settings.requireApproval | boolean | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
}
]
}Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
social_post.createdCréersocial_post.updatedModifiersocial_post.publishedModifiersocial_post.failedModifiersocial_post.deletedSupprimer