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

# Retrieve a stored event

GET https://api.portreeve.com/v1/events/{id}

Fetch a previously judged event by the `id` returned from `POST /v1/verdict`. Scoped to the tenant and mode of the key you present: an event created with a test key is invisible to a live key, and vice versa (it 404s rather than 403s).

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

## Authentication

- `Authorization` header (bearer token, required) — `Authorization: Bearer sk_live_…` (or `sk_test_…`). Server-side only — never ship a secret key to a browser or a mobile app. The key determines the tenant *and* the mode; there is no mode parameter on any request.

## Request

### Path parameters

- `id` (string, required) — The event id returned by `POST /v1/verdict`, e.g. `evt_01J8Z3K9…`.

## Response

### 200

The stored event and the verdict it received.

- `id` (string, required) — The event id. Persist it alongside your user or charge — it is the join key for the `review.resolved` webhook and for `GET /v1/events/{id}`.
- `event_type` (enum, required) — The event type that was screened.
  - Allowed values: `signup`, `trial_start`, `trial_convert`, `checkout_attempt`, `login`
- `verdict` (enum, required) — `allow`: proceed. `review`: **proceed anyway**, and be ready to revoke when the `review.resolved` webhook says so. `block`: stop the flow with a generic error — do not tell the user which signal tripped.
  - Allowed values: `allow`, `review`, `block`
- `reasons` (list of Reason, required) — Why. Ordering is not significant and an empty array is normal on `allow`. The reasons explain the decision; they are not the decision.
- `policy_version` (string, required) — The rules version that produced this decision, e.g. `2026-08-18.0`. Useful when correlating a change in your block rate with a change on our side.
- `created_at` (datetime, required) — RFC 3339 timestamp of when the event was judged.
- `external_user_id` (string, optional) — Present when it was sent at verdict time or attached later via `PATCH /v1/events/{id}`; absent otherwise.

## Errors

### 401 Unauthorized Error

Missing, malformed, unknown, revoked, or wrong-kind API key. A secret key is required.

- `error` (string, required) — **This is an open set.** New values ship without a new SDK release and without a breaking change, so this is documented as a plain string rather than a closed enum. Treat an unrecognised value as informational: log it, display it, never crash on it, and never map "unknown" to a punitive action. Publishing a closed enum here would make our next additive release break every generated client that validates responses. The values defined today (also available machine-readably in `x-portreeve-known-values`) are: `invalid_request`, `unauthorized`, `rate_limited`, `idempotency_conflict`, `conflict`, `not_found`, `internal`.
- `message` (string, required) — Human-readable, for your logs. Never show it to an end user — on a `block` it can describe what tripped.
- `details` (map from string to any, optional) — Optional structured context. On a 400 it carries `issues[]`, an array of `{ path, message }` — one entry per validation failure.

### 404 Not Found Error

No event with that id in this tenant and mode.

- `error` (string, required) — **This is an open set.** New values ship without a new SDK release and without a breaking change, so this is documented as a plain string rather than a closed enum. Treat an unrecognised value as informational: log it, display it, never crash on it, and never map "unknown" to a punitive action. Publishing a closed enum here would make our next additive release break every generated client that validates responses. The values defined today (also available machine-readably in `x-portreeve-known-values`) are: `invalid_request`, `unauthorized`, `rate_limited`, `idempotency_conflict`, `conflict`, `not_found`, `internal`.
- `message` (string, required) — Human-readable, for your logs. Never show it to an end user — on a `block` it can describe what tripped.
- `details` (map from string to any, optional) — Optional structured context. On a 400 it carries `issues[]`, an array of `{ path, message }` — one entry per validation failure.

### 429 Too Many Requests Error

Per-key rate limit exceeded (default 600 requests/minute per API key; requests with an unparseable key are bucketed per source IP). `retry-after` and `x-ratelimit-*` headers accompany the response. Retry after the window; do not treat this as a verdict.

