Create account for setup
POST/v1/app/setup/register
Create a Beeper account after the user chooses a username and accepts the Terms of Use.
Body ParametersJSON
acceptTerms: true
Confirms that the user agreed to our terms of use and has read our privacy policy.
Create account for setup
curl http://localhost:23373/v1/app/setup/register \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $BEEPER_ACCESS_TOKEN" \
-d '{
"acceptTerms": true,
"leadToken": "leadToken",
"setupRequestID": "setupRequestID",
"username": "x"
}'{
"matrix": {
"accessToken": "accessToken",
"deviceID": "deviceID",
"homeserver": "homeserver",
"userID": "userID"
},
"session": {
"e2ee": {
"crossSigning": true,
"firstSyncDone": true,
"hasBackedUpRecoveryKey": true,
"initialized": true,
"keyBackup": true,
"secrets": {
"masterKey": true,
"megolmBackupKey": true,
"recoveryKey": true,
"selfSigningKey": true,
"userSigningKey": true
},
"secretStorage": true,
"verified": true,
"recoveryKeyGeneratedAt": 0
},
"state": "needs-login",
"matrix": {
"deviceID": "deviceID",
"homeserver": "homeserver",
"userID": "userID"
},
"verification": {
"id": "id",
"availableActions": [
"accept"
],
"direction": "incoming",
"methods": [
"qr"
],
"purpose": "login",
"state": "requested",
"error": {
"code": "code",
"reason": "reason"
},
"otherDevice": {
"id": "id",
"name": "name"
},
"otherUserID": "otherUserID",
"qr": {
"data": "data"
},
"sas": {
"emojis": "emojis",
"decimals": "decimals"
}
}
}
}Returns Examples
{
"matrix": {
"accessToken": "accessToken",
"deviceID": "deviceID",
"homeserver": "homeserver",
"userID": "userID"
},
"session": {
"e2ee": {
"crossSigning": true,
"firstSyncDone": true,
"hasBackedUpRecoveryKey": true,
"initialized": true,
"keyBackup": true,
"secrets": {
"masterKey": true,
"megolmBackupKey": true,
"recoveryKey": true,
"selfSigningKey": true,
"userSigningKey": true
},
"secretStorage": true,
"verified": true,
"recoveryKeyGeneratedAt": 0
},
"state": "needs-login",
"matrix": {
"deviceID": "deviceID",
"homeserver": "homeserver",
"userID": "userID"
},
"verification": {
"id": "id",
"availableActions": [
"accept"
],
"direction": "incoming",
"methods": [
"qr"
],
"purpose": "login",
"state": "requested",
"error": {
"code": "code",
"reason": "reason"
},
"otherDevice": {
"id": "id",
"name": "name"
},
"otherUserID": "otherUserID",
"qr": {
"data": "data"
},
"sas": {
"emojis": "emojis",
"decimals": "decimals"
}
}
}
}