List Themes
curl --request GET \
--url https://api.launchmystore.io/api/v1/themes.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/themes.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.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.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.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.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/themes.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{
"status": 123,
"state": "<string>",
"message": "<string>",
"data.themes": [
{
"id": "<string>",
"name": "<string>",
"version": "<string>",
"author": "<string>",
"previewUrl": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"uploadedAt": "<string>",
"description": "<string>",
"documentation_url": "<string>",
"support_url": "<string>",
"thumbnail": "<string>"
}
]
}Themes
List Themes
Retrieve a list of installed themes
GET
/
api
/
v1
/
themes.json
List Themes
curl --request GET \
--url https://api.launchmystore.io/api/v1/themes.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/themes.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.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.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.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.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/themes.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{
"status": 123,
"state": "<string>",
"message": "<string>",
"data.themes": [
{
"id": "<string>",
"name": "<string>",
"version": "<string>",
"author": "<string>",
"previewUrl": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"uploadedAt": "<string>",
"description": "<string>",
"documentation_url": "<string>",
"support_url": "<string>",
"thumbnail": "<string>"
}
]
}List Themes
Returns a list of themes installed in the store.Request
curl -X GET "https://api.launchmystore.io/api/v1/themes.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
The response uses the standard envelope. The theme array is nested underdata.themes.
HTTP status code (e.g.,
200)Result state —
success on success, error on failureHuman-readable message, or
null on successArray of theme objects
Show Theme Object
Show Theme Object
Unique theme ID
Theme name
Theme version number
Theme author
Preview image URL, or
null if no preview existsCreation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Upload timestamp (ISO 8601)
Theme description (only present if set)
Documentation URL (only present if set)
Support URL (only present if set)
Thumbnail reference (only present if set)
Example Response
{
"status": 200,
"state": "success",
"message": null,
"data": {
"themes": [
{
"id": "1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718",
"name": "Aqua",
"version": "1.0.0",
"author": "LaunchMyStore",
"previewUrl": "/theme-previews/1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718.png",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-03-15T14:30:00.000Z",
"uploadedAt": "2024-01-15T10:00:00.000Z"
},
{
"id": "8a7b6c5d-4e3f-2019-8a7b-6c5d4e3f2019",
"name": "Custom Theme",
"version": "2.1.0",
"author": "Acme Studio",
"previewUrl": null,
"createdAt": "2024-02-15T10:00:00.000Z",
"updatedAt": "2024-02-28T14:30:00.000Z",
"uploadedAt": "2024-02-15T10:00:00.000Z"
}
]
},
"count": null,
"pagination": null
}
Error Response
{
"status": 500,
"state": "error",
"message": "Store not found",
"data": null
}
| Status | Description |
|---|---|
401 | Invalid or missing access token |
403 | App doesn’t have read_themes scope |
⌘I