> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pivolio.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pivolio.com/_mcp/server.

# Get an event

GET /events/{event_id}

Returns the full detail for a single event, including its properties,
consent snapshot, click IDs, and per-platform delivery results.

Reference: https://docs.pivolio.com/api-reference/pivolio/events/get-event

## Authentication

- `X-Workspace-Id` header (required) — API Key authentication via header

## Request

### Path parameters

- `event_id` (string, required)

## Response

### 200

Successful Response

- `event_id` (string, required)
- `event_name` (string, required)
- `event_time` (string, required)
- `anonymous_id` (string, required)
- `user_id` (string, required)
- `person_id` (string, required)
- `page_url` (string, required)
- `utm_source` (string, required)
- `utm_medium` (string, required)
- `channel` (string, required)
- `device_type` (string, required)
- `os` (string, required)
- `browser` (string, required)
- `country` (string, required)
- `revenue_cents` (integer, required)
- `currency` (string, required)
- `order_id` (string, required)
- `revenue_usd_cents` (integer, required)
- `test_mode` (boolean, required)
- `received_at` (string, required)
- `ip` (string, required)
- `user_agent` (string, required)
- `page_path` (string, required)
- `page_referrer` (string, required)
- `page_title` (string, required)
- `utm_campaign` (string, required)
- `utm_content` (string, required)
- `utm_term` (string, required)
- `email_hash` (string, required)
- `phone_hash` (string, required)
- `click_ids` (ClickIds, required) — Click IDs from ad platforms.
- `consent` (ConsentSnapshot, required) — Consent statuses for dashboard display. Blank string means unanswered.
- `email` (string, optional, nullable)
- `phone` (string, optional, nullable)
- `first_name` (string, optional, nullable)
- `last_name` (string, optional, nullable)
- `deliveries` (list of EventDelivery, optional, default: [])
- `properties` (any, optional)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (string, required)
- `code` (string, required)
- `errors` (list of FieldError, optional, nullable)

## Types

### ClickIds

Click IDs from ad platforms.

- `fbclid` (string, optional, nullable)
- `fbp` (string, optional, nullable)
- `fbc` (string, optional, nullable)
- `gclid` (string, optional, nullable)
- `gbraid` (string, optional, nullable)
- `wbraid` (string, optional, nullable)
- `ttclid` (string, optional, nullable)
- `ttp` (string, optional, nullable)
- `li_fat_id` (string, optional, nullable)
- `msclkid` (string, optional, nullable)
- `epik` (string, optional, nullable)
- `rdt_cid` (string, optional, nullable)
- `sc_click_id` (string, optional, nullable)
- `twclid` (string, optional, nullable)

### ConsentSnapshot

Consent statuses for dashboard display. Blank string means unanswered.

- `ad_storage` (string, optional, default: )
- `analytics_storage` (string, optional, default: )
- `ad_user_data` (string, optional, default: )
- `ad_personalization` (string, optional, default: )

### EventDelivery

One platform's delivery outcome for an event.

- `platform` (enum, required) — Ad platforms. The subset with a destination adapter is dispatchable for CAPI (incl. Reddit); the rest (e.g. x) appear only as click sources.
  - Allowed values: `meta`, `google`, `tiktok`, `linkedin`, `snapchat`, `pinterest`, `microsoft`, `reddit`, `x`
- `status` (enum, required) — The outcome of one delivery attempt to one destination.
  - Allowed values: `sent`, `skipped`, `retrying`, `failed`, `suppressed`
- `status_code` (integer, optional, default: 0)
- `error_code` (string, optional, default: )
- `error_message` (string, optional, default: )
- `latency_ms` (integer, optional, default: 0)
- `attempt` (integer, optional, default: 1)

### FieldError

- `field` (string, required)
- `message` (string, required)

## Examples

**Response**

```json
{
  "event_id": "string",
  "event_name": "string",
  "event_time": "string",
  "anonymous_id": "string",
  "user_id": "string",
  "person_id": "string",
  "page_url": "string",
  "utm_source": "string",
  "utm_medium": "string",
  "channel": "string",
  "device_type": "string",
  "os": "string",
  "browser": "string",
  "country": "string",
  "revenue_cents": 1,
  "currency": "string",
  "order_id": "string",
  "revenue_usd_cents": 1,
  "test_mode": true,
  "received_at": "string",
  "ip": "string",
  "user_agent": "string",
  "page_path": "string",
  "page_referrer": "string",
  "page_title": "string",
  "utm_campaign": "string",
  "utm_content": "string",
  "utm_term": "string",
  "email_hash": "string",
  "phone_hash": "string",
  "click_ids": {
    "fbclid": "string",
    "fbp": "string",
    "fbc": "string",
    "gclid": "string",
    "gbraid": "string",
    "wbraid": "string",
    "ttclid": "string",
    "ttp": "string",
    "li_fat_id": "string",
    "msclkid": "string",
    "epik": "string",
    "rdt_cid": "string",
    "sc_click_id": "string",
    "twclid": "string"
  },
  "consent": {
    "ad_storage": "",
    "analytics_storage": "",
    "ad_user_data": "",
    "ad_personalization": ""
  },
  "email": "string",
  "phone": "string",
  "first_name": "string",
  "last_name": "string",
  "deliveries": [
    {
      "platform": "meta",
      "status": "sent",
      "status_code": 0,
      "error_code": "",
      "error_message": "",
      "latency_ms": 0,
      "attempt": 1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/events/event_id"

headers = {"X-Workspace-Id": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.example.com/events/event_id';
const options = {method: 'GET', headers: {'X-Workspace-Id': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/events/event_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-Workspace-Id", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/events/event_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Workspace-Id"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/events/event_id")
  .header("X-Workspace-Id", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/events/event_id', [
  'headers' => [
    'X-Workspace-Id' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/events/event_id");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Workspace-Id", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-Workspace-Id": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/events/event_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```