List Theme Assets
curl --request GET \
--url https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.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/themes/{theme_id}/assets.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data.assets": [
{
"name": "<string>",
"path": "<string>",
"directory": "<string>",
"size": 123,
"type": "<string>",
"extension": "<string>",
"modified": "<string>",
"url": "<string>",
"thumbnail": "<string>"
}
]
}Themes
List Theme Assets
List the files in a theme
GET
/
api
/
v1
/
themes
/
{theme_id}
/
assets.json
List Theme Assets
curl --request GET \
--url https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.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/themes/{theme_id}/assets.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/themes/{theme_id}/assets.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data.assets": [
{
"name": "<string>",
"path": "<string>",
"directory": "<string>",
"size": 123,
"type": "<string>",
"extension": "<string>",
"modified": "<string>",
"url": "<string>",
"thumbnail": "<string>"
}
]
}Returns every asset file in a theme. Assets come back as metadata only —
the file body is not included. To read or write file contents, use
Create / update.
Auth: OAuth access token with the
All theme-asset endpoints use the standard response envelope (
read_themes scope.
This endpoint takes no body.
key and value belong to
Create / update asset, which is a
separate PUT request.status,
state, message, data).
Request
curl -X GET "https://api.launchmystore.io/api/v1/themes/1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718/assets.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Path Parameters
string
required
The theme ID
Response
The asset array is nested underdata.assets. Each asset object describes one
file.
array
Array of asset objects
Show Asset Object
Show Asset Object
string
File name (e.g.,
theme.css)string
Path within the theme (e.g.,
assets/theme.css)string
Directory the file lives in (e.g.,
assets, sections, snippets, layout, templates)integer
File size in bytes
string
File category:
image, style, script, font, template, or otherstring
File extension (e.g.,
.css, .aqua, .png)string
Last modified timestamp (ISO 8601)
string
Public URL to the asset
string
Thumbnail URL for image assets, otherwise
null{
"status": 200,
"state": "success",
"message": null,
"data": {
"assets": [
{
"name": "theme.css",
"path": "assets/theme.css",
"directory": "assets",
"size": 45678,
"type": "style",
"extension": ".css",
"modified": "2024-03-12T11:30:00.000Z",
"url": "https://assets.launchmystore.io/themes/1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718/assets/theme.css",
"thumbnail": null
},
{
"name": "header.aqua",
"path": "sections/header.aqua",
"directory": "sections",
"size": 8192,
"type": "template",
"extension": ".aqua",
"modified": "2024-03-10T09:00:00.000Z",
"url": "https://assets.launchmystore.io/themes/1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718/sections/header.aqua",
"thumbnail": null
}
]
},
"count": null,
"pagination": null
}
Asset Paths
Common asset paths:| Path Pattern | Description |
|---|---|
layout/*.aqua | Layout templates |
templates/*.json | Page templates |
sections/*.aqua | Section files |
snippets/*.aqua | Snippet files |
assets/* | Static files (CSS, JS, images) |
config/settings_schema.json | Theme settings schema |
config/settings_data.json | Theme settings values |
locales/*.json | Translation files |
Errors
| Status | Description |
|---|---|
401 | Invalid or missing access token |
403 | App doesn’t have the read_themes scope |
404 | Theme does not exist |