Skip to main content
POST
Instantiate Scaffold Template

Authorizations

Authorization
string
header
required

Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing, malformed, unknown, revoked, inactive or expired key returns 401; a key without the permission, scope or plan an operation needs returns 403.

Path Parameters

template_id
string
required

Scaffold template ID

Body

application/json

Keys this body does not declare are refused with 422 extra_forbidden naming the accepted keys (since 2026-11-02).

Request to instantiate a scaffold template.

Only namespace_name is required. Other names use scaffold defaults.

Options: include_sample_data: If true, clone from demo namespace with sample data. If false (default), create empty resources.

Example: # Empty scaffold {"namespace_name": "my_app"}

namespace_name
string
required

Name for the new namespace (required, must be unique)

Required string length: 3 - 20
namespace_description
string | null

Optional description for the namespace

Maximum string length: 1000
bucket_name
string | null

Override default bucket name from scaffold

Required string length: 1 - 100
collection_name
string | null

Override default collection name from scaffold

Required string length: 1 - 100
retriever_name
string | null

Override default retriever name from scaffold

Required string length: 1 - 100
include_sample_data
boolean
default:false

If true, include sample data from demo namespace. If false, create empty resources.

Response

Successful Response

Response after successful scaffold instantiation.

Contains IDs and names of all four created resources. Use these IDs for subsequent operations:

  • Upload data: POST /v1/buckets/{bucket_id}/objects
  • Process: POST /v1/collections/{collection_id}/batches
  • Search: POST /v1/retrievers/{retriever_id}/retrieve
namespace_id
string
required

Created namespace ID (ns_xxx)

namespace_name
string
required

Created namespace name

bucket_id
string
required

Created bucket ID (bkt_xxx)

bucket_name
string
required

Created bucket name

collection_id
string
required

Created collection ID (col_xxx)

collection_name
string
required

Created collection name

retriever_id
string
required

Created retriever ID (ret_xxx)

retriever_name
string
required

Created retriever name

template_id
string
required

Scaffold template ID used

status
string
default:created

Status: 'created' for a synchronous (empty) instantiation, 'cloning' when sample data is cloning in the background

task_id
string | null

Background clone task id when status='cloning' — poll the task, or GET the namespace and read clone_status, to track sample-data progress. Null for synchronous (empty) instantiation.

created_at
string<date-time>

UTC timestamp of creation