Skip to content

Payloads

Benny Neugebauer edited this page Nov 2, 2016 · 8 revisions

For interal use

  • Payloads can be tested on Swagger UI
  • Our Backend API can be found here

Registration

/clients (POST)

{
	"class": "desktop",
	"cookie": "webapp@1224301118@temporary@1472638149000",
	"label": "Windows 10",
	"lastkey": {
		"id": 65535,
		"key": "pQABARn//wKhAFggQ6slsc+14qRA6zyS1KtJayVWrOZFaIGCNooqVsBskSUDoQChAFggCHGILfr4rS+hc7gthheAGGMg943xeIb7X052U3Odj9AE9g=="
	},
	"model": "Chrome (Temporary)",
	"password": "topsecret",
	"prekeys": [{
		"id": 0,
		"key": "pQABAQACoQBYIKstj/cuSgkfcKYhwtbqQPx/gui8rpi257ePIy1mQLU6A6EAoQBYIAhxiC36+K0voXO4LYYXgBhjIPeN8XiG+19OdlNznY/QBPY="
	}],
	"sigkeys": {
		"enckey": "3sVENBwY9d+fC7+JzB4k7j7f7f6Wy/ioO76rrp0QvJQ=",
		"mackey": "3sVENBwY9d+fC7+JzB4k7j7f7f6Wy/ioO76rrp0QvJQ="
	},
	"type": "temporary"
}

Send Text Message

