SumoRouter
SumoRouter Customer API

Setup

Server

First-run wizard of a fresh self-hosted instance.


Check whether first-run setup is needed

GET
https://ai.brandkamu.id
/api/setup/status

Public. needs_setup is true until an admin account exists; a frontend should then show a setup wizard.

Check whether first-run setup is needed › Responses

200

Setup status.

needs_setup
​boolean · required

Create the first admin (first run only)

POST
https://ai.brandkamu.id
/api/setup

Creates the owner/admin account of a fresh instance. Refused with 403 once any admin exists. Limited to 5 attempts per IP per minute. The admin must enrol in two-factor authentication before getting a session: the response is an MFA challenge with setup: true; continue with POST /api/auth/mfa/setup and POST /api/auth/mfa/verify as described under POST /api/auth/login.

Create the first admin (first run only) › Request Body

name
​string · maxLength: 80 · required

1–80 characters.

email
​string · email · required
password
​string · minLength: 10 · required

Create the first admin (first run only) › Responses

The two-factor enrolment challenge.

​MfaChallenge · required