# api/ingest.py
@app.post("/enqueue")
def enqueue_content(payload):
    queue = load_queue()
    queue.append({
        "id": payload["id"],
        "type": payload["type"],          # post | reel | bts
        "caption": payload["caption"],
        "media_path": payload["media"],
        "platforms": payload["platforms"]
    })
    save_queue(queue)
