> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign in as a creator

> Authenticate a platform user and call admin endpoints.

Use this flow for creator dashboards and admin tools.

## Log in

```bash theme={null}
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

```bash theme={null}
curl -s "$MIO_BASE_URL/api/v1/auth/me" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/vnd.api+json" | jq
```

## List teams

```bash theme={null}
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:

```bash theme={null}
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.
