Tenants
Tenants API allows you to programmatically access your Storefront account.
List
GET /api/v1/tenants HTTP/1.1
Accept: application/json
Lists all tenants.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| q | query | string | true | Query string |
| take | query | integer(int32) | false | Items to return at max |
| skip | query | integer(int32) | false | Items to skip in results |
Response
Overview
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | A list of search results |
| 500 | Internal Server Error | An unexpected error on the server side |
Response schema
Status Code 200
| Name | Type | Required | Description |
|---|---|---|---|
| total | integer(int32) | true | Total number of found hits |
| data | object | false | Individual hits of the search result |
Examples
200 response
{
"total": 13,
"data": [
{
"id": "..."
},
...
]
}
Code examples
- Shell
- Go
- Node
- C#
- Java
- Python
- Ruby
curl -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
'/api/v1/search?q=apple'
package main
const fetch = require('node-fetch');
namespace MyApp
package main
import requests
require 'rest-client'
require 'json'