addKey

POST {{url}}/networkoperatorconsole/subscribers/addKey

  • Use this API to add a key for a subscriber
  • Optional : primary_key, UserPartofKey, KeyTag, StartDateTimeUTC.ISO8601, EndDateTimeUTC.ISO8601, ServicePlanID
  • If SubscriberToken is present, key will be added for that token.
  • If neither SubscriberToken or EmailAddress is not present, a new subscriber token will be returned and a key will be added for that token.
  • If EmailAddress is present without SubscriberToken, new account for email address will be created and SubscriberToken will be returned in response.
  • If EmailAddress is present with SubscriberToken, and subscriber token is not attached to any email, email address will linked to current subscriber token, and a new key will be added.
  • If header includes Partner-Integration-Channel - welcome email will be supressed, and JWT access to subscriber dashboard will be enabled at https://partnerid.wifikey.io/?authorizationToken=jwttoken

Request Body

{"AccessToken"=>"{{NetworkOperatorAdmin-AccessToken}}", "VenueID"=>"{{VenueID}}", "UnitID"=>"{{UnitID}}", "UnitBuilding"=>"{{UnitBuilding}}", "UnitFloor"=>"{{UnitFloor}}", "EmailAddress"=>"{{EmailAddress}}", "UserPartForNewKey"=>"{{UserPartForNewKey}}", "EndDateTimeUTC.ISO8601"=>"{{EndDate}}"}

HEADERS

KeyDatatypeRequiredDescription
originstring