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"
}
Create a new blog post
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"
}
true, submits for approval. If false, saves as draft.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"
}