GET /login

Submit your login credentials to generate a session id which can be used for validating requests.

Gets the various pieces of information useful for generating a login page.

Responses

  • 200 application/json

    Various pieces of information useful for rendering a login page.

    Hide response attributes Show response attributes object
    • captcha string Required

      A base64 encoded image to use for rendering the alternateive captcha.

    • language string

      The desired langauge to render the site with.

    • counts object Required

      Order counts per module.

      Hide counts attributes Show counts attributes object
      • vps integer(int32) Required

        The number of total VPS orders that have been placed in our billing system.

      • websites integer(int32) Required

        The number of total website orders that have been placed in our billing system.

      • servers integer(int32) Required

        The number of total server orders that have been placed in our billing system.

  • 403 application/json

    Error response to a login request.

    Hide response attributes Show response attributes object
    • message string
    • field string
GET /login
curl \
 --request GET 'https://my.interserver.net/apiv2/login'
Response examples (200)
{
  "logo": "//my.interserver.net/images/logos/mystaging.png",
  "counts": {
    "vps": 290201,
    "servers": 27940,
    "websites": 205172
  },
  "captcha": "data:image/jpeg;base64,/9j/",
  "language": "en-US"
}
Response examples (403)
{
  "field": "2fa",
  "message": "missing 2fa"
}