List Files
curl --request GET \
--url https://api.launchmystore.io/api/v1/files.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/files.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/files.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/files.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/files.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/files.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/files.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": 200,
"state": "success",
"message": null,
"data": {
"files": [
{
"id": "file_abc123",
"filename": "product-hero.jpg",
"url": "https://cdn.launchmystore.io/files/product-hero.jpg",
"alt": "Product hero image",
"content_type": "image/jpeg",
"size": 245678,
"width": 1920,
"height": 1080,
"created_at": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 156,
"hasMore": true
}
}
}
Files
List Files
Get all files in the media library
GET
/
api
/
v1
/
files.json
List Files
curl --request GET \
--url https://api.launchmystore.io/api/v1/files.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/files.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/files.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/files.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/files.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/files.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/files.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": 200,
"state": "success",
"message": null,
"data": {
"files": [
{
"id": "file_abc123",
"filename": "product-hero.jpg",
"url": "https://cdn.launchmystore.io/files/product-hero.jpg",
"alt": "Product hero image",
"content_type": "image/jpeg",
"size": 245678,
"width": 1920,
"height": 1080,
"created_at": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 156,
"hasMore": true
}
}
}
Not available yet. The app-scoped Files API (
/api/v1/files*) is not
implemented — calls will 404. The read_files / write_files scopes are
reserved in the OAuth catalog (requestable for forward-compat) but no file
endpoints are bound. The shapes below are the planned contract and may change.
To read/write theme assets today use the Themes assets endpoints
(read_themes / write_themes); to pick existing media in an embedded UI use
the App Bridge file resource picker (no app scope
required).Query Parameters
Page number
Items per page (max 250)
Filter by file type:
image, video, documentResponse
The planned contract returns the standard response envelope. Thedata object
holds the file rows plus pagination counters.
HTTP status code (e.g.
200)Response state:
success or errorHuman-readable message (
null on success)Show properties
Show properties
Pagination info (
page, limit, total, hasMore){
"status": 200,
"state": "success",
"message": null,
"data": {
"files": [
{
"id": "file_abc123",
"filename": "product-hero.jpg",
"url": "https://cdn.launchmystore.io/files/product-hero.jpg",
"alt": "Product hero image",
"content_type": "image/jpeg",
"size": 245678,
"width": 1920,
"height": 1080,
"created_at": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 156,
"hasMore": true
}
}
}
⌘I