---
title: "GET /users/{userId}/profile"
method: GET
path: "/users/{userId}/profile"
tags: ["users"]
---

# GET /users/{userId}/profile

`GET /users/{userId}/profile`

Gets the current user's Gmail profile.

## Path parameters

- `userId` string, required

## Query parameters

- `$.xgafv` '1' | '2' — V1 error format
- `access_token` string
- `alt` 'json' | 'media' | 'proto' — Data format for response
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `upload_protocol` string
- `uploadType` string

## Response `200`

Successful response

- Profile — Profile for a Gmail user
  - `emailAddress` string — The user's email address
  - `threadsTotal` integer — The total number of threads in the mailbox
  - `historyId` string, uint64 — The ID of the mailbox's current history record
  - `messagesTotal` integer — The total number of messages in the mailbox

---

[API](https://skmtc.net/ballerina-platform/apis/gmail-api.md) · [All operations](https://skmtc.net/ballerina-platform/apis/gmail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ballerina-platform/gmail-api/versions/c7f11764507c/schema)
