GoodMem
ReferenceAPIREST APISystem

Initialize the system

Initializes the system by creating a root user and API key. This endpoint should only be called once during first-time setup. If the system is already initialized, the endpoint will return a success response without creating new credentials.

POST
/v1/system/init

Empty request body - no parameters required

Empty Object

Response Body

curl -X POST "http://localhost:8080/v1/system/init" \  -H "Content-Type: application/json" \  -d '{}'
{
  "alreadyInitialized": "true",
  "message": "System initialized successfully",
  "rootApiKey": "goodmem_f923b5e6a07e4fb0bdcaa6b7d4c8fea1",
  "userId": "550e8400-e29b-41d4-a716-446655440000"
}
Empty