/v0/accounts
POST
/v0/accounts
const url = 'http://localhost:3000/v0/accounts';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"@[email protected]","email":"[email protected]","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/accounts \ --header 'Content-Type: application/json' \ --data '{ "name": "@[email protected]", "email": "[email protected]", "passphrase": "じゃすた・いぐざんぽぅ", "captcha_token": "example" }'Request Body
Section titled “Request Body ” Media type application/json
object
name
required
Characters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
string
Example
email
required
string format: email
Example
passphrase
required
Passphrase must be a UTF-8 string excluding spaces, tabs, full-width spaces, newlines, and null characters.
string
Example
じゃすた・いぐざんぽぅ captcha_token
required
Captcha token (e.g. reCAPTCHA, Cloudflare Trunstile)
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
Account ID
string
name
required
Account name
string
email
required
Account email address
string format: email
Example
{ "id": "38477395",}Bad Request
Media type application/json
Conflict
Media type application/json
Internal Server Error
Media type application/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}