POST
/
api
/
auth
/
autosignup
Automatic user signup and authentication
curl --request POST \
  --url https://pria.praxislxp.com/api/auth/autosignup \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "john.doe@praxis-ai.com",
  "fname": "John",
  "lname": "Doe",
  "picture": "",
  "lxp_user_id": "1750665682",
  "lxp_user_type": 1,
  "lxp_partner_id": "1",
  "lxp_partner_name": "Edu School",
  "lxp_role_id": 123,
  "lxp_role_name": "Course 123",
  "institution_id": "bc6efd03-9d01-43e7-bd49-c4af1c54ae3a",
  "institution_url": "https://domain.edu",
  "client_ip": "134.123.234.234",
  "lticontextid": "https://domain.edu/course/i12",
  "digitaltwin": true
}'
{
  "token": "<string>",
  "profile": {
    "_id": "<string>",
    "email": "jsmith@example.com",
    "fname": "<string>",
    "lname": "<string>",
    "picture": "<string>",
    "accountType": "<string>",
    "permissions": [
      "<string>"
    ],
    "customerId": "<string>",
    "lxp_user_id": "<string>",
    "lxp_user_type": 123,
    "lxp_partner_id": "<string>",
    "lxp_partner_name": "<string>",
    "lxp_role_id": 123,
    "lxp_role_name": "<string>",
    "credits": 123,
    "creditsUsed": 123,
    "plan": "<string>",
    "status": "<string>",
    "trial_end": "2023-11-07T05:31:56Z",
    "trial_used": true,
    "current_period_end": "2023-11-07T05:31:56Z",
    "cancel_at_period_end": true,
    "referralId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "referrerPaid": true,
    "resetCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "invoices_urls": [
      "<string>"
    ],
    "remember_history_count": 123,
    "browser_voice": "<string>",
    "rt_voice": "<string>",
    "use_location": true,
    "pin_ui": true,
    "dark_mode": true,
    "max_dialogues": 123,
    "created": "2023-11-07T05:31:56Z",
    "__v": 123,
    "institution": {
      "_id": "<string>",
      "name": "<string>",
      "picture": "<string>",
      "picture_bg": "<string>",
      "picture_animated": "<string>",
      "credits": 123,
      "status": "<string>",
      "allowJoining": "<string>",
      "joiningAdminOnly": true,
      "publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "publicAuthorizedUrls": [
        "<string>"
      ],
      "ainame": "<string>",
      "contactEmail": "jsmith@example.com",
      "creditAward": 123,
      "poolCredits": true,
      "invoices_urls": [
        "<string>"
      ],
      "maxCompletionTokens": 123,
      "disableFileUploadForUser": true,
      "toolsDisabled": [
        "<string>"
      ],
      "ltiContextIds": [
        "<string>"
      ],
      "personalisationAsked": true,
      "locationEnabled": true,
      "rtEnabled": true,
      "rtAdminOnly": true,
      "displayAgentDetails": true,
      "assistantsDisabled": [
        "<string>"
      ],
      "disableAssistantsForUser": true,
      "rtVoice": "<string>",
      "maxFiles": 123,
      "questionType": "<string>",
      "creditsTotal": 123,
      "creditsUsagePct": 123,
      "id": "<string>"
    }
  }
}

Body

application/json

Response

Successful authentication with user profile and token

The response is of type object.