Cp/sso

Content-Type: application/json

Description coming soon

ParametersDescription
email_address* string The email address of the user
type* string On of the following types: `cp`, `shop`
ip_address* string For increased security you need to give the IP address that you allow access for. Only this IP address can use the url/token to login

* = required.
Colors indicate one of the fields must be entered, you can choose which one you want to use

Json example

{
    "email_address": "some@userdomain.nl",
    "type": "cp",
    "ip_address": "123.123.123"
}

Ok response

{
  "code": 1,
  "msg": [],
  "status": "ok",
  "result": {
    "id": "15677",
    "token": "cc2ea533a24cc92691a7aa1cbc6e1171944512c7b6db89bc87",
    "time_now": "2017-04-25 13:21:09",
    "time_until": "2017-04-25 13:26:09",
    "url": "https://powerpanel.io/api/login_ext.aspx?authtoken=cc2ea533a24cc92691a7aa1cbc6e1171944512c7b6db89bc87"
  }
}

Error response

{
  "code": 2,
  "msg": [
    "The email address, type, or both were not found"
  ],
  "status": "error"
}