import weflayr
client = weflayr.client() # reads WEFLAYR_API_KEY
client.get_features()
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.getFeatures({
client,
throwOnError: true,
});
curl "https://app.weflayr.com/api/features/" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{"features": ["chatbot", "summarization"], "call_names_by_feature": {"chatbot": ["draft_reply"], "summarization": ["summarize_profile"]}}
Project
Get features
Get every distinct feature tag seen on the project, with the call names of its calls.
GET
/
api
/
features
/
import weflayr
client = weflayr.client() # reads WEFLAYR_API_KEY
client.get_features()
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.getFeatures({
client,
throwOnError: true,
});
curl "https://app.weflayr.com/api/features/" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{"features": ["chatbot", "summarization"], "call_names_by_feature": {"chatbot": ["draft_reply"], "summarization": ["summarize_profile"]}}
This route takes no parameters.
import weflayr
client = weflayr.client() # reads WEFLAYR_API_KEY
client.get_features()
const weflayr = require('weflayr');
const client = weflayr.client(); // reads WEFLAYR_API_KEY
await weflayr.api.getFeatures({
client,
throwOnError: true,
});
curl "https://app.weflayr.com/api/features/" \
-H "Authorization: Bearer $WEFLAYR_API_KEY"
{"features": ["chatbot", "summarization"], "call_names_by_feature": {"chatbot": ["draft_reply"], "summarization": ["summarize_profile"]}}