Get Current User
Retrieve information about the user associated with the current API key.
Endpoint
GET /users/meAuthentication
Requires a valid API key in the Authorization header.
Authorization: Bearer pgk_live_your_key_hereParameters
No parameters required.
Response
{
"data": {
"id": "usr_abc123",
"email": "user@example.com",
"api_key_id": "key_xyz789",
"project_scope": "proj_def456"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | The user's unique identifier |
email | string | The user's email address |
api_key_id | string | The ID of the API key used for this request |
project_scope | string | null | The project this API key is scoped to, or null if unrestricted |
Error Responses
| statusCode | name | Description |
|---|---|---|
401 | missing_api_key | No API key provided |
403 | invalid_api_key | API key is invalid or revoked |
Example
curl "https://api.pagegun.com/users/me" \
-H "Authorization: Bearer $PAGEGUN_API_KEY"