# Get the user's service profile ("Me")
URL: https://musicapi.com/docs/reference/get-user-profile.md

`GET https://api.musicapi.com/api/{integrationUserUUID}/users/profile`

Section: Connect your users.
Product: MusicAPI Core.
Auth: Basic, DevToken, DocsSession (any one of them). Use Basic with your Client ID and Client Secret from your server only.

[Check which services support returning user information](/docs/get-started/services-and-features)


This endpoint returns information about user that was fetched from Music Service.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `integrationUserUUID` | uuid | yes | The connected user: the `integrationUserUUID` from the sign-in callback. |

## Response 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `uuid` | uuid | yes | The integrationUserUUID. Use it in every `/api/{integrationUserUUID}/...` call. |
| `integrationUserId` | string | yes | The user's id on the music service. |
| `name` | string \| null | yes |  |
| `email` | string \| null | yes |  |
| `imageUrl` | string \| null | yes |  |
| `country` | string \| null | yes | ISO 3166-1 alpha-2 country of the account, when the service tells us. |

```json
{
  "uuid": "3f0b8c1e-6a4d-4c7a-9a55-2f1e7d9b0c11",
  "integrationUserId": "mica.nowak",
  "name": "Mica Nowak",
  "email": "mica@example.com",
  "imageUrl": "https://images.example.com/mica.jpg",
  "country": "PL"
}
```

## Errors

- 404: Your account has no connected user with this uuid.
- 412: The user must sign in again (`IntegrationUserNotAuthenticated`).

## Example

```bash
curl https://api.musicapi.com/api/{integrationUserUUID}/users/profile \
  -u "$MUSICAPI_CLIENT_ID:$MUSICAPI_CLIENT_SECRET"
```
