Create a new post with internal media
Request Body
{
"title": "Getting Started with Nuelink API",
"body": "This is a comprehensive guide to using our API...",
"media": "media_identifier",
"altText": "An image showing the Nuelink API in action",
"shareToFeed": false,
"postAsShort": true,
}
| Field |
Type |
Required |
Description |
| title |
string |
No |
The title of the post (max 120 chars) |
| body |
string |
Yes |
The main content of the post |
| media |
string |
No |
Uploaded media identifier returned by nuelink (upload media endpoint) |
| shareToFeed |
boolean |
No |
Whether to share the post to the user's feed (default: false) |
| postAsShort |
boolean |
No |
Whether to post as a short (default: false) |
| altText |
string |
No |
Alternative text for the media file (max 200 chars) |
Responses
201
Post created successfully
{
"id": "post_987654321",
"title": "Getting Started with Nuelink API",
"body": "This is a comprehensive guide to using our API...",
"media": "media_identifier",
"altText": "An image showing the Nuelink API in action",
"shareToFeed": false,
"postAsShort": true,
"created_at": "2023-10-01T12:00:00Z",
"updated_at": "2023-10-01T12:00:00Z"
}
400
Bad request (validation errors)
{
"error": "Validation failed",
"details": {
"body": [
"This field is required"
]
},
"code": "validation_error"
}