import {PublicApi} from '@ory/kratos-client'

const kratos = new PublicApi('http://127.0.0.1:4433/')
kratos.initializeSelfServiceVerificationViaAPIFlow()
  .then(({body}) => {
    console.log(body) // see the Raw HTTP tab for the payload
  })
