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

gatewayUrl Dharma और Bodhi प्लान के लिए null है। अपना समर्पित gateway सक्रिय करने के लिए Nirvana में अपग्रेड करें।