Current user
id: core-me-get owner: core method: GET path: /wp-json/headlesswp/v1/me title: Current user usedBySite: true
GET /wp-json/headlesswp/v1/me
Fetch the authenticated user profile summary.
Auth + CSRF
- Auth: cookie
- Proxy nonce required: yes.
- CSRF: proxy requires
X-WP-Noncefor authenticated reads (HWP nonce policy: never).
Request schema
No request body.
Response schema
{
"data": {
"user": {
"id": 123,
"email": "person@example.com",
"displayName": "Person Name",
"roles": ["subscriber"],
"createdAt": "2024-01-01T00:00:00Z",
"billingEmail": "billing@example.com (optional)",
"billingPhone": "string (optional)",
"companyName": "string (optional)"
},
"roles": {
"wpRoles": ["subscriber"],
"headlesswpRoles": ["customer"]
},
"flags": {
"isLoggedIn": true,
"isAdmin": false,
"hasWooCommerce": false,
"hasRcp": false,
"hasAffiliateWp": false,
"hasEdd": false,
"hasMemberPress": false,
"hasGravityForms": false,
"hasFluentForms": false,
"hasGiveWp": false,
"hasActiveRcpMembership": false,
"hasActiveMemberPressMembership": false,
"hasAnyCompletedWooOrder": false,
"hasActiveSubscription": false,
"hasProAccess": false,
"isAffiliate": false,
"isAffiliateApproved": false,
"hasMemberPressMembership": false,
"hasLearnDashCourses": false
},
"entitlements": {
"flags": "<flags object>",
"formsProvider": "string or null",
"ordersSummary": "<ordersSummary>",
"orders": [],
"donations": { "donations": [] },
"donationsSummary": "<donationsSummary>",
"memberships": [],
"membershipsSummary": "<membershipsSummary>",
"subscriptions": [],
"subscriptionsSummary": "<subscriptionsSummary>",
"affiliate": "<affiliate summary>",
"dependencies": "<dependencies>",
"summaries": {
"orders": "<ordersSummary>",
"donations": "<donationsSummary>",
"memberships": "<membershipsSummary>",
"subscriptions": "<subscriptionsSummary>",
"affiliate": "<affiliate summary>",
"dependencies": "<dependencies>"
}
},
"profile": {
"firstName": "string or null",
"lastName": "string or null"
},
"consent": {
"marketingOptIn": false,
"termsAcceptedAt": "string or null",
"privacyAcceptedAt": "string or null"
}
},
"meta": {
"correlationId": "string-or-null",
"correlation_id": "string-or-null",
"request_id": "string-or-null",
"timestamp": "2024-01-01T00:00:00Z"
}
}
Error codes
NOT_AUTHENTICATED(401) when no valid cookie session is present.