Account

Account

Who the caller is, how they have Pro and how to manage it, trip allowance, privacy settings, marketing consent and the advisors linked to them with what each has shared. pro.manage.kind is stripe_portal (open url in a browser; the signed link lasts 10 minutes), app_store, play_store or none. Reading an advisor's share may create its client page link the first time; later reads return the same link. trips.remaining_slots is how many more trips the free plan allows and is null when trips are unlimited (Pro). The example is a free account; a Pro account through Stripe has pro.manage like {"kind": "stripe_portal", "url": "https://www.endlesstravelplans.com/billing/portal/token/12?expires=1760000000&signature=abc"}.

get/api/v2/account

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v2/account
  • Auth: HTTP bearer

Response

Free account

marketing_consentboolean

Example response

{
  "user": {
    "id": 12,
    "name": "Ada Lovelace",
    "email": "ada@example.com",
    "email_verified": true,
    "is_guest": false,
    "two_factor_enabled": false,
    "locale": "en"
  },
  "pro": {
    "has_access": false,
    "source": "none",
    "plan": "free",
    "expires_at": null,
    "manage": {
      "kind": "none",
      "url": null
    }
  },
  "trips": {
    "can_create": true,
    "remaining_slots": 1
  },
  "marketing_consent": true,
  "privacy": {
    "profile_visibility": false,
    "trip_sharing": true,
    "activity_tracking": false,
    "marketing_communications": false,
    "data_analytics": true
  },
  "advisor_links": [
    {
      "id": 4,
      "advisor_name": "Sam Rivera",
      "agency": "Harbour Travel",
      "since": "2026-10-01T09:00:00Z",
      "shares": [
        {
          "kind": "proposal",
          "id": 9,
          "title": "Lisbon in spring",
          "published_at": "2026-10-05T10:00:00Z",
          "url": "https://www.endlesstravelplans.com/c/abc"
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.