Retrieve User Profile
const url = 'https://api.wink.travel/api/profile';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/profile \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Retrieves the authenticated user’s complete profile including personal details, preferences, and contact information. Returns HTTP 404 if no profile exists.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Profile retrieved successfully
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
User identifier
Indicates whether the user wants to share this profile of themselves with hotel(s)
User details
object
User first name
User last name
User email address
User phone number
Profile picture URL
Full name
Detailed customer information for this profile
object
Identifies the gender of the customer.
Date of birth in ISO 8601 format
Marital status of the traveler
Number of children
Country of citizenship
Primary address line
Secondary address line
City name
State or province
Postal code
Country code (ISO 3166-1 alpha-2)
Preferred currency for monetary values (ISO 4217 code)
Primary language (ISO 639-1 code)
Array of emergency contact information for the customer
object
Contact first name
Contact last name
Contact E-mail
Contact secondary Email
Contact phone number
First and last name
Summary
Array of customer’s pets
object
Pet name
Pet type
Customer preferences
object
Preferred hotel property locations
Preferred hotel property types
Preferred hotel chain name
Preferred hotel property amenities
Preferred recreation services
Preferred business services
Preferred security features
Preferred accessibility features
Preference for smoking allowed rooms
Preferred hotel room locations
Preferred hotel bed type
Preferred food service facilities
Preferred hotel room amenities
Guest type classification
Meal preference
Cuisine preference
Interest preferences
Beverage preferences
Food preferences
Known allergies
Pet-friendly preferences
Example
Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
User not authenticated
object
object
Forbidden
object
object
No profile record exists for the authenticated user
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
User identifier
Indicates whether the user wants to share this profile of themselves with hotel(s)
User details
object
User first name
User last name
User email address
User phone number
Profile picture URL
Full name
Detailed customer information for this profile
object
Identifies the gender of the customer.
Date of birth in ISO 8601 format
Marital status of the traveler
Number of children
Country of citizenship
Primary address line
Secondary address line
City name
State or province
Postal code
Country code (ISO 3166-1 alpha-2)
Preferred currency for monetary values (ISO 4217 code)
Primary language (ISO 639-1 code)
Array of emergency contact information for the customer
object
Contact first name
Contact last name
Contact E-mail
Contact secondary Email
Contact phone number
First and last name
Summary
Array of customer’s pets
object
Pet name
Pet type
Customer preferences
object
Preferred hotel property locations
Preferred hotel property types
Preferred hotel chain name
Preferred hotel property amenities
Preferred recreation services
Preferred business services
Preferred security features
Preferred accessibility features
Preference for smoking allowed rooms
Preferred hotel room locations
Preferred hotel bed type
Preferred food service facilities
Preferred hotel room amenities
Guest type classification
Meal preference
Cuisine preference
Interest preferences
Beverage preferences
Food preferences
Known allergies
Pet-friendly preferences
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "share": false, "user": "", "personal": "", "preferences": ""}Internal Server Error
object
Example generated
{}