Skip to main content
A hub is the member destination. It owns pages, content, community spaces, policies, checkout display, and member-specific settings.

Create the hub

curl -X POST "$MIO_BASE_URL/api/v1/teams/$TEAM_ID/hubs" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/vnd.api+json" \
  -d '{
    "data": {
      "type": "hubs",
      "attributes": {
        "title": "Member Academy",
        "slug": "member-academy"
      }
    }
  }'
The slug is what public lookup routes use:
curl -s "$MIO_BASE_URL/api/v1/hubs/member-academy" | jq

Add policies

Hubs can expose default or custom policies such as terms and privacy content.
curl -X PATCH "$MIO_BASE_URL/api/v1/teams/$TEAM_ID/hubs/$HUB_ID/policies" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/vnd.api+json" \
  -d '{
    "data": {
      "type": "hub_policies",
      "attributes": {
        "tos_content": "Terms text...",
        "privacy_content": "Privacy text..."
      }
    }
  }'

What usually comes next

  1. Upload or attach media.
  2. Build content nodes or pages.
  3. Create products and prices.
  4. Configure access rules.
  5. Let members register, buy, or join.