Skip to main content
POST
/
v1
/
keys
/
replenish
Replenish one-time pre-keys
curl --request POST \
  --url https://api.magne.app/v1/keys/replenish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "deviceId": "<string>",
  "oneTimePreKeys": [
    {
      "keyId": 123,
      "publicKey": "<string>"
    }
  ]
}
'
{
  "added": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
deviceId
string
required
oneTimePreKeys
object[]
required

Response

Success

added
integer