Blog / upload

Back to API Docs

API Overview

Path: /api/blog/upload — Method: POST

Auth: session-cookie

Request Details

No headers required

No path params required

No query required

Body

  • title(string, required)
  • authorId(string, required)
  • file(file, required)

Responses

  • 201Blog created
    {"_id":"...","title":"...","content":[{"type":"html","html":"..."}],"publishedAt":"..."}
  • 400Missing fields or file
    {"error":"Missing fields or file"}

Notes & Tips

  • Ensure headers match exactly (e.g., x-apikey).
  • Use Content-Type: application/json for JSON bodies.
  • For Bearer auth, you can provide either a session JWT or an opaque API key where supported.
Advancelytics | Detect Silent Churn, Surface Growth Signals