Create bridge login session
POST/v1/bridges/{bridgeID}/login-sessions
Start a temporary bridge login session to connect a new chat account or reconnect an existing bridge login. Omit loginID and accountID to connect a new account.
Create bridge login session
curl http://localhost:23373/v1/bridges/$BRIDGE_ID/login-sessions \
-X POST \
-H "Authorization: Bearer $BEEPER_ACCESS_TOKEN"{
"bridgeID": "bridgeID",
"loginSessionID": "loginSessionID",
"status": "waiting_for_input",
"account": {
"accountID": "accountID",
"bridge": {
"id": "id",
"provider": "cloud",
"type": "type"
},
"status": "connected",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
},
"capabilities": {
"foo": "bar"
},
"loginID": "loginID",
"network": "network",
"statusText": "statusText"
},
"accountID": "accountID",
"currentStep": {
"fields": [
{
"id": "id",
"initialValue": "initialValue",
"label": "label",
"optional": true,
"placeholder": "placeholder",
"type": "type"
}
],
"stepID": "stepID",
"type": "user_input",
"attachments": [
{}
],
"instructions": "instructions"
},
"error": {
"code": "code",
"message": "message",
"details": {
"foo": "bar"
}
},
"login": {
"bridgeID": "bridgeID",
"loginID": "loginID",
"removeScopes": [
"current-device"
],
"status": "connected",
"accountIDs": [
"string"
],
"statusText": "statusText",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
},
"loginID": "loginID"
}Returns Examples
{
"bridgeID": "bridgeID",
"loginSessionID": "loginSessionID",
"status": "waiting_for_input",
"account": {
"accountID": "accountID",
"bridge": {
"id": "id",
"provider": "cloud",
"type": "type"
},
"status": "connected",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
},
"capabilities": {
"foo": "bar"
},
"loginID": "loginID",
"network": "network",
"statusText": "statusText"
},
"accountID": "accountID",
"currentStep": {
"fields": [
{
"id": "id",
"initialValue": "initialValue",
"label": "label",
"optional": true,
"placeholder": "placeholder",
"type": "type"
}
],
"stepID": "stepID",
"type": "user_input",
"attachments": [
{}
],
"instructions": "instructions"
},
"error": {
"code": "code",
"message": "message",
"details": {
"foo": "bar"
}
},
"login": {
"bridgeID": "bridgeID",
"loginID": "loginID",
"removeScopes": [
"current-device"
],
"status": "connected",
"accountIDs": [
"string"
],
"statusText": "statusText",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
},
"loginID": "loginID"
}