---
raw: true
search:
  tags:
    - Account
    - POST
seo:
  description: >-
    Send registered events from first-party clients as JSON. Limit each request
    to 20 events and… Reference for the POST /v1/events endpoint in the
    Spacefast API.
sidebar:
  label: Submit first-party events
  badge: POST
title: Submit first-party events
type: openapi-operation
---
Send registered events from first-party clients as JSON. Limit each request to 20 events and 64 KiB. Exclude personal data. Control-plane events are server-only. Requests are rate-limited.

`POST /v1/events`

**Request body** (`application/json`, required)

- `source` (string)
- `events` (object[], required)

Request body example:

```json
{
  "source": "dashboard",
  "events": [
    {
      "id": "string",
      "name": "browser.domain.interacted",
      "actor": {
        "type": "analytics_id",
        "id": "string"
      },
      "context": {},
      "properties": {},
      "occurredAt": "2019-08-24T14:15:22Z"
    }
  ]
}
```

**Responses**

- `202` — Response for status 202
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 202:

```json
{
  "$schema": "http://example.com",
  "data": {
    "accepted": 0
  }
}
```
