Pocketm8
  1. Profile
Pocketm8
  • Auth
    • User
      • Sign In
      • Reset Password
      • Send SMS Code
      • Verify Code
      • Verify Token
      • Verify Challenge
  • Profile
    • Get Profile
      GET
    • Update Profile
      PATCH
    • Update Email
      PUT
    • Update Phone
      PUT
    • Resend Code
      POST
    • Update Avatar
      POST
    • Verify Code
      POST
  • Users
    • Get Users
      GET
  • Contacts
    • Get Contact
      GET
    • Get Contacts
      GET
  • Tasks
    • Create Task
      POST
    • Delete Task
      DELETE
    • Update Task
      PUT
    • Update Task Status
      POST
    • Get Task
      GET
    • Get Tasks
      GET
  • Relations
    • Task Edit
      GET
    • File Edit
      GET
  • Files
    • Get File
      GET
    • Get Files
      GET
    • Upload File
      POST
    • Delete File
      DELETE
    • Update File
      PATCH
  • Avatars
    • Upload Avatar file
  • Integrations
    • Matrix
      • Files
        • Link File
        • Unlink File
  1. Profile

Get Profile

Developing
GET
/profile
This endpoint retrieves the authenticated user’s profile based on the provided authentication token. It returns user details.

Request

None

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://admin.letschat.ch/api/profile'

Responses

🟢200Success
application/json
Body

Example
{
    "data": {
        "user": {
            "id": "01JMQRVCM4P24JWVKNBGB7S9ER",
            "appWriteId": "679205b3001b910b4423",
            "chatId": "kqdwoW8NjWAkBPZgF",
            "chatUsername": "pm8-admin-1",
            "firstName": "Hubert",
            "lastName": "Burdach",
            "roleId": "admin",
            "locationId": null,
            "birthdate": "1988-06-01T23:00:00.000Z",
            "zip": "87-100",
            "city": "Toruń",
            "address": "Włocławska",
            "language": "de",
            "comments": "",
            "coreData": "",
            "phone": "+41111111",
            "username": "Jean Freuler",
            "email": "email@email.ch",
            "avatar": {
                "topType": "LongHairMiaWallace",
                "accessoriesType": "Medal04",
                "hairColor": "Blonde",
                "facialHairType": "Blank",
                "clotheType": "ShirtVNeck",
                "eyeType": "StarStruck06",
                "eyebrowType": "UpDownNatural",
                "mouthType": "Default",
                "skinColor": "Tanned",
                "clotheColor": "Blue01",
                "facialHairColor": "Black",
                "background": "blank",
                "frame": "Blank"
            },
            "createdAt": "2023-01-10T19:43:22.075Z",
            "updatedAt": "2025-02-22T22:05:23.925Z",
            "createdById": null,
            "updatedById": null
        },
        "achievements": [
            {
                "id": 5,
                "name": "Background 05",
                "value": "Background05",
                "type": "background",
                "url": "/avatar/Background05.png"
            },
            {
                "id": 20,
                "name": "StarStruck 06",
                "value": "StarStruck06",
                "type": "eyeType",
                "url": "/avatar/StarStruck06.png"
            },
            {
                "id": 25,
                "name": "Medal 04",
                "value": "Medal04",
                "type": "accessoriesType",
                "url": "/avatar/Medal04.png"
            },
            {
                "id": 1,
                "name": "Background 01",
                "value": "Background01",
                "type": "background",
                "url": "/avatar/Background01.png"
            }
        ]
    }
}
Modified at 2025-02-23 17:58:08
Previous
Verify Challenge
Next
Update Profile
Built with