Pocketm8
  1. User
Pocketm8
  • Auth
    • User
      • Sign In
        POST
      • Reset Password
        POST
      • Send SMS Code
        POST
      • Verify Code
        POST
      • Verify Token
        POST
      • Verify Challenge
        POST
  • 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 Files
    • Upload File
    • Delete File
    • Update File
  • Avatars
    • Upload Avatar file
  • Integrations
    • Matrix
      • Files
        • Link File
        • Unlink File
  1. User

Sign In

Developing
POST
/auth/user/sign-in
Allows users to authenticate using their email and password. Returns a JWT token on success, or prompts for MFA verification if required. If validation fails, a 400 Bad Request error is returned.

Request

Body Params application/json

Example
{
    "email": "string",
    "password": "string"
}

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 POST 'https://admin.letschat.ch/api/auth/user/sign-in' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "string",
    "password": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "data": {
        "accessToken": "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..16LBcJ1r8IW3LxRZ.vlBJt3S-MfKj3NytZbH4wtkxNjJyb8PHP2NLVh8B_RzZJf0oXHuS6aI_6UwEXYjRzAxDj5Tsx_2PxhJYotG7OcdAe8a8tCQujjC5u_VihpQgwrn8MoCWFmOceX11EClUM9RPHrkMS6sT4xRfcFSG_CyGjo07RD5N0ClBPAoZdjcU5onTcKsCgbKm8_TKXI6N2F45EikX_JeasJ6lc2rrZiXiPTYqHMmWwP2SX7hRtPfkgxZOVct8ETpwH95nlf9nk9gvX-Mu7favtXdwSV0wbDI1PU8DNU6mqnIjkDwxvH5771iBHglpSTXFwBweE5F_Gxcs2jUKXKymf47M4Md8jG-Ple3WZ_dkoA-qs5y74obR5gUkpz_ZH1qcfhdz3XVRT77C0uJ98h92R_AGl6p4CxK5chsno-g4gpnEg45u6QY4jn8lcsKvYkW8ZWySPwNCqnK9USVGFSY-sINWPB_yYGz-Cfh_5UNwZ5vEccLxLKzAfbRuFRIA1XcUnHtBXl5RGmv1cTCmolke4UNaf_nYxqwvBRJfFBqKakZG0VtNlxncX146v0I4icko0GFdIqtGmwncQjFzS_ctYS2z6I_H78pnCPiIDZVy2EhpgU_5JmQAxckV90Q0jpQB0cmrwq6ofzPUnNkktei0qvcCyoEuyB16Zqq4_ipVRr3CyhWAlJAu00KOst7U8trv7bxkDZ7shbQGDs4TH7pY728ztbcIceP1Jh0c.tjGztJQudVIav28qfwaCuA",
        "user": {
            "appWriteId": "6790d262001994ea595e",
            "id": "01JMT38K3BMVJV68D4J1AHKR6Y",
            "firstName": "Hubert",
            "lastName": "Burdach",
            "roleId": "admin",
            "avatar": null,
            "coreData": "<p>This is <strong>strong666</strong></p><p><i>This is italic</i></p><p><u>Underline</u></p><h1>H1</h1><p>normal tet</p><p></p><h2>H2</h2><p>text again</p>"
        },
        "chat": {
            "id": "urzRGrsgFAHgTewBA",
            "username": "3ef7d215-8e73-4751-9cdc-9d79d8697b5c",
            "token": "token"
        }
    }
}
🟠400Bad Request
🟢200Success - Requires MFA
Modified at 2025-03-07 11:07:35
Next
Reset Password
Built with