Get Current User

Retrieve information about the user associated with the current API key.

Endpoint

GET /users/me

Authentication

Requires a valid API key in the Authorization header.

Authorization: Bearer pgk_live_your_key_here

Parameters

No parameters required.

Response

{ "data": { "id": "usr_abc123", "email": "user@example.com", "api_key_id": "key_xyz789", "project_scope": "proj_def456" } }

Response Fields

FieldTypeDescription
idstringThe user's unique identifier
emailstringThe user's email address
api_key_idstringThe ID of the API key used for this request
project_scopestring | nullThe project this API key is scoped to, or null if unrestricted

Error Responses

statusCodenameDescription
401missing_api_keyNo API key provided
403invalid_api_keyAPI key is invalid or revoked

Example

curl "https://api.pagegun.com/users/me" \ -H "Authorization: Bearer $PAGEGUN_API_KEY"
© 2026 PageGun. All rights reserved.
Get Current User - PageGun Docs