Storra Cloud

User Management

Read account info and upload preferences.

Get Profile

GET /users/me

curl -X GET https://cloud.storra.host/api/v1/client/users/me \
  -H "X-API-Key: sk_your_api_key_here"

Response (200):

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "email": "you@example.com",
  "username": "you",
  "discord_id": null,
  "discord_avatar": null,
  "profile_picture": null,
  "upload_preference": "always_public",
  "created_at": "2025-01-15T10:30:00.000Z",
  "updated_at": "2025-06-01T12:00:00.000Z",
  "subscription": {
    "plan": "Cloud Pro",
    "storage_used": "1.2 GB",
    "storage_limit": "25 GB"
  }
}

Update Preferences

PATCH /users/me/preferences

Body:

{
  "upload_preference": "always_private"
}

Allowed values: always_private, always_public, ask_every_time.

Setting always_private or always_public also updates your default file privacy.

Response (200):

{ "upload_preference": "always_private" }

Rate Limits

  • GET /users/me - 60 requests per minute
  • PATCH /users/me/preferences - 30 requests per minute
Was this page helpful?