Create an organisation
POST
/organisations
const url = 'https://kravos-orchestrator.onrender.com/organisations';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"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://kravos-orchestrator.onrender.com/organisations \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Creates an organisation with a default workspace and makes the caller its owner. Used during first-run onboarding when a user belongs to no organisation yet.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Examplegenerated
{ "name": "example"}Responses
Section titled “ Responses ”Default Response