繁體中文
繁體中文
Appearance
繁體中文
繁體中文
Appearance
GET /user/profile
擷取經過驗證的使用者資料,包括目前方案和儲存使用情況。

curl https://api.ipfs.ninja/user/profile \
-H "X-Api-Key: bws_your_api_key_here"200 OK {
"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 方案的 gatewayUrl 為 null。升級到 Nirvana 以啟用您的專屬閘道。