n8n-Integration

Verbinde selbst gehostete Workflows über den HTTP-Request-Node mit PostUno.

Schritt für Schritt

  1. Erstelle in n8n Header-Auth-Credentials mit Authorization=Bearer YOUR_API_KEY.
  2. Füge einen HTTP-Request-Node hinzu: POST https://api.post-uno.com/v1/media/upload-url je Datei, dann einen Node, der jede Datei per PUT an ihre uploadUrl sendet.
  3. Füge einen letzten HTTP-Request-Node hinzu: POST https://api.post-uno.com/v1/posts mit Content-Type JSON.
  4. Sammle für ein Karussell die Keys in s3Keys (Plural) — Instagram nimmt 2–10 Elemente, X bis zu 4.
  5. Speichere die zurückgegebene jobId und frage https://api.post-uno.com/v1/posts/JOB_ID für Ergebnisse pro Plattform ab.

Beispiel-Payload

{
  "profileId": "={{ $json.profileId }}",
  "s3Keys": ["={{ $json.key1 }}", "={{ $json.key2 }}"],
  "postType": "carousel",
  "caption": "={{ $json.caption }}",
  "platforms": ["instagram", "x"]
}

profileId muss eine Profil-UUID sein, die deinem API-Key gehört — nimm sie aus dem profile_id eines beliebigen Kontos aus GET /v1/accounts. Ein Profil eines anderen Kontos, ein nicht existierendes Profil oder ein Wert, der keine UUID ist, liefern alle dasselbe 404 { "error": "Profile not found" }.