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_idstringUnique ID for the org — generate a ULID
namestringDisplay name of the organization
abbreviationstringShort slug — lowercase, no spaces
admin_emailstringPrimary admin email
admin_namestringPrimary admin name
addressstringStreet address
statestringState / province
countrystringCountry
pin_codestringPostal 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
namestringDisplay name of the project
abbreviationstringShort slug — lowercase, no spaces
descriptionstringOptional description
database[].hoststringDatabase host
database[].portstringDatabase port (e.g. 3306 for MySQL)
database[].usernamestringDatabase username
database[].passwordstringDatabase password
database[].db_namestringDatabase name
database[].db_typestringDatabase type — e.g. mysql, postgres
database[].connect_timeout_secsintegerConnection timeout in seconds
database[].idle_timeout_secsintegerIdle connection timeout
database[].max_open_connectionsintegerMax open connections in pool
database[].max_idle_connectionsintegerMax 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