API Reference
Profile

Profile

GET

/v1/profile

Get information about the authenticated user and their account.

Example

curl https://api.hypersave.io/v1/profile \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "profile": {
    "id": "user_abc123",
    "email": "user@example.com",
    "name": "John Smith",
    "company": "Acme Corp",
    "tier": "pro",
    "createdAt": "2024-01-01T00:00:00Z",
    "settings": {
      "defaultSpace": "space_main",
      "timezone": "America/New_York",
      "language": "en"
    },
    "limits": {
      "requestsPerHour": 1000,
      "monthlyRequests": 100000,
      "maxStorageMb": 10000,
      "maxMemories": 100000
    },
    "currentUsage": {
      "memoryCount": 1523,
      "storageMb": 234,
      "monthlyRequests": 4521
    }
  }
}

Response Fields

FieldTypeDescription
idstringUser ID
emailstringUser email
namestringDisplay name
companystringCompany name
tierstringSubscription tier: free, pro, enterprise
createdAtstringAccount creation date
settingsobjectUser preferences
limitsobjectAccount limits based on tier
currentUsageobjectCurrent usage statistics

Subscription Tiers

TierRequests/HourMonthly RequestsStorage
Free10010,0001 GB
Pro1,000100,00010 GB
EnterpriseUnlimitedUnlimitedUnlimited

Error Response

Invalid API Key

{
  "success": false,
  "error": "UNAUTHORIZED",
  "message": "Invalid API key"
}