Zum Hauptinhalt springen
POST
/
api
/
developers
/
v1
/
agents
/
{id}
/
usage
Get agent usage
curl --request POST \
  --url https://app.fluently.at/api/developers/v1/agents/{id}/usage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z"
}
'
{
  "usage": {
    "id": "<string>",
    "usage": 123
  }
}

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

id
string
erforderlich

The agent’s ID

Body

application/json

Time period for which to fetch usage data.

from
string<date-time>
erforderlich

Start date for the usage period (ISO 8601 format)

to
string<date-time>
erforderlich

End date for the usage period (ISO 8601 format)

Antwort

Agent usage data

usage
object
erforderlich