Create Collection
curl --request POST \
--url https://api.launchmystore.io/api/v1/collections.json \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"body_html": "<string>",
"handle": "<string>",
"image": "<string>"
}
'import requests
url = "https://api.launchmystore.io/api/v1/collections.json"
payload = {
"title": "<string>",
"body_html": "<string>",
"handle": "<string>",
"image": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
body_html: '<string>',
handle: '<string>',
image: '<string>'
})
};
fetch('https://api.launchmystore.io/api/v1/collections.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/collections.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'body_html' => '<string>',
'handle' => '<string>',
'image' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/collections.json"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"body_html\": \"<string>\",\n \"handle\": \"<string>\",\n \"image\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.launchmystore.io/api/v1/collections.json")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"body_html\": \"<string>\",\n \"handle\": \"<string>\",\n \"image\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/collections.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"body_html\": \"<string>\",\n \"handle\": \"<string>\",\n \"image\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"collection": {}
}Collections
Create Collection
Create a new collection
POST
/
api
/
v1
/
collections.json
Create Collection
curl --request POST \
--url https://api.launchmystore.io/api/v1/collections.json \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"body_html": "<string>",
"handle": "<string>",
"image": "<string>"
}
'import requests
url = "https://api.launchmystore.io/api/v1/collections.json"
payload = {
"title": "<string>",
"body_html": "<string>",
"handle": "<string>",
"image": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
body_html: '<string>',
handle: '<string>',
image: '<string>'
})
};
fetch('https://api.launchmystore.io/api/v1/collections.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/collections.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'body_html' => '<string>',
'handle' => '<string>',
'image' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/collections.json"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"body_html\": \"<string>\",\n \"handle\": \"<string>\",\n \"image\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.launchmystore.io/api/v1/collections.json")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"body_html\": \"<string>\",\n \"handle\": \"<string>\",\n \"image\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/collections.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"body_html\": \"<string>\",\n \"handle\": \"<string>\",\n \"image\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"collection": {}
}Create Collection
Creates a new manual collection in the store. Products are added to the collection individually — automated (“smart”) rule-based collections are not supported.Request
curl -X POST "https://api.launchmystore.io/api/v1/collections.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Summer Collection",
"body_html": "<p>Our latest summer styles.</p>",
"handle": "summer-collection",
"image": "https://example.com/summer-banner.jpg"
}'
const response = await fetch('https://api.launchmystore.io/api/v1/collections.json', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Summer Collection',
body_html: '<p>Our latest summer styles.</p>',
handle: 'summer-collection',
image: 'https://example.com/summer-banner.jpg'
})
});
Body Parameters
The collection title
Collection description (supports HTML)
URL-safe handle. Auto-generated from the title (lowercased, spaces →
-) if
not providedCollection featured image URL
Response
Returns HTTP201 with a bare Shopify-style object: the created collection
under the collection key (the same Shopify-compatible shape returned by
Get Collection). The response is not wrapped
in a { status, data } envelope.
The created collection (Shopify-compatible shape)
Example Response
{
"collection": {
"id": "col_new789",
"title": "Summer Collection",
"handle": "summer-collection",
"body_html": "<p>Our latest summer styles.</p>",
"description": "<p>Our latest summer styles.</p>",
"published_at": "2024-03-01T10:00:00Z",
"published_scope": "web",
"sort_order": "manual",
"template_suffix": null,
"collection_type": "custom",
"image": {
"alt": "Summer Collection",
"src": "https://example.com/summer-banner.jpg"
},
"products_count": 0,
"seo": {
"title": "Summer Collection",
"description": "Our latest summer styles.",
"image": "https://example.com/summer-banner.jpg"
},
"url": "/collections/summer-collection",
"updated_at": "2024-03-01T10:00:00Z"
}
}
Errors
Validation and other failures return a Shopify-style{ errors } body with the
appropriate HTTP status:
{
"errors": {
"base": ["title is required"]
}
}
| Status | Description |
|---|---|
401 | Invalid or missing access token |
403 | App doesn’t have the write_products scope |
400 | title is required / invalid request body |
⌘I