Nuelink API v1.0.0

API documentation for Nuelink services

Endpoints

GET /api/v1/user

Get user details

Responses
200 Successful response
{ "id": "usr_123456789", "username": "johndoe", "email": "[email protected]", "created_at": "2023-01-15T10:30:00Z", "updated_at": "2023-06-20T14:45:00Z" }
POST /api/v1/media

Store a media file

Request
multipart/form-data { "media": file (required), "brand_id": "brand_abc123" (required), "altText": "Optional alt text for image/video" }
Field Type Required Description
media file Yes Allowed MIME types: jpeg, png, bmp, mp4, jpg. Max size: 100 MB.
Responses
200 Successful upload
{ "message": "success", "data": { "media": "<base64-encoded-file>", "type": "image/png", "size": 123456 } }
400 Bad request (validation failure or invalid upload)
{ "status": "error", "errors": { "media": "The media field is required or invalid type/size." } }
POST /api/v1/posts

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" }
POST /api/v1/pabbly

Create a new post with link upload

Request Body
{ "title": "Getting Started with Nuelink API", "body": "This is a comprehensive guide to using our API...", "media": "https://example.com/image.png", "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 URL of the media file associated with the post
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
{ "success": "success", "data": { "id": "123456", "title": "Getting Started with Nuelink API", "body": "This is a comprehensive guide to using our API...", "media": "https://example.com/image.png", "altText": "An image showing the Nuelink API in action", "shareToFeed": false, "postAsShort": true } }
400 Bad request (validation errors)
{ "error": "Validation failed", "details": { "body": [ "This field is required" ] }, "code": "validation_error" }