cURL
curl --request GET \ --url https://api.reply.io/v3/whoami \ --header 'X-API-Key: <api-key>'
{ "userId": 123 }
Returns the authenticated user’s ID. Useful for verifying API key validity and identifying the current user.
API key passed in the X-API-Key header
Current user info retrieved successfully
The authenticated user's ID