This endpoint requires authentication and the createNewsletter permission.
Request Body
ID of the uploaded image file
External image URL if not using uploaded file
ID of the uploaded PDF file
External PDF URL if not using uploaded file
Newsletter status. One of: draft, scheduled, published, archived
Scheduled publication date (ISO 8601)
Response
Unique identifier for the newsletter (UUID)
Uploaded image file information
External image URL if not using uploaded file
Uploaded PDF file information
External PDF URL if not using uploaded file
Whether the newsletter has an associated PDF
Newsletter status. One of: draft, scheduled, published, archived
Scheduled or actual publication date (ISO 8601)
Number of times the newsletter has been viewed/received (starts at 0)
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
UUID of the user who created the newsletter
Error Responses
Error details when the request fails
Error message explaining why the request failed
Common error cases:
- 400 Bad Request: Invalid request body or validation error
- 401 Unauthorized: Missing or invalid access token
- 403 Forbidden: Missing required permission
curl -X POST "https://api.tktchurch.com/v1/newsletters" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
-H "Content-Type: application/json" \
-d '{
"title": "January Church Updates",
"content": "Welcome to our first newsletter of 2024...",
"imageId": "file-123",
"pdfId": "file-456",
"status": "draft",
"publishDate": "2024-01-01T12:00:00Z"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "January Church Updates",
"content": "Welcome to our first newsletter of 2024...",
"image": {
"id": "file-123",
"url": "https://cdn.tktchurch.com/files/newsletter-image.jpg"
},
"imageUrl": null,
"pdf": {
"id": "file-456",
"url": "https://cdn.tktchurch.com/files/newsletter.pdf"
},
"pdfUrl": null,
"hasPdf": true,
"status": "draft",
"publishDate": "2024-01-01T12:00:00Z",
"recipientCount": 0,
"createdAt": "2023-12-30T15:00:00Z",
"updatedAt": "2023-12-30T15:00:00Z",
"createdBy": "user-123e4567-e89b-12d3-a456-426614174000"
}