curl -X POST https://api-verifier-2.onrender.com/api/blog \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"title": "My Trading Strategy",
"contentRaw": "# Introduction\n\nThis is my trading strategy...",
"summary": "A detailed look at my trading approach",
"tags": ["strategy", "trading"],
"coverImageUrl": "https://example.com/cover.jpg",
"publish": true
}'
{
"_id": "65a1b2c3d4e5f6g7h8i9j0k1",
"title": "My Trading Strategy",
"slug": "my-trading-strategy-xyz789",
"summary": "A detailed look at my trading approach",
"content": "# Introduction\n\nThis is my trading strategy...",
"contentRaw": "# Introduction\n\nThis is my trading strategy...",
"tags": ["strategy", "trading"],
"coverImageUrl": "https://example.com/cover.jpg",
"authorId": "user-id-here",
"visibility": "pending",
"createdAt": "2024-01-15T10:00:00.000Z"
}
Blog
Create post
Create a new blog post
POST
/
api
/
blog
curl -X POST https://api-verifier-2.onrender.com/api/blog \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"title": "My Trading Strategy",
"contentRaw": "# Introduction\n\nThis is my trading strategy...",
"summary": "A detailed look at my trading approach",
"tags": ["strategy", "trading"],
"coverImageUrl": "https://example.com/cover.jpg",
"publish": true
}'
{
"_id": "65a1b2c3d4e5f6g7h8i9j0k1",
"title": "My Trading Strategy",
"slug": "my-trading-strategy-xyz789",
"summary": "A detailed look at my trading approach",
"content": "# Introduction\n\nThis is my trading strategy...",
"contentRaw": "# Introduction\n\nThis is my trading strategy...",
"tags": ["strategy", "trading"],
"coverImageUrl": "https://example.com/cover.jpg",
"authorId": "user-id-here",
"visibility": "pending",
"createdAt": "2024-01-15T10:00:00.000Z"
}
This endpoint requires authentication.
Request body
string
required
Post title
string
required
Post content (markdown or HTML)
string
Brief summary of the post
array
Array of tag strings
string
URL of the cover image
boolean
If
true, submits for approval. If false, saves as draft.Response
Returns the created blog post object.curl -X POST https://api-verifier-2.onrender.com/api/blog \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"title": "My Trading Strategy",
"contentRaw": "# Introduction\n\nThis is my trading strategy...",
"summary": "A detailed look at my trading approach",
"tags": ["strategy", "trading"],
"coverImageUrl": "https://example.com/cover.jpg",
"publish": true
}'
{
"_id": "65a1b2c3d4e5f6g7h8i9j0k1",
"title": "My Trading Strategy",
"slug": "my-trading-strategy-xyz789",
"summary": "A detailed look at my trading approach",
"content": "# Introduction\n\nThis is my trading strategy...",
"contentRaw": "# Introduction\n\nThis is my trading strategy...",
"tags": ["strategy", "trading"],
"coverImageUrl": "https://example.com/cover.jpg",
"authorId": "user-id-here",
"visibility": "pending",
"createdAt": "2024-01-15T10:00:00.000Z"
}
⌘I