curl --request GET \
--url https://api.useaira.com/v1/resources/{id} \
--header 'X-API-KEY: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Emails sent",
"type": "unit",
"aggregation": "sum",
"aggregateByField": "value",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"filters": [
{
"property": "eventName",
"value": "email_sent"
}
]
}This endpoint allows fetching a resource by id.
curl --request GET \
--url https://api.useaira.com/v1/resources/{id} \
--header 'X-API-KEY: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Emails sent",
"type": "unit",
"aggregation": "sum",
"aggregateByField": "value",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"filters": [
{
"property": "eventName",
"value": "email_sent"
}
]
}API Key Authentication.
The unique identifier of the resource in our system.
Schema representing a resource.
Schema representing a resource.
The unique identifier of the resource in our system.
The name of the resource.
"Emails sent"
The type of the resource.
unit, currency The aggregation method used for this resource.
sum, last_during_period, unique The aggregateByField property indicates which field will be considered when aggregating events.
"value"
Custom fields that can be associated with the entity. The fields must be previously created in the system before they can be used.
Show child attributes
{
"customField1": "value1",
"customField2": ["value2", "value3"]
}The filters used for this resource.
Show child attributes
[
{
"property": "eventName",
"value": "email_sent"
}
]