/v0/login
POST
/v0/login
const url = 'http://localhost:3000/v0/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"johndoe@example.com","passphrase":"じゃすた・いぐざんぽぅ","captcha_token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/v0/login \ --header 'Content-Type: application/json' \ --data '{ "email": "johndoe@example.com", "passphrase": "じゃすた・いぐざんぽぅ", "captcha_token": "example" }'Request Body
Section titled “Request Body ” Media type application/json
object
email
required
Email address
string format: email
Example
johndoe@example.com passphrase
required
Passphrase
string
Example
じゃすた・いぐざんぽぅ captcha_token
required
Captcha token (e.g. reCAPTCHA, Cloudflare Trunstile)
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
authorization_token
required
Authorization token
string
Example
{ "authorization_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzZTE2NDQ4MzMwMDAwMDIiLCJpYXQiOjE2NDA5OTUyMDEsInJlZnJlc2hfdG9rZW4iOiJleUpoYkdjaU9pSklVekkxTmlJc0luUjVjQ0k2SWtwWFZDSjkuZXlKemRXSWlPaUl6WlRFMk5EUTRNek13TURBd01ESWlMQ0pwWVhRaU9qRTJOREE1T1RVeU1ERjkud2Q4cWJVcWowWGtCU1hud0FxM0lRYU1nQS1RTFd2MHVKU1NLX3BIVTZCYyJ9.mRUfLIYOGlLuC9D72zBriVvrHYrQgVHW7ntQ-bp5SHs"}Bad Request
Media type application/json
Failed to login.
object
error
required
Failed to login. Passphrase or Account Name is invalid.
string
Example
{ "error": "FAILED_TO_LOGIN"}Forbidden
Media type application/json
You can not login.
object
error
required
Your account is frozen, you can’t login.
string
Example
{ "error": "YOU_ARE_FROZEN"}Internal Server Error
Media type application/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}