MyFitnessPal · Authentication Profile

Myfitnesspal Authentication

Authentication

MyFitnessPal secures its APIs with oauth2 across 2 declared security schemes, as derived from its OpenAPI definitions. OAuth 2.0 is offered via the authorizationCode flow(s).

CompanyConsumerHealth and FitnessNutritionFitness TrackingFood DiaryWellnessWebhookAuthentication
Methods: oauth2 Schemes: 2 OAuth flows: authorizationCode API key in:

Security Schemes

OAuth2 oauth2
· flows: authorizationCode
PartnerCredentials client

Source

Authentication Profile

Raw ↑
generated: '2026-07-20'
method: searched
source: https://myfitnesspalapi.com/docs
docs: https://myfitnesspalapi.com/docs/user-authentication
summary:
  types: [oauth2]
  oauth2_flows: [authorizationCode]
  client_auth: client_id + client_secret (partner credentials)
  required_headers: [mfp-client-id]
  optional_headers: [mfp-user-id]
schemes:
- name: OAuth2
  type: oauth2
  description: >-
    OAuth 2.0 authorization-code grant. A partner application redirects the user to the MyFitnessPal
    authorization endpoint, receives an authorization code on consent, and exchanges it at the token
    endpoint for an access token and refresh token. Access tokens authorize subsequent /v2/ requests;
    refresh tokens obtain new access tokens on expiry. Tokens can be revoked.
  flows:
  - flow: authorizationCode
    authorizationUrl: https://api.myfitnesspal.com/v2/oauth2/auth
    tokenUrl: https://api.myfitnesspal.com/v2/oauth2/token
    revocationUrl: https://api.myfitnesspal.com/v2/oauth2/revoke
    scopes:
    - diary
    - measurements
    - private-exercises
    - subscriptions
  sources: [https://myfitnesspalapi.com/docs/auth-example-2]
- name: PartnerCredentials
  type: client
  description: >-
    Partners are issued a Client ID (public, identifies the partner application) and a Client Secret
    (private, must never be transmitted in plaintext). The Client ID is passed on every request in the
    mfp-client-id HTTP header; the optional mfp-user-id header scopes a request to a specific user.
  contact: partners@myfitnesspal.com
notes:
- The developer program is currently closed to new applicants ("We are not accepting requests for API access at this time.").
- No OpenAPI/Swagger specification is published; this profile is derived from the human docs at myfitnesspalapi.com/docs.

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/myfitnesspal-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.