- `error` (string, required) — **This is an open set.** New values ship without a new SDK release and without a breaking change, so this is documented as a plain string rather than a closed enum. Treat an unrecognised value as informational: log it, display it, never crash on it, and never map "unknown" to a punitive action. Publishing a closed enum here would make our next additive release break every generated client that validates responses. The values defined today (also available machine-readably in `x-portreeve-known-values`) are: `invalid_request`, `unauthorized`, `rate_limited`, `idempotency_conflict`, `conflict`, `not_found`, `internal`.
- `message` (string, required) — Human-readable, for your logs. Never show it to an end user — on a `block` it can describe what tripped.
- `details` (map from string to any, optional) — Optional structured context. On a 400 it carries `issues[]`, an array of `{ path, message }` — one entry per validation failure.

### 500 Internal Server Error

Unhandled server error. The verdict engine itself fails open rather than 500ing — a rules bug returns `allow` with no reasons — so a 500 here means the request never reached a decision. Treat as retryable.

- `error` (string, required) — **This is an open set.** New values ship without a new SDK release and without a breaking change, so this is documented as a plain string rather than a closed enum. Treat an unrecognised value as informational: log it, display it, never crash on it, and never map "unknown" to a punitive action. Publishing a closed enum here would make our next additive release break every generated client that validates responses. The values defined today (also available machine-readably in `x-portreeve-known-values`) are: `invalid_request`, `unauthorized`, `rate_limited`, `idempotency_conflict`, `conflict`, `not_found`, `internal`.
- `message` (string, required) — Human-readable, for your logs. Never show it to an end user — on a `block` it can describe what tripped.
- `details` (map from string to any, optional) — Optional structured context. On a 400 it carries `issues[]`, an array of `{ path, message }` — one entry per validation failure.

## Types

### Reason

One signal behind a verdict.

- `code` (string, required) — **This is an open set.** New values ship without a new SDK release and without a breaking change, so this is documented as a plain string rather than a closed enum. Treat an unrecognised value as informational: log it, display it, never crash on it, and never map "unknown" to a punitive action. Publishing a closed enum here would make our next additive release break every generated client that validates responses. The values defined today (also available machine-readably in `x-portreeve-known-values`) are: `disposable_email`, `invalid_mx`, `young_domain`, `malformed_email`, `proxy_ip`, `tor_exit`, `datacenter_ip`, `velocity_ip_signups`, `velocity_device_signups`, `velocity_domain_signups`, `velocity_card_attempts`, `velocity_ip_card_attempts`, `velocity_cluster_trials`, `velocity_distinct_cards`, `velocity_card_countries`, `ato_new_device`, `ato_account_device_burst`, `identity_cluster`, `cluster_confirmed_abuse`, `cluster_trusted`, `prepaid_card`, `card_probe_pattern`, `allowlisted`, `blocklisted`, `timeout_failopen`, `partial_enrichment`.
- `detail` (map from string to ReasonDetail, optional) — A flat map of scalars specific to the code, e.g. `{ "linked_accounts": 4 }` on `identity_cluster`. Present on some codes, absent on others; treat it as informational.

### ReasonDetail

## Examples

**Response**

```json
{
  "id": "evt_01J8Z3K9QP4M2N",
  "event_type": "signup",
  "verdict": "review",
  "reasons": [
    {
      "code": "identity_cluster",
      "detail": {
        "linked_accounts": 4
      }
    }
  ],
  "policy_version": "2026-08-18.0",
  "created_at": "2026-08-16T09:41:02.417Z"
}
```

**SDK Code**

```python a stored event
import requests

url = "https://api.portreeve.com/v1/events/id"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript a stored event
const url = 'https://api.portreeve.com/v1/events/id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go a stored event
package main

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

func main() {

	url := "https://api.portreeve.com/v1/events/id"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby a stored event
require 'uri'
require 'net/http'

url = URI("https://api.portreeve.com/v1/events/id")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java a stored event
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.portreeve.com/v1/events/id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.portreeve.com/v1/events/id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp a stored event
using RestSharp;

var client = new RestClient("https://api.portreeve.com/v1/events/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift a stored event
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.portreeve.com/v1/events/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()
```