Skip to main content
Use this flow for creator dashboards and admin tools.

Log in

TOKEN=$(
  curl -s -X POST "$MIO_BASE_URL/api/v1/auth/login" \
    -H "Content-Type: application/vnd.api+json" \
    -d '{"email":"admin@example.com","password":"password"}' \
    | jq -r '.access_token'
)

Get the current user

curl -s "$MIO_BASE_URL/api/v1/auth/me" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/vnd.api+json" | jq

List teams

curl -s "$MIO_BASE_URL/api/v1/teams" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/vnd.api+json" | jq

Use the team id

Most creator-side work happens under a team:
curl -s "$MIO_BASE_URL/api/v1/teams/$TEAM_ID/hubs" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/vnd.api+json" | jq
Use platform JWTs for interactive creator sessions. Use team API keys for server-to-server jobs.