Get Menu
curl --request GET \
--url https://api.launchmystore.io/api/v1/menus/:id.json \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "<string>",
"title": "<string>",
"handle": "<string>",
"links": [
{
"id": "<string>",
"title": "<string>",
"url": "<string>",
"type": "<string>",
"resource_id": "<string>",
"position": 123,
"links": [
{}
]
}
],
"created_at": "<string>",
"updated_at": "<string>"
}
}Menus
Get Menu
Retrieve a single navigation menu with links
GET
/
api
/
v1
/
menus
/
:id.json
Get Menu
curl --request GET \
--url https://api.launchmystore.io/api/v1/menus/:id.json \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "<string>",
"title": "<string>",
"handle": "<string>",
"links": [
{
"id": "<string>",
"title": "<string>",
"url": "<string>",
"type": "<string>",
"resource_id": "<string>",
"position": 123,
"links": [
{}
]
}
],
"created_at": "<string>",
"updated_at": "<string>"
}
}Get Menu
Returns a single navigation menu by its ID, including all links and nested children.Request
curl -X GET "https://api.launchmystore.io/api/v1/menus/menu_abc123.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Path Parameters
The unique menu ID
Response
Whether the request succeeded
Menu object
Show Menu Object
Show Menu Object
Unique menu ID
Menu title
URL-safe menu handle
Array of menu link objects
Show Link Object
Show Link Object
Unique link ID
Link title/label
Link URL
Link type:
http, collection, product, page, blog, search, catalog, policyID of linked resource (if applicable)
Position in the menu (1-indexed)
Nested child links (same structure)
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Example Response
{
"success": true,
"data": {
"id": "menu_abc123",
"title": "Main Menu",
"handle": "main-menu",
"links": [
{
"id": "link_001",
"title": "Home",
"url": "/",
"type": "http",
"resource_id": null,
"position": 1,
"links": []
},
{
"id": "link_002",
"title": "Shop",
"url": "/collections/all",
"type": "collection",
"resource_id": "col_all",
"position": 2,
"links": [
{
"id": "link_003",
"title": "New Arrivals",
"url": "/collections/new-arrivals",
"type": "collection",
"resource_id": "col_new",
"position": 1,
"links": []
},
{
"id": "link_004",
"title": "Best Sellers",
"url": "/collections/best-sellers",
"type": "collection",
"resource_id": "col_best",
"position": 2,
"links": []
}
]
},
{
"id": "link_005",
"title": "About",
"url": "/pages/about-us",
"type": "page",
"resource_id": "page_about",
"position": 3,
"links": []
},
{
"id": "link_006",
"title": "Contact",
"url": "/pages/contact",
"type": "page",
"resource_id": "page_contact",
"position": 4,
"links": []
}
],
"created_at": "2024-01-01T10:00:00Z",
"updated_at": "2024-03-15T14:30:00Z"
}
}
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
FORBIDDEN | App doesn’t have read_content scope |
NOT_FOUND | Menu with the specified ID does not exist |
⌘I