v37

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1170194628.0 KB
Authentication

Me

Get current user information. Validates authentication and returns user details.

**Authentication Required:**
One of the following authentication methods must be used:
- Bearer token in `Authorization` header: `Authorization: Bearer <access_token>`
- Session token in `Authorization` header: `Authorization: Session <session_token>`
- API Key in `Authorization` header: `Authorization: APIKey <api_key>`

**Headers:**
- `Authorization`: Authentication token (required)
- `X-Client-Type`: Client type for logging (optional, default: papr_plugin)

**Response:**
- `user_id`: Internal user ID
- `sessionToken`: Session token for API access (if available)
- `imageUrl`: User profile image URL (if available)
- `displayName`: User display name (if available)
- `email`: User email address (if available)
- `message`: Authentication status message

**Example:**
```
GET /me
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
X-Client-Type: papr_plugin
```
get/me

Response

User information retrieved successfully

user_idstring required

Internal user ID

sessionTokenstring nullable

Session token for API access

imageUrlstring nullable

User profile image URL

displayNamestring nullable

User display name

emailstring nullable

User email address

messagestring

Authentication status message