Skip to main content
POST
/
usageevents
Ingress events
curl --request POST \
  --url https://api.example.com/usageevents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-environment: <x-environment>' \
  --data '
{
  "events": [
    {
      "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "code": "<string>",
      "timestamp": "2023-12-25",
      "record": {}
    }
  ]
}
'
{
  "type": "<string>",
  "title": "<string>",
  "status": 123,
  "detail": "<string>",
  "instance": "<string>"
}

Headers

x-environment
string<uuid>
required

Configure which environment the request will handle. If the provided credentials do not allow access to this specified environment, a 403 Forbidden response is returned.

Body

application/json
events
object[] | null

Array of usage-event. Maximum of 10 is allowed per batch ingress.

Response

Accepted