POST /bootstrap
Projects
POST /bootstrap
Creates a project with tables, indexes, seed records, and optional Project API Tokens in one request.
POST
POST /bootstrap
Creates a project and loads its starting schema/data in one request.
Use this when your backend wants to spin up a new ZangTable project from a template instead of making separate calls for project creation, table creation, indexes, seed records, and token creation.
Full request:
Error or alternate response:
Endpoint details
Bearer
pat_... (Project API Token). The new project is created on the same ZangTable account as the Project API Token. Keep this token on your backend/server.true for a successful response and false for an error response.Endpoint-specific response data when
ok is true; null on errors.Error code and message when
ok is false; null on success.Request identifier you can use when troubleshooting a specific API call.
Authentication
Project API Token.Parameters
Body fields:project_slug(string, required): New project slug. Use lowercase letters, numbers, hyphens, or underscores.project_name(string, required): Human-readable project name.initial_project_user(object, required): Initial project user withusernameandpassword.tables(array, optional): Tables to create. Each table may includetable_name,display_name,columns,seed, and table-levelindexes.indexes(array, optional): Additional project-level indexes. Each index includestable_name,columns, optionalindex_name, and optionalunique.project_api_tokens(array, optional): Project API Tokens to mint for the new project. Each item includesaccount_user_id, optionaltoken_name, and optionalproject_username.
column_nameorname(string, required)column_typeortype(string, optional):INTEGER,REAL,TEXT,BLOB, orANY. Defaults toTEXT.is_primaryorprimary(boolean, optional)is_uniqueorunique(boolean, optional)is_nullableornullable(boolean, optional)default_valueordefault(scalar or null, optional)
Notes
- The request creates one project on the same account as the Project API Token you use.
project_slugmust be unique and cannot already have project storage.- Account plan project limits still apply.
- Seed values must be scalar values or
null. - Seed records may only reference columns declared for their table.
project_api_tokens.account_user_idmust be an active user on the same ZangTable account.- The bootstrap endpoint currently creates tokens only for the
initial_project_user. - Raw Project API Tokens are only returned in the creation response. Store them securely.