DailyGoal API
Scripts, dashboards and AI agents can read and change your own DailyGoal data. The REST API and the remote MCP server are built from one definition, so they offer the same operations with the same inputs, outputs and errors.
The DailyGoal API is not available on the Free plan. It works with a paid plan or during a free trial. See plans.
Endpoints
- REST base URL:
https://api.dailygoal.fit/v1 - MCP server:
https://api.dailygoal.fit/v1/mcp, stateless streamable HTTP with JSON responses - OpenAPI 3.1 spec: https://api.dailygoal.fit/v1/openapi.json
- Agent-readable guide: https://api.dailygoal.fit/v1/llms.txt
Your first request
Create an API token in your DailyGoal settings, then ask for your context. Every agent should make this call first: it returns today's Activity Day, your timezone and your preferred units, so writes land on the right day in the right units.
curl "https://api.dailygoal.fit/v1/me" \
-H "Authorization: Bearer $DAILYGOAL_API_TOKEN"Operations available today
The reference is generated from the API definition, so it lists exactly the operations the live API serves.
get_context(GET /v1/me): Get contextlist_body_metrics(GET /v1/body-metrics): List body metricsset_body_metrics(PUT /v1/body-metrics): Set body metricsdelete_body_metric(DELETE /v1/body-metrics): Delete body metricsearch_foods(GET /v1/foods): Search foodslist_food_entries(GET /v1/food-entries): List food entrieslog_food_entry(POST /v1/food-entries): Log food entryupdate_food_entry(PATCH /v1/food-entries): Update food entrydelete_food_entry(DELETE /v1/food-entries): Delete food entrysave_custom_food(POST /v1/custom-foods): Save custom fooddelete_custom_food(DELETE /v1/custom-foods): Delete custom foodsearch_exercises(GET /v1/exercises): Search exerciseslist_workouts(GET /v1/workouts): List workoutsget_workout(GET /v1/workouts/detail): Get workoutlog_workout(POST /v1/workouts): Log workoutreplace_workout(PUT /v1/workouts): Replace workoutdelete_workout(DELETE /v1/workouts): Delete workoutlist_goals(GET /v1/goal-templates): List goalssave_goal(POST /v1/goal-templates): Save goaldelete_goal(DELETE /v1/goal-templates): Delete goalget_daily_goals(GET /v1/daily-goals): Get daily goalsset_goal_progress(PUT /v1/daily-goals): Set goal progress
Guides
- MCP quickstart: connect an MCP client with the MCP URL and your API token.
- Authentication: API tokens, connected apps, paid access and rate limits.
- Errors: every error code and what to do next.
Versioning
/v1 only takes additive changes. A breaking change ships as /v2, announced on this page at least six months before /v1 changes. For MCP, renaming a tool or adding a required input counts as a breaking change.
Your data and your terms
A program you connect acts on your account and receives the data it asks for. The Privacy Policy explains what connected programs receive, and the Terms of Use cover your responsibility for tokens and apps you set up.