Feature
List Feature
Get a list of features along with its associations
GET
/
features
curl --request GET \
--url https://api.togai.com/features \
--header 'Authorization: <authorization>'
{
"data": [
{
"id": "feature.1zYnCiM9Bpg.lv25y",
"name": "DiscountCredits",
"description": "Discount Credits Feature",
"schemaAssociations": [
"event_schema1",
"event_schema2"
],
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==",
"context": {
"pageSize": 10
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
nextToken
string
pageSize
number
Response
200 - application/json
data
object[]
nextToken
string
context
object
curl --request GET \
--url https://api.togai.com/features \
--header 'Authorization: <authorization>'
{
"data": [
{
"id": "feature.1zYnCiM9Bpg.lv25y",
"name": "DiscountCredits",
"description": "Discount Credits Feature",
"schemaAssociations": [
"event_schema1",
"event_schema2"
],
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==",
"context": {
"pageSize": 10
}
}