> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/data-api-sdk/authentication-users-and-connection-state/get-provider-username-via-athlete.md).

# How do I get a user's MyFitnessPal username from user\_id?

**Call the Athlete endpoint** to get the provider-side username from a Terra `user_id`:

```
GET /v2/athlete?user_id=<TERRA_USER_ID>
```

Include your `dev-id` and `x-api-key` headers. In the response, the `provider_user_id` field is the provider-side username (for MyFitnessPal, the MFP username).

To verify the user's diary/sharing, visit `myfitnesspal.com/food/diary/<MFP_USERNAME>`:

* If food entries show, sharing is configured correctly.
* Otherwise, the user must update their sharing settings.
