This endpoint requires authentication and the createLivestream permission.
Request Body
Description of the livestream
YouTube URL for the livestream
Scheduled start time in ISO 8601 format
Array of tags associated with the livestream
URL of the livestream thumbnail
UUID of the uploaded thumbnail file
Response
Returns the created livestream object.
Livestream’s unique identifier (UUID)
Description of the livestream
YouTube URL for the livestream
Current status of the livestream (defaults to “scheduled”)
Scheduled start time in ISO 8601 format
Array of tags associated with the livestream
URL of the livestream thumbnail
Thumbnail file information
File’s unique identifier (UUID)
Storage provider (s3 or local)
Storage key/path of the file
UUID of the user who created the livestream
UUID of the user who last updated the livestream
Creation timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Error Responses
Error details when the request fails
Error message explaining why the request failed
Common error cases:
- 400 Bad Request: Invalid request body
- 401 Unauthorized: Missing or invalid access token
- 403 Forbidden: Missing required permission
curl -X POST "https://api.tktchurch.com/v1/livestreams" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
-H "Content-Type: application/json" \
-d '{
"title": "Sunday Service",
"description": "Join us for our weekly Sunday service",
"youtubeUrl": "https://youtube.com/watch?v=abc123",
"scheduledStartTime": "2024-01-21T10:00:00Z",
"tags": ["sunday-service", "worship"],
"thumbnailUrl": "https://example.com/thumbnail.jpg"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Sunday Service",
"description": "Join us for our weekly Sunday service",
"youtubeUrl": "https://youtube.com/watch?v=abc123",
"customStreamUrl": null,
"status": "scheduled",
"scheduledStartTime": "2024-01-21T10:00:00Z",
"actualStartTime": null,
"endTime": null,
"tags": ["sunday-service", "worship"],
"thumbnailUrl": "https://example.com/thumbnail.jpg",
"thumbnail": null,
"createdByUserId": "123e4567-e89b-12d3-a456-426614174002",
"updatedByUserId": "123e4567-e89b-12d3-a456-426614174002",
"createdAt": "2024-01-20T15:00:00Z",
"updatedAt": "2024-01-20T15:00:00Z"
}