1# set the api key2exportapi_key=myKey
34# send a meter5curl--request POST \6--url https://app.amberflo.io/ingest-endpoint/
7--header'Content-Type: application/json'\8--header'X-API-Key: '"$api_key"' ' \
9 --data '[{"meter_name":"myMeter","tenant":"myCustomer","meter_value":1}]'
10
3. Query using the usage api
Curl
1# set the api key2exportapi_key=myKey
34# send a meter5curl--request POST \6--url https://app.amberflo.io/ingest-endpoint/
7--header'Content-Type: application/json'\8--header'X-API-Key: '"$api_key"' ' \
9 --data '[{"meter_name":"myMeter","tenant":"myCustomer","meter_value":1}]'
1011# query the usage api
12curl --request POST \
13 --url https://app.amberflo.io/usage-endpoint/
14 --header 'Content-Type: application/json' \
15 --header 'X-API-Key: '"$api_key"'' \
16 --header 'output_format: json' \
17 --data '{}'
1819