/Event
Retrieving an event with a given event id.
Overview
The /event
endpoint retrieves a single Nostr event by its ID, along with the profiles of relevant authors.
Endpoint Details
URL:
/event
Method: GET
Auth Required: No
Permissions Required: None
Request Parameters
id
The ID of the event to retrieve.
Yes
Response Schema
The response is a JSON object with the following structure:
event
: The requested Nostr event.profiles
: A map of author profiles, keyed by pubkey. This includes the profile of the event author and any other relevant profiles (e.g., mentioned users).
Example Call
Notes
The profiles map also includes profiles of other authors mentioned in the event.
Error Responses
400 Bad Request: If the event ID is missing or invalid.
404 Not Found: If the requested event cannot be found.
500 Internal Server Error: If there's an issue processing the request or retrieving profiles.
Last updated