Create Content
Headers
Bearer token:
Bearer {accessToken}Request Body
The request body schema varies by content type. All types support optionaltitle, description, and tags fields.
- Text Content
- Link Content
- Code Content
Must be
"text"Text content (1-100,000 characters, trimmed)
Optional title (max 200 characters, trimmed)
Optional description (max 1,000 characters, trimmed)
Array of tag strings (converted to lowercase, trimmed). Default:
[]Response
Success message: “Content created successfully”
Created content item object
Error Responses
- 400 Bad Request - Validation errors (invalid type, missing required fields, content too long)
- 401 Unauthorized - Missing or invalid authentication token
- 500 Internal Server Error - Server error
Get All Content
Headers
Bearer token:
Bearer {accessToken}Query Parameters
Search query (minimum 1 character, trimmed)
Filter by content type:
"text", "link", or "code"Filter by tag (minimum 1 character, trimmed)
Filter by platform (minimum 1 character, trimmed)
Page number for pagination (minimum 1, default: 1)
Items per page (1-100, default: 20)
Response
Success message: “Content items retrieved successfully”
Array of content item objects
Pagination metadata
Error Responses
- 400 Bad Request - Invalid query parameters
- 401 Unauthorized - Missing or invalid authentication token
- 500 Internal Server Error - Server error
Get Content by ID
Headers
Bearer token:
Bearer {accessToken}Path Parameters
Content item ID
Response
Success message: “Content item retrieved successfully!”
Content item object with all properties
Error Responses
- 401 Unauthorized - Missing or invalid authentication token
- 404 Not Found - Content item not found or doesn’t belong to user
- 500 Internal Server Error - Server error
Update Content
Headers
Bearer token:
Bearer {accessToken}Path Parameters
Content item ID
Request Body
All fields are optional. Only provide the fields you want to update.Content type:
"text", "link", or "code"Content title (max 200 characters, trimmed)
Content description (max 1,000 characters, trimmed)
Array of tag strings (converted to lowercase, trimmed)
Text or code content (1-100,000 characters, trimmed)
Valid URL (trimmed, must be valid URL format)
Preview image URL (must be valid URL format)
Platform identifier (trimmed)
Response
Success message: “Content item updated successfully!”
Updated content item object
Error Responses
- 400 Bad Request - Validation errors (invalid URL, content too long, etc.)
- 401 Unauthorized - Missing or invalid authentication token
- 404 Not Found - Content item not found or doesn’t belong to user
- 500 Internal Server Error - Server error
Delete Content
Headers
Bearer token:
Bearer {accessToken}Path Parameters
Content item ID
Response
Success message: “Content item deleted successfully!”
Error Responses
- 401 Unauthorized - Missing or invalid authentication token
- 404 Not Found - Content item not found or doesn’t belong to user
- 500 Internal Server Error - Server error
Get Platforms
Headers
Bearer token:
Bearer {accessToken}Response
Success message: “Platforms retrieved successfully”
Array of platform objects with counts
Error Responses
- 401 Unauthorized - Missing or invalid authentication token
- 500 Internal Server Error - Server error