obtain-token

POST /api/obtain-token

Changed on

If we don't restrict this to JSON-only, the Python generated code tries to both send form-multipart and JSON.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Request body

usernamestring required
passwordstring required
otpstring

Response

tokenstring required

Changes

    • breaking

      added to the oneOf[#/components/schemas/ObtainTokenCreateValidationError]/errors/items response property oneOf list for the response status

    • info

      added the new optional request property otp

    • info

      added otp discriminator mapping keys to the oneOf[#/components/schemas/ObtainTokenCreateValidationError]/errors/items response property for the response status