/User-Profile
Overview
The /user-profile
endpoint returns the latest profile event for the given public key.
Endpoint Details
URL:
/user-profile
Method: GET
Auth Required: No
Permissions Required: None
Request Parameters
Parameter
Description
Required
pubkey
The public key of the user whose profile is requested
Yes
Response Schema
The response is a JSON object with the following structure:
profile
: The most recent profile metadata event (kind 0) for the requested user.
Example Call
Error Responses
400 Bad Request: If the pubkey parameter is missing or invalid.
404 Not Found: If no profile can be found for the given pubkey.
500 Internal Server Error: If there's an issue processing the request.
Last updated