List Menus
curl --request GET \
--url https://api.launchmystore.io/api/v1/menus.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/menus.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/menus.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/menus.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/menus.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/menus.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/menus.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": {
"menuId": "<string>",
"name": "<string>",
"handle": "<string>",
"menuType": "<string>",
"menuItemType": "<string>",
"url": "<string>",
"child": [
{}
],
"parentId": "<string>",
"order": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"count": 123,
"pagination": {}
}Menus
List Menus
Retrieve a list of navigation menus
GET
/
api
/
v1
/
menus.json
List Menus
curl --request GET \
--url https://api.launchmystore.io/api/v1/menus.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/menus.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/menus.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/menus.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/menus.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/menus.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/menus.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": {
"menuId": "<string>",
"name": "<string>",
"handle": "<string>",
"menuType": "<string>",
"menuItemType": "<string>",
"url": "<string>",
"child": [
{}
],
"parentId": "<string>",
"order": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"count": 123,
"pagination": {}
}List Menus
Returns the navigation menus (link lists) in the store.Request
curl -X GET "https://api.launchmystore.io/api/v1/menus.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Parameters
This endpoint returns every menu for the store in a single response. It does not currently accept pagination or filter parameters.Response
Responses use the standard envelope (status, state, message, data, count, pagination). The menus are returned as a flat array under data.menus.
HTTP status code (
200 on success)Result state, e.g.
successHuman-readable message, or
nullWrapper object containing the menus array
Show data.menus[]
Show data.menus[]
Unique menu ID (UUID)
Menu name
URL-safe menu handle
Where the menu is used (e.g.
header, footer)Item resource type (e.g.
page, product, category, customized)Destination URL for this menu item
Array of nested child menu-item objects (stored as JSON)
Parent menu ID, or
null for top-level itemsSort order within its level
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Result count metadata;
null for this endpointPagination metadata;
null for this endpointExample Response
{
"status": 200,
"state": "success",
"message": null,
"data": {
"menus": [
{
"menuId": "a1b2c3d4-0001-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Home",
"handle": "home",
"menuType": "header",
"menuItemType": "customized",
"url": "/",
"child": [],
"parentId": null,
"order": 1,
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-03-15T14:30:00.000Z"
},
{
"menuId": "a1b2c3d4-0002-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Contact",
"handle": "contact",
"menuType": "footer",
"menuItemType": "page",
"url": "/pages/contact",
"child": [],
"parentId": null,
"order": 2,
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-02-10T09:00:00.000Z"
}
]
},
"count": null,
"pagination": null
}
Error Codes
| HTTP Status | Description |
|---|---|
401 | Invalid or missing access token |
403 | App doesn’t have read_content scope |
⌘I