Trade the setup token for a single-use admin invite link. It answers 404 once an admin exists.
POST
/setup
const url = 'https://example.com/api/v1/setup';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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 https://example.com/api/v1/setup \ --header 'Content-Type: application/json' \ --data '{ "token": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
string
Examplegenerated
{ "token": "example"}Responses
Section titled “ Responses ”The invite link of the first admin.
Media typeapplication/json
object
invite_url
required
string
Examplegenerated
{ "invite_url": "example"}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}