Publicaciones
El calendario editorial: publicaciones, aprobación y publicación.
Valores de los ejemplos
Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.
GET/v1/social-posts
Lista las publicaciones del calendario editorial entre dos fechas.
ListarSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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 |
Respuesta
42 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
[].approvedAt | string | null (date-time) | Sí |
[].approvedBy | string | null (uuid) | Sí |
[].approvedByName | string | null | Sí |
[].automation | null en los ejemplos | Sí |
[].caption | string | Sí |
[].countedAt | null en los ejemplos | Sí |
[].createdAt | string (date-time) | Sí |
[].createdBy | string (uuid) | Sí |
[].createdByName | string | Sí |
[].firstComment | null en los ejemplos | Sí |
[].id | string (uuid) | Sí |
[].media | array of object | Sí |
[].media[].alt | null en los ejemplos | Sí |
[].media[].height | integer | Sí |
[].media[].id | string (uuid) | Sí |
[].media[].url | string (uri) | Sí |
[].media[].width | integer | Sí |
[].notes | null en los ejemplos | Sí |
[].organizationId | string (uuid) | Sí |
[].publishedAt | null en los ejemplos | Sí |
[].scheduledAt | string (date-time) | Sí |
[].status | string | Sí |
[].submittedAt | string | null (date-time) | Sí |
[].submittedBy | string | null (uuid) | Sí |
[].targets | array of object | Sí |
[].targets[].automationError | null en los ejemplos | Sí |
[].targets[].automationId | null en los ejemplos | Sí |
[].targets[].caption | null en los ejemplos | Sí |
[].targets[].connectionId | string (uuid) | Sí |
[].targets[].error | null en los ejemplos | Sí |
[].targets[].errorDetail | null en los ejemplos | Sí |
[].targets[].externalId | null en los ejemplos | Sí |
[].targets[].id | string (uuid) | Sí |
[].targets[].label | string | Sí |
[].targets[].metrics | null en los ejemplos | Sí |
[].targets[].network | string | Sí |
[].targets[].permalink | null en los ejemplos | Sí |
[].targets[].publishedAt | null en los ejemplos | Sí |
[].targets[].status | string | Sí |
[].title | null en los ejemplos | Sí |
[].updatedAt | string (date-time) | Sí |
[].updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
[
{
"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
Crea un borrador de publicación para las cuentas conectadas.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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) | Sí | |
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) | Sí | |
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 |
Respuesta
56 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | null en los ejemplos | Sí |
approvedBy | null en los ejemplos | Sí |
approvedByName | null en los ejemplos | Sí |
automation | object | null | Sí |
automation.createContacts | boolean | Sí |
automation.days | integer | Sí |
automation.keywords | array of string | Sí |
automation.like | boolean | Sí |
automation.oncePerUser | boolean | Sí |
automation.privateReply | string | Sí |
automation.publicReply | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | string | null | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | null en los ejemplos | Sí |
history[].type | string | Sí |
history[].userId | string (uuid) | Sí |
history[].userName | string | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | string | null | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | string | null (date-time) | Sí |
status | string | Sí |
submittedAt | null en los ejemplos | Sí |
submittedBy | null en los ejemplos | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | string | null | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | null en los ejemplos | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | null en los ejemplos | Sí |
targets[].network | string | Sí |
targets[].permalink | null en los ejemplos | Sí |
targets[].publishedAt | null en los ejemplos | Sí |
targets[].status | string | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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}
Elimina una publicación que aún no salió.
EliminarSi va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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}
Devuelve una publicación con el resultado de cada cuenta y su historial.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
60 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | string (date-time) | Sí |
approvedBy | string (uuid) | Sí |
approvedByName | string | Sí |
automation | object | null | Sí |
automation.createContacts | boolean | Sí |
automation.days | integer | Sí |
automation.keywords | array of string | Sí |
automation.like | boolean | Sí |
automation.oncePerUser | boolean | Sí |
automation.privateReply | string | Sí |
automation.publicReply | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | string (date-time) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | string | null | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | string | null | Sí |
history[].type | string | Sí |
history[].userId | string | null (uuid) | Sí |
history[].userName | string | null | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | string | null | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | string | null (date-time) | Sí |
scheduledAt | string (date-time) | Sí |
status | string | Sí |
submittedAt | string (date-time) | Sí |
submittedBy | string (uuid) | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | string | null (uuid) | Sí |
targets[].caption | string | null | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | string | null | Sí |
targets[].errorDetail | string | null | Sí |
targets[].externalId | string | null | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | object | null | Sí |
targets[].metrics.error | null en los ejemplos | Sí |
targets[].metrics.fetchedAt | null en los ejemplos | Sí |
targets[].metrics.metrics | null en los ejemplos | Sí |
targets[].metrics.nextFetchAt | string (date-time) | Sí |
targets[].network | string | Sí |
targets[].permalink | string | null (uri) | Sí |
targets[].publishedAt | string | null (date-time) | Sí |
targets[].status | string | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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}
Cambia una publicación que aún no salió.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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) | Sí | |
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) | Sí | |
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 |
Respuesta
49 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | null en los ejemplos | Sí |
approvedBy | null en los ejemplos | Sí |
approvedByName | null en los ejemplos | Sí |
automation | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | string | null | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | string | null | Sí |
history[].type | string | Sí |
history[].userId | string (uuid) | Sí |
history[].userName | string | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | string | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | string (date-time) | Sí |
status | string | Sí |
submittedAt | string | null (date-time) | Sí |
submittedBy | string | null (uuid) | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | string | null | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | null en los ejemplos | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | null en los ejemplos | Sí |
targets[].network | string | Sí |
targets[].permalink | null en los ejemplos | Sí |
targets[].publishedAt | null en los ejemplos | Sí |
targets[].status | string | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Aprueba una publicación que espera aprobación, programándola.
Actualizar/{id}/approveSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
49 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | string (date-time) | Sí |
approvedBy | string (uuid) | Sí |
approvedByName | string | Sí |
automation | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | string | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | string | null | Sí |
history[].type | string | Sí |
history[].userId | string (uuid) | Sí |
history[].userName | string | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | string | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | string (date-time) | Sí |
status | string | Sí |
submittedAt | string (date-time) | Sí |
submittedBy | string (uuid) | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | string | null | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | null en los ejemplos | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | null en los ejemplos | Sí |
targets[].network | string | Sí |
targets[].permalink | null en los ejemplos | Sí |
targets[].publishedAt | null en los ejemplos | Sí |
targets[].status | string | Sí |
title | string | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Escribe una nota en el historial de la publicación, para el equipo.
Actualizar/{id}/commentsSi va bien: 201.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
note | string | Sí | min length 1 · max length 2000 |
Ejemplo
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 nuevo borrador con el mismo contenido.
Crear/{id}/duplicateSi va bien: 201.Permiso: Crear.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
44 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | null en los ejemplos | Sí |
approvedBy | null en los ejemplos | Sí |
approvedByName | null en los ejemplos | Sí |
automation | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | null en los ejemplos | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | null en los ejemplos | Sí |
history[].type | string | Sí |
history[].userId | string (uuid) | Sí |
history[].userName | string | Sí |
id | string (uuid) | Sí |
media | array of any | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | null en los ejemplos | Sí |
status | string | Sí |
submittedAt | null en los ejemplos | Sí |
submittedBy | null en los ejemplos | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | null en los ejemplos | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | null en los ejemplos | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | null en los ejemplos | Sí |
targets[].network | string | Sí |
targets[].permalink | null en los ejemplos | Sí |
targets[].publishedAt | null en los ejemplos | Sí |
targets[].status | string | Sí |
title | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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
Devuelve una publicación a su autor con lo que hay que cambiar.
Actualizar/{id}/request-changesSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
note | string | Sí | min length 3 · max length 2000 |
Respuesta
49 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | null en los ejemplos | Sí |
approvedBy | null en los ejemplos | Sí |
approvedByName | null en los ejemplos | Sí |
automation | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | string | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | string | null | Sí |
history[].type | string | Sí |
history[].userId | string (uuid) | Sí |
history[].userName | string | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | string | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | string (date-time) | Sí |
status | string | Sí |
submittedAt | string (date-time) | Sí |
submittedBy | string (uuid) | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | string | null | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | null en los ejemplos | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | null en los ejemplos | Sí |
targets[].network | string | Sí |
targets[].permalink | null en los ejemplos | Sí |
targets[].publishedAt | null en los ejemplos | Sí |
targets[].status | string | Sí |
title | string | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Vuelve a intentar en las cuentas donde la publicación falló.
Actualizar/{id}/retrySi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
53 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | string (date-time) | Sí |
approvedBy | string (uuid) | Sí |
approvedByName | string | Sí |
automation | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | string (date-time) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | null en los ejemplos | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | string | null | Sí |
history[].type | string | Sí |
history[].userId | string | null (uuid) | Sí |
history[].userName | string | null | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | null en los ejemplos | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | string (date-time) | Sí |
status | string | Sí |
submittedAt | string (date-time) | Sí |
submittedBy | string (uuid) | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | null en los ejemplos | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | string | null | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | object | null | Sí |
targets[].metrics.error | null en los ejemplos | Sí |
targets[].metrics.fetchedAt | null en los ejemplos | Sí |
targets[].metrics.metrics | null en los ejemplos | Sí |
targets[].metrics.nextFetchAt | string (date-time) | Sí |
targets[].network | string | Sí |
targets[].permalink | string | null (uri) | Sí |
targets[].publishedAt | string | null (date-time) | Sí |
targets[].status | string | Sí |
title | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Programa una publicación, o la envía a aprobación cuando se exige.
Actualizar/{id}/scheduleSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
now | boolean | No | default false |
Respuesta
56 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
approvedAt | string | null (date-time) | Sí |
approvedBy | string | null (uuid) | Sí |
approvedByName | string | null | Sí |
automation | object | null | Sí |
automation.createContacts | boolean | Sí |
automation.days | integer | Sí |
automation.keywords | array of string | Sí |
automation.like | boolean | Sí |
automation.oncePerUser | boolean | Sí |
automation.privateReply | string | Sí |
automation.publicReply | null en los ejemplos | Sí |
caption | string | Sí |
countedAt | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
createdByName | string | Sí |
firstComment | string | null | Sí |
history | array of object | Sí |
history[].createdAt | string (date-time) | Sí |
history[].id | string (uuid) | Sí |
history[].note | string | null | Sí |
history[].type | string | Sí |
history[].userId | string (uuid) | Sí |
history[].userName | string | Sí |
id | string (uuid) | Sí |
media | array of object | Sí |
media[].alt | string | null | Sí |
media[].height | integer | Sí |
media[].id | string (uuid) | Sí |
media[].url | string (uri) | Sí |
media[].width | integer | Sí |
notes | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
publishedAt | null en los ejemplos | Sí |
scheduledAt | string (date-time) | Sí |
status | string | Sí |
submittedAt | string (date-time) | Sí |
submittedBy | string (uuid) | Sí |
targets | array of object | Sí |
targets[].automationError | null en los ejemplos | Sí |
targets[].automationId | null en los ejemplos | Sí |
targets[].caption | string | null | Sí |
targets[].connectionId | string (uuid) | Sí |
targets[].error | null en los ejemplos | Sí |
targets[].errorDetail | null en los ejemplos | Sí |
targets[].externalId | null en los ejemplos | Sí |
targets[].id | string (uuid) | Sí |
targets[].label | string | Sí |
targets[].metrics | null en los ejemplos | Sí |
targets[].network | string | Sí |
targets[].permalink | null en los ejemplos | Sí |
targets[].publishedAt | null en los ejemplos | Sí |
targets[].status | string | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Saca una publicación de la programación, de vuelta a borrador.
Actualizar/{id}/unscheduleSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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
Sube una imagen para publicaciones.
Crear/mediaSi va bien: 201.Permiso: Crear.
Cuerpo: un formulario multipart, con el archivo en `file`
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
file | string (binary) | Sí |
Respuesta
5 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
alt | null en los ejemplos | Sí |
height | integer | Sí |
id | string (uuid) | Sí |
url | string (uri) | Sí |
width | integer | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"width": 1,
"height": 1,
"alt": null
}GET/v1/social-posts/overview
Las cuentas a las que pueden ir las publicaciones, las reglas de aprobación y lo que puede hacer quien llama.
Leer/overviewSi va bien: 200.Permiso: Leer.
Respuesta
13 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
accounts | array of object | Sí |
accounts[].canPublish | boolean | Sí |
accounts[].id | string (uuid) | Sí |
accounts[].label | string | Sí |
accounts[].network | string | Sí |
accounts[].reconnectRequired | boolean | Sí |
canApprove | boolean | Sí |
pendingApproval | integer | Sí |
publishingEnabled | boolean | Sí |
settings | object | Sí |
settings.approverMemberIds | array of string (uuid) | Sí |
settings.approverRole | string | Sí |
settings.requireApproval | boolean | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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 las publicaciones necesitan aprobación y quién aprueba (administradores).
Actualizar/settingsSi va bien: 200.Permiso: Actualizar.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
requireApproval | boolean | Sí | |
approverRole | "editor" | "admin" | "owner" | Sí | |
approverMemberIds | array of string | No | max items 100 |
Respuesta
13 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
accounts | array of object | Sí |
accounts[].canPublish | boolean | Sí |
accounts[].id | string (uuid) | Sí |
accounts[].label | string | Sí |
accounts[].network | string | Sí |
accounts[].reconnectRequired | boolean | Sí |
canApprove | boolean | Sí |
pendingApproval | integer | Sí |
publishingEnabled | boolean | Sí |
settings | object | Sí |
settings.approverMemberIds | array of string (uuid) | Sí |
settings.approverRole | string | Sí |
settings.requireApproval | boolean | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
}
]
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
social_post.createdCrearsocial_post.updatedActualizarsocial_post.publishedActualizarsocial_post.failedActualizarsocial_post.deletedEliminar