import weflayr
client = weflayr.client() # reads WEFLAYR_API_KEY
client.get_customers(include_customer_tags=True)
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.getCustomers({
client,
throwOnError: true,
query: { includeCustomerTags: true },
});
curl "https://app.weflayr.com/api/customers/" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{
"customers": [
{"customer_name": "c_123", "customer_tags": {"plan": "enterprise", "region": "EU"}},
{"customer_name": "c_456", "customer_tags": {}}
],
"next_cursor": null,
"has_more": false
}
Project
Get customers
Get every known customer of the project, with its tags.
GET
/
api
/
customers
/
import weflayr
client = weflayr.client() # reads WEFLAYR_API_KEY
client.get_customers(include_customer_tags=True)
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.getCustomers({
client,
throwOnError: true,
query: { includeCustomerTags: true },
});
curl "https://app.weflayr.com/api/customers/" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{
"customers": [
{"customer_name": "c_123", "customer_tags": {"plan": "enterprise", "region": "EU"}},
{"customer_name": "c_456", "customer_tags": {}}
],
"next_cursor": null,
"has_more": false
}
Get every known customer of the project, with its customer tags.
Parameters
boolean
default:"true"
Include each customer’s tags. When
false, customer_tags is an empty object.integer
default:"100"
Numbers of customers to fetch. Max
1000.string
The route is paginated: pass the previous page’s
next_cursor to fetch the next page. PS: has_more from the output says whether another page exists.import weflayr
client = weflayr.client() # reads WEFLAYR_API_KEY
client.get_customers(include_customer_tags=True)
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.getCustomers({
client,
throwOnError: true,
query: { includeCustomerTags: true },
});
curl "https://app.weflayr.com/api/customers/" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{
"customers": [
{"customer_name": "c_123", "customer_tags": {"plan": "enterprise", "region": "EU"}},
{"customer_name": "c_456", "customer_tags": {}}
],
"next_cursor": null,
"has_more": false
}