Skip to content

Quick Start

Each step below maps to an endpoint documented further down. All examples use curl; adapt as needed for your language.

Terminal window
curl https://nuelink.com/api/public/v1/me
-H "Authorization: Bearer YOUR_API_KEY"
Terminal window
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.

Terminal window
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.

Skip this step if your post is text-only.

Terminal window
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.

Terminal window
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.