> For the complete documentation index, see [llms.txt](https://cylexdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cylexdev.gitbook.io/docs/cylex-phone/exports-and-events/server-exports/app-accounts.md).

# App Accounts

#### getAppData <a href="#user-content-getappdata" id="user-content-getappdata"></a>

```lua
-- app: string - app name ("twitter", "instagram", "frogly", "frogly", "swiper")
-- tag: string - account tag/username (without @)
-- return: table | false

-- Returns a table containing:
-- "identifier" (string)
-- "password" (string)
-- "nickname" (string)
-- "bio" (string)
-- "picture" (string)
-- "backgroundPicture" (string)
-- "createdDate" (number)
-- "verified" (boolean)
-- "gray-verified" (boolean)
-- "yellow-verified" (boolean)
-- "verified-time" (number)
-- "notifications" (table)
-- "followers" (table), 
-- "following" (table),
-- "connectedIdentifiers" (table)
-- NOTE: Additional fields may exist depending on the app (e.g., "admin", "xp", "level", "minigame", "photos", "age" etc.)

local accountData = exports['cylex_phone']:getAppData(app, tag)
```

#### changeAppData <a href="#user-content-changeappdata" id="user-content-changeappdata"></a>

```lua
-- app: string - app name (e.g. "twitter", "instagram", "frogly")
-- tag: string - account tag/username (without @)
-- key: string - data key to update
-- value: any - new value
-- return: none

-- Keys you can safely update: 
-- "nickname" (string)
-- "bio" (string)
-- "picture" (string)
-- "backgroundPicture" (string)
-- "verified" (boolean)
-- "gray-verified" (boolean)
-- "yellow-verified" (boolean)
-- "verified-time" (number)
-- "password" (string)

exports['cylex_phone']:changeAppData(app, tag, key, value)
```
