Skip to content

Dashboard API

Get User Dashboard URL

This endpoint provides a direct URL to the user's personalized dashboard with custom branding.

Endpoint

URLs:

  • Development: https://api.rex.fit/[org-id]/dev/v1/dashboard-url
  • Production: https://api.rex.fit/[org-id]/prod/v1/dashboard-url

Method: GET
Authorization: Bearer <api_key>

Query Parameters

Parameter Type Required Description Example
user_id string Yes Unique identifier of the user user_abc123

Example Request

GET https://api.rex.fit/[org-id]/prod/v1/dashboard-url?user_id=user_abc123
Authorization: Bearer <api_key>

Response

Success (200 OK):

{
  "status": "success",
  "dashboard_url": "https://[org-subdomain]/dash?token=abc123"
}

Custom Branding

Your dashboard URLs will be customized with your own branding:

  • Production URL Example: https://org-subdomain]/dash?token=fF0RFE3F
  • Development URL Example: https://dev.[org-subdomain]/dash?token=fF0RFE3F

Dashboard Features

The dashboard provides users with: - Progress visualization and tracking - Nutrition logs and meal history - Goal achievement metrics - Custom branding with your app's look and feel

Dashboard Sample

Dashboard Preview

Error Responses

Code Description Example
400 Bad Request Missing user_id parameter {"status": "error", "message": "Missing 'user_id'"}
404 Not Found User not found {"status": "error", "message": "User not found"}
500 Internal Server Error Server error {"status": "error", "message": "Internal server error"}

Token Security

  • Dashboard tokens are generated fresh for each request
  • Tokens provide secure, time-limited access to user dashboards
  • No additional authentication required when accessing dashboard URLs
  • Tokens automatically expire for security (default 24 hours)

Integration Notes

  • Use this endpoint to generate dashboard links for your users
  • Dashboard URLs can be embedded in your app or sent via email/SMS
  • The dashboard is fully responsive and mobile-optimized
  • Custom branding ensures seamless integration with your app's user experience