{
	"sender": "ff4d4e2b8f41858d",
	"recipients": {
		"532af01e-1e24-4366-aacf-33b67d4ee376": {
			"eafee410b3a12001": "owABAaEAWCAt5sTrrkg1bIUdr5U9pFpCH1BzviUKdJv/QSFJjd+fnwJYbgGlAFC+0mE/GW9+MXOe7vs9OW3oAQACAAOhAFggg/tMXxv30e2XMZhsPssu6h8XhgC3g9NDeTTZ08MUyAoEWC7mwAzxluVt5U4H+3bRRFCUKtZNJE9vcsC0pM0zPY1IOL5+eFLPwzraXg50kmIn",
			"e4402104b8602dd3": "owABAaEAWCBrQhH5LSw7TwJzDVJSDXw9yCI6JU3IZZ04miBSaMiC8wJYwAKkABn//wGhAFgguZL/y72CcQaPywe331n75OXEDoSqCmDL8uF133fo43MCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQ19j1/MzwzQA/OU94D+rv3wEAAgADoQBYIC6NMEunRR5IG+ct/Mch829QRPw7aTnF7EpWyHEqf7qUBFgunOdzQGpRANY2QJbflEb2sZYwiQatRa/7P08mzqyLreHI0A6G7ejQPo8cvXiBdA==",
			"c86a244fc12655ea": "owABAaEAWCDpc6sS0YNazVb4GzyeUKRKFnltYBGRVWPHCkm6m1cpkQJYwAKkABn//wGhAFggj4+7wZ0lQDy8NnGJgiXF0lsp4uxMQujsJeXyhIbVK3MCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQjgosdeR4G9AVt1tpUJ3eXAEAAgADoQBYIH6oKkSqSW/wxeQjVLAAls/C+UjwtzRoVy8b1scBQhTmBFgugzvjVRojk771KeIy5/yXnSk7SDtev1SQ0bZ4R1elvXjsCvz/GzLnN6OW+53DRw==",
			"d13a2ec9b6436122": "owABAaEAWCAqDHDwYtoyNQL1R0+brX/1M9xhnk1cccdifMmlNTPNyAJYwAKkABn//wGhAFggcC9cor6uNK+jPAWdr+ji2pYtPlAqUFgBWpvTPUas/NwCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQBiKIIdSXRjBVUytzbXD3IwEAAgADoQBYIPdt/rfTjSQQJFIrkBE12+a5oifx2c0bkuHeyCAJz7jNBFguQ0XmghZvQAjCqI69ZDipMg9XBo308RBOvXS7VL8hFycC1FaXLX4+cPcX5z0plg==",
			"ae2f05b82e7d0755": "owABAaEAWCC+mxpE9041JYhxv2pt0q49j+n0NvXl64k7NC4KcMsaogJYwAKkABkEcAGhAFggz9iEQ1JVWRTOVcKkwJbDKvPjYLO2v4hp8agbbizzZSECoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQDKd7Jz+b+EO5oLyeoFjIlAEAAgADoQBYIFv0myTSClvCFya9e0Esy8iI6MXe4QLv7I9rwHKkOj1OBFguKv3q1/JOxkK3/hYAgnJ7SJbYBnmqBJM5OgxLNZivknqWglJO6r6A7A7Z73RLvg==",
			"aaaa46ec8139d90b": "owABAaEAWCAzI1Bk806U1BTfYCuk5/bKgwYhzreqcYE5cmcGPT+8wwJYwAKkABn//wGhAFggNR+91CSBjFNfICJVTv4i83um2jvuWiF4ACijZPVJttcCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQawUPnngrh06FGSi+ysv/GQEAAgADoQBYIGQA+9L4ZpMY0rsoNaUMBJdeI2GUmP7MLt7nAyor46f7BFguDZ0KVFwkWAyKTUHRxx9V8cLmPXp6mSYdl31dxUesKI6sU0vZxdINWa5ciuOQEw==",
			"d87cdd1264521217": "owABAaEAWCBQDf2HMAfSsOhfr/y7jHDyL8JTrk25nMEg6fzBr39yawJYwAKkABn//wGhAFggUGGx8vluYLMvCWkEnxn5YHaSCaFi5hOUyID/mhgjPrUCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQ+odhBtKcmsJG/tkzeQ3gTgEAAgADoQBYILyeHIWbCL7bAhL0TXh/gyqNrBnKztik655eqCxV109GBFguDjv3fvrZyD7QQDw0/pHed9yeDwb8wMOF2zAvbNrmaH6Ji/fayYFwE4geEjU/Sg=="
		},
		"8b497692-7a38-4a5d-8287-e3d1006577d6": {
			"768c43c6fe2e56ad": "owABAaEAWCBSVaob6D8SIEBIrn+vjxPZ8napFK9u6aZN/SdlNMpdeQJYwAKkABn//wGhAFggvXTnXkwOjolXlQydgXmcvTXqSBMBQRmc+SKYLZuy3mMCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQLN897x1cdFvB1DNU3UJ6wQEAAgADoQBYIE7m5y+3ClbuSDzB3nxHRFEYRDhZLfW548DnIsES0K0rBFguznTargka3BtRtvAyvTaGJ0mVIet8tyAiEor5gsuNpq4pX7LbXxDZpjDigjBTvA==",
			"3e54cbc96a8c0cc2": "owABAaEAWCBnElCQ7vvzp5FKZqpXs97fSdxWdctmflz9LmI5JBrxLgJYwAKkABn//wGhAFggQMPqhUO4qNfvBrhq4ElBlhJhmdk6YsJoowj5sD0fpGgCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQiFFhtmmUSMpnWkNIMkudswEAAgADoQBYIJP47yWOuhzcRHFCvKh9mWftLHpjlCOMrMtrinXcC0MdBFguxfJFzHBIPHplirc9EP1ADvb8sxlS3taQXRi01hh/kdbP/MfMGvXTYDlbR0SOdA==",
			"352777cd4ccc38ec": "owABAaEAWCDQ15Z+YIc3vnkD7FfIzhtgFq8GQanDNkLGJpZaZ/vC4AJYwAKkABn//wGhAFggmcf3KbsxxgTh551C87lX2gIFBl7R6T6fw4y3MaSuSmgCoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQ1PmT1K+FRaifdIbktuGcegEAAgADoQBYIA7k4KM1F12qubpOOpqNnDvMWEYXulCtPohRG+2zhOPsBFgux0ysGPRbb7Mv8+wbx9Jce1Xmu2+giTJ8KI8scKoecY+O067jhCpedB/vq2JzGA==",
			"3997f42c02b6dccc": "owABAaEAWCBxsIROqFilCsb2sMKlHp+kTGE9EOGbQ2q5BKHeSKTglAJYwAKkABn//wGhAFggc4LSDsZBlslFy3PLcNtPXkf+6BaS7jIo6wnIB/3lueECoQChAFggwD2xvtyXeYg1TVLYOMnpTfPwB5whwmfUn41Q4bPi20QDpQBQ3PdIqKNXtd2znfcXnHryNAEAAgADoQBYIKFTI6brWMQRmIzts/B1KW0uAPHvCsbIIEKfcts3D6NOBFgu+6HH9/EYZrc08ou6Sdp1AC3A2YXpchFnNV/PNerBeNaLxF9wBenYm8lbEa9Lnw==",
			"6cf187c769749243": "owABAaEAWCDCTIqTb4zCmxL+nnCeqQCWqKLBrs5KuxQKgiuUewBU0gJYwAKkABn//wGhAFggDTe1wG6dKd+O+8/+kckMK2VE2nbWrgJlNeQH/r5dTpkCoQChAFggwD2xvtyXeYg1TVLY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1mP50yIPzqb3HlA+zRBFgu9teyyn99NtBUOv6cBEkrUzz9nvJBB6G+N85cdc20inuTcTy4/SmTwYWgXy1/eA=="
		}
	}
}

WebSocket

Message format on the socket

 {
 	payload: [{
 		conversation: '594f0908-b9b7-40f9-a06a-45612145e64e',
 		time: '2016-09-27T15:35:44.625Z',
 		data: [Object],
 		from: '532af01e-1e24-4366-aacf-33b67d4ee376',
 		type: 'conversation.otr-message-add'
 	}],
 	transient: false,
 	id: '0e19f580-84c8-11e6-bfff-22000a62a54c'
 }

Events

user.connection

  • status: cancelled|pending
{
	"connection": {
		"status": "pending",
		"conversation": "d561d45a-1ac1-4ec9-988d-95c9074d64b2",
		"to": "cf3dbb707f2e-4136-a2f2-841e635661da",
		"from": "062418ea-9b93-4d93-b59b11aba3f702d8",
		"last_update": "2016-11-02T09:46:45.774Z",
		"message": "Hallo Webapp Bot,\nbitte füge michals Kontakt hinzu.\nChrome Benny"
	},
	"user": {
		"name": "Chrome Benny"
	},
	"type": "user.connection"
}