---
title: "Generate event"
method: GET
path: "/v2/farcaster/app_host/user/event/"
tags: ["App Host"]
---

# Generate event

`GET /v2/farcaster/app_host/user/event/`

Returns event object for app host events. Used if the app host intends to sign the event message instead of using Neynar-hosted signers.

## Query parameters

- `app_domain` string, required
- `fid` integer, required
- `event` 'frame_added' | 'frame_removed' | 'notifications_enabled' | 'notifications_disabled', required

## Response `200`

Success

- AppHostGetEventResponse
  - `event` string, required — Legacy event type corresponding to the requested event type: - frame_added: User adds a mini app to their account - frame_removed: User removes a mini app from their account - notifications_enabled: User enables notifications for a mini app - notifications_disabled: User disables notifications for a mini app
  - `notificationDetails` object — Details for notification setup, only present when event is notifications_enabled
    - `token` string, required — Token to use when sending notifications to this user
    - `url` string, required — URL endpoint for sending notifications

## Other responses

- `400` — Bad Request
- `404` — Resource not found
- `500` — Server Error

---

[API](https://skmtc.dev/neynar/apis/neynar-api.md) · [All operations](https://skmtc.dev/neynar/apis/neynar-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/neynar/neynar-api/revisions/dbb91bfb0d1a/schema)
