Event Definitions

List Event Definitions

GET
/v0/projects/{idOrSlug}/event-definitions

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Response Body

Success

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/event-definitions'
Example Response
[  {    "eventName": "string",    "builtIn": true,    "count30d": 0,    "lastSeenAt": "string",    "rule": {      "pattern": "string",      "sentWith": "api_key",      "properties": [        {          "key": "string",          "type": "string",          "required": true,          "values": [            "string"          ],          "min": 0,          "max": 0        }      ],      "unknownProperties": "allow",      "updatedAt": "string"    },    "description": "string",    "owner": {      "userId": "string",      "name": "string",      "image": "string"    },    "updatedAt": "string"  }]