Skip to main content
GET
/
stores
List stores
curl --request GET \
  --url https://app.bily.ai/api/customer/v1/stores \
  --header 'x-api-key: <api-key>' \
  --header 'x-bily-organization-id: <x-bily-organization-id>'
const options = {
method: 'GET',
headers: {'x-bily-organization-id': '<x-bily-organization-id>', 'x-api-key': '<api-key>'}
};

fetch('https://app.bily.ai/api/customer/v1/stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://app.bily.ai/api/customer/v1/stores"

headers = {
"x-bily-organization-id": "<x-bily-organization-id>",
"x-api-key": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
{
  "stores": [
    {
      "id": "<string>",
      "url": "store.example.com",
      "type": "<string>",
      "currency": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}
{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}
{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}
{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}
{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}

Authorizations

x-api-key
string
header
required

A server-side Bily API key created under Settings > MCP > Access key fallback. Select the intended store before creating it.

Headers

x-bily-organization-id
string
required

An organization ID returned by GET /context or GET /organizations. Required for GET /stores and optional for store-scoped paths.

Example:

"org_01J8W7T9G3E6ZQ4M2K5N8P1R0S"

Response

Request completed successfully.

stores
object[]
required