Skip to content

프로필

GET /user/profile

인증된 사용자의 프로필을 조회합니다. 현재 플랜과 저장 공간 사용량이 포함됩니다.

User profile page with account details and plan information

요청 예시

bash
curl https://api.ipfs.ninja/user/profile \
  -H "X-Api-Key: bws_your_api_key_here"

응답 200 OK

json
{
  "userId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "email": "user@example.com",
  "name": "Jane Developer",
  "plan": "nirvana",
  "storageUsedMB": 12.5,
  "gatewaySlug": "a1b2c3d4",
  "gatewayUrl": "https://a1b2c3d4.gw.ipfs.ninja",
  "gatewayTokenRequired": false,
  "gatewayAllowedOrigins": ["https://myapp.com"],
  "gatewayBandwidthUsedMB": 1200,
  "gatewayIpWhitelist": ["203.0.113.1"],
  "createdAt": 1704067200000
}

TIP

Dharma 및 Bodhi 플랜에서는 gatewayUrlnull입니다. Nirvana로 업그레이드하여 전용 게이트웨이를 활성화하세요.