# The Profile object

> Attributes of a BloomText Profile and the endpoints that return it.

Source: https://www.bloomtext.com/developers/api/reference/profile-object/

The person who connected your app with OAuth, and the grant itself.

### Attributes

- `user` (User, required): 

  Child attributes:
- `id` (UUID, required): Unique ID of the user.

- `name` (string, required): Display name.

- `role` (string, required): The user's role in the organization.

- `organization` (Organization, required): 

  Child attributes:
- `id` (UUID, required): Stable organization UUID.

- `name` (string, required): Organization display name.

- `app` (App, required): A registered app.

  Child attributes:
- `client_id` (string, required): Your app's OAuth client ID.

- `name` (string, required): Your app's name as users and staff see it.

- `scopes` (array of string, required): Scopes the user granted your app.

- `expires_at` (timestamp, required): When this grant reaches its 12-month limit and the user must approve your app again.

### Endpoints

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/me` | [Retrieve the profile](https://www.bloomtext.com/developers/api/reference/get-profile/) |

```json filename="The Profile object"
{
  "user": {
    "id": "8b9c2d2f-6b1a-44f4-a7b1-0d6d3f2d6f55",
    "name": "Alex Example",
    "role": "member"
  },
  "organization": {
    "id": "6db1e3f5-9b7f-4f2b-8be1-0f1e1d7d7d8c",
    "name": "Example Clinic"
  },
  "app": {
    "client_id": "bt_client_7Hq2mX9aLk",
    "name": "Acme EHR Assistant"
  },
  "scopes": [
    "messages.read",
    "offline_access"
  ],
  "expires_at": "2027-09-21T15:04:05Z"
}
```
