cURL
curl --request GET \ --url https://api.makeswift.com/v2/sites \ --header 'x-api-key: <api-key>'
{ "object": "list", "data": [ { "object": "site", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "Hearth Furniture Company", "hostOrigin": "https://hearthfurniture.com", "publicApiKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "defaultLocale": "en-US" } ], "hasMore": true }
Returns a list of sites in a workspace.
API key authentication. Accepts either:
The workspace ID to list sites from.
The maximum number of sites to return.
1 <= x <= 100
The pagination cursor. This is used to indicate what ID to list from.
list
"list"
Show child attributes
The flag that indicates whether there are more sites available.
Was this page helpful?