auth

Verify a one-time code and mint a CLI API key

Same verification as /auth/otp/verify, but instead of a browser session it returns a new mbk_... API key (named "CLI") for the verified user. No cookie is set.

post/auth/otp/cli-exchange

Request

  • Base URL: https://mbag.ai/api
  • URL: https://mbag.ai/api/auth/otp/cli-exchange
  • Auth: none required

Request body

codestring required
emailstring required

Response

Verified; API key issued.

api_keystring required

Bearer key, prefixed mbk_.

Changes

No recorded changes to this operation across all 1 revision of this API.