Skip to main content

Getting Started

Before using the Auto API, you need to create an Organization and a Project. The Project holds your database connection. All subsequent API calls use the IDs generated here.

Setup Flow​


Step 1 — Create Organization​

Creates a new organization. If the org_id already exists, returns 208 Already Reported — this is safe to ignore and proceed to Step 2.

Request Fields​

FieldTypeRequiredDescription
org_idstring✅Unique ID for the org — generate a ULID
namestring✅Display name of the organization
abbreviationstring✅Short slug — lowercase, no spaces
admin_emailstring✅Primary admin email
admin_namestring✅Primary admin name
addressstring✅Street address
statestring✅State / province
countrystring✅Country
pin_codestring✅Postal code

Response​

CodeMeaning
201 CreatedOrganization created successfully
208 Already ReportedOrg with this org_id already exists — safe to proceed

Step 2 — Create Project​

Creates a project under your organization and registers the database connection. After creation, note the X-Project-Id and X-Space-Id returned — you will need them for all Auto API calls.

Request Fields​

FieldTypeRequiredDescription
namestring✅Display name of the project
abbreviationstring✅Short slug — lowercase, no spaces
descriptionstring❌Optional description
database[].hoststring✅Database host
database[].portstring✅Database port (e.g. 3306 for MySQL)
database[].usernamestring✅Database username
database[].passwordstring✅Database password
database[].db_namestring✅Database name
database[].db_typestring✅Database type — e.g. mysql, postgres
database[].connect_timeout_secsinteger✅Connection timeout in seconds
database[].idle_timeout_secsinteger✅Idle connection timeout
database[].max_open_connectionsinteger✅Max open connections in pool
database[].max_idle_connectionsinteger✅Max idle connections in pool

Response​

CodeMeaning
201 CreatedProject created — response includes project_id and space_id
208 Already ReportedProject abbreviation already exists under this org