get https://{baseUrl}/V1/storeview//customer/profile
Use this to get customer details for token in header.
Sample Curl
curl --location 'https://mygatewayurl.com/V1/storeview/default/customer/profile' --header 'Authorization: Bearer qsk2p2azmuylkcgsuhhkbale7vk571vn'