User API
authenticated उपयोगकर्ता की प्रोफ़ाइल और अकाउंट जानकारी प्राप्त करें।
User API authenticated उपयोगकर्ता की प्रोफ़ाइल और अकाउंट विवरण तक पहुंच प्रदान करता है।
सभी response bodies snake_case फ़ील्ड नामों का उपयोग करते हैं।
प्रोफ़ाइल प्राप्त करें
/api/v1/userवर्तमान authenticated उपयोगकर्ता की प्रोफ़ाइल और अकाउंट जानकारी लौटाता है।
Response Fields
idstringयूनिक user ID
emailstringउपयोगकर्ता का ईमेल पता
first_namestring or nullउपयोगकर्ता का पहला नाम
last_namestring or nullउपयोगकर्ता का अंतिम नाम
language_preferencestringपसंदीदा भाषा कोड (डिफ़ॉल्ट: "en")
created_atstringISO 8601 अकाउंट निर्माण टाइमस्टैम्प
updated_atstringISO 8601 अंतिम अपडेट टाइमस्टैम्प
plan_tierstringवर्तमान प्लान: "entrepreneur", "pro", या "business"
subscription_statusstring or nullStripe subscription स्थिति (जैसे, "active", "past_due", "canceled")
current_period_endstring or nullवर्तमान बिलिंग अवधि की ISO 8601 समाप्ति तिथि
storage_used_bytesintegerबाइट्स में कुल फ़ाइल स्टोरेज उपयोग
subdomainstring or nullकस्टम subdomain (जैसे, acme.nueform.io के लिए "acme")। Pro प्लान और उससे ऊपर।
custom_domainstring or nullकस्टम domain (जैसे, "forms.acme.com")। Pro प्लान और उससे ऊपर।
custom_domain_verified_atstring or nullISO 8601 टाइमस्टैम्प जब कस्टम domain verify किया गया था। लंबित होने पर null।
Response
{
"id": "665a0a1b2c3d4e5f6a7b8c9d",
"email": "alice@example.com",
"first_name": "Alice",
"last_name": "Johnson",
"language_preference": "en",
"created_at": "2025-11-01T10:00:00.000Z",
"updated_at": "2026-02-28T08:15:00.000Z",
"plan_tier": "pro",
"subscription_status": "active",
"current_period_end": "2026-03-15T00:00:00.000Z",
"storage_used_bytes": 52428800,
"subdomain": "acme",
"custom_domain": "forms.acme.com",
"custom_domain_verified_at": "2026-01-20T14:30:00.000Z"
}
कोड उदाहरण
curl -X GET "https://api.nueform.io/api/v1/user" \
-H "Authorization: Bearer YOUR_API_KEY"
Error Responses
इस endpoint द्वारा लौटाए गए मानक error responses।
Error Codes
401UnauthorizedAPI key गायब या अमान्य है
404Not Foundउपयोगकर्ता नहीं मिला
500Server ErrorInternal server error
Error उदाहरण
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key",
"status": 401
}
}