Quick Start
Your first post in 5 steps
Section titled “Your first post in 5 steps”Each step below maps to an endpoint documented further down. All examples use curl; adapt as needed for your language.
1. Verify your token works
Section titled “1. Verify your token works”curl https://nuelink.com/api/public/v1/me
-H "Authorization: Bearer YOUR_API_KEY"2. List your brands and pick one
Section titled “2. List your brands and pick one”curl https://nuelink.com/api/public/v1/brands
-H "Authorization: Bearer YOUR_API_KEY"Grab the id of the brand you want to post from. We’ll call it BRAND_ID.
3. List collections in that brand
Section titled “3. List collections in that brand”curl https://nuelink.com/api/public/v1/brands/BRAND_ID/collections
-H "Authorization: Bearer YOUR_API_KEY"Pick the collection whose channels you want to publish to. We’ll call it COLLECTION_ID.
4. (Optional) Upload a media file
Section titled “4. (Optional) Upload a media file”Skip this step if your post is text-only.
curl -X POST https://nuelink.com/api/public/v1/brands/BRAND_ID/media
-H "Authorization: Bearer YOUR_API_KEY"
-F "media=@./photo.jpg"Save the returned id.
5. Create the post
Section titled “5. Create the post”curl -X POST https://nuelink.com/api/public/v1/brands/BRAND_ID/collections/COLLECTION_ID/posts
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"caption": "Hello from the Nuelink API 👋",
"publishMode": "IMMEDIATE",
"media": \[{ "id": "MEDIA_ID_FROM_STEP_4" }\]
}'You’ll get back a post ID and the post will be pushed to every channel in the collection.