Skip to content
First
Esc
↑↓navigate↵open⌘Jpreview

The signed-in user

The user making the request, with their role; null when nobody is signed in.

Access: Anyone may do this, signed in or not.

GET/me
Authorization

Optional — this operation also accepts unauthenticated requests.

wordpress_logged_in_{hash}API key · cookie

WordPress's logged-in cookie, as a browser holds it after signing in. A request with it must also carry X-WP-Nonce.

X-WP-NonceAPI key · header

A WordPress REST nonce (wp_create_nonce('wp_rest')) for the cookie's session.

or
AuthorizationBasic auth · header

A WordPress user name and one of the user's application passwords.

or
AuthorizationBearer token (JWT) · header

A First Identity access token.

Responses
200

The user, or null.

dataCurrentUser | nullrequired
Show properties
Any of:
CurrentUser
idintegerrequired
emailstring
max length 191
namestringrequired
planstring
Allowed:freepro
rolestringrequired
Allowed:guestsubscriberauthoreditoradmin
null
null
default

An error, as an RFC 9457 problem document.

typestringrequired

Always about:blank: code names the problem.

titlestringrequired

The problem in a few words.

statusintegerrequired

The HTTP status.

codestringrequired

A stable name for the problem, such as unauthenticated, forbidden, not_found, invalid_input, invalid_query, invalid_json, method_not_allowed, unique_violation or reference_violation.

detailstringrequired

What went wrong, for a person.

pointerstring

A JSON pointer to the field of the request at fault, when there is one.

Try it
Server
Authorization (optional)
Request
curl -X GET 'https://example.space.fast/__first/api/v1/me' \
  -H 'X-WP-Nonce: YOUR_API_KEY' \
  -H 'Cookie: wordpress_logged_in_{hash}=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "data": {
    "id": 0,
    "email": "string",
    "name": "string",
    "plan": "free",
    "role": "guest"
  }
}