> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm model upload

> Confirm a model upload after the S3 upload completes.

This is step 3 of the presigned URL workflow. Call this after
uploading the model archive to the presigned URL.

The service will:
1. Verify the S3 object exists
2. Validate the archive structure
3. Create the model record

**Models:** Models are your organization's own model weights, uploaded as an archive and available to every namespace in the organization. Custom extractors load them, so your fine-tuned models can run during collection processing and retrieval. [Read the guide](https://mixpeek.com/docs/extract/custom-extractors).



## OpenAPI

````yaml post /v1/models/uploads/{upload_id}/confirm
openapi: 3.1.0
info:
  title: Mixpeek API
  description: >-
    This is the Mixpeek API, providing access to various endpoints for data
    processing and retrieval.
  termsOfService: https://mixpeek.com/terms
  contact:
    name: Mixpeek Support
    url: https://mixpeek.com/contact
    email: info@mixpeek.com
  version: '0.82'
servers:
  - url: https://api.mixpeek.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Account
    description: >-
      **Account:** The account endpoint tells an API key who it is: the
      organization it belongs to, the plan, the key's own name, type and
      permissions, and the rate limits that apply. Call it first when a script
      or agent starts, to confirm which organization and permissions it is
      working with before it touches namespaces or other resources. [Read the
      guide](https://mixpeek.com/docs/production/security).
  - name: Adhoc Retrievers
    description: >-
      **Adhoc Retrievers:** An ad-hoc retriever is a retriever configuration you
      run once without saving it. You send `stages`, `collection_identifiers`
      and `inputs` in the request body, and Mixpeek runs them like a saved
      retriever and keeps the execution in an ad-hoc history. Use it to test a
      search pipeline before you create a retriever. [Read the
      guide](https://mixpeek.com/docs/retrieve/retrievers).
  - name: Agent Sessions
    description: >-
      **Agent Sessions:** An agent session is a conversation with Mixpeek's
      built-in agent, which uses tools to search your namespace's data and
      manage its resources, such as collections. You send messages and receive
      the replies as Server-Sent Events. Actions that change data wait for your
      confirmation. [Read the guide](https://mixpeek.com/docs/overview/agents).
  - name: Alerts
    description: >-
      **Alerts:** An alert watches your data and notifies you through webhook,
      Slack or email channels when its condition is met. A retriever alert runs
      one of your retrievers against newly ingested documents and fires when it
      finds matches; a system alert checks a built-in health metric against a
      threshold. Alerts belong to one namespace, or to the organization with a
      `namespace_selector` that picks the namespaces they cover. [Read the
      guide](https://mixpeek.com/docs/enrich/alerts-and-triggers).
  - name: Analytics
    description: >-
      **Analytics:** Analytics endpoints report how your Mixpeek resources
      perform, built from the requests and processing events your organization
      generates. They cover retriever latency and cache use, ingestion and
      extractor speed, bucket storage and sync health, collection growth and
      failures, cluster and taxonomy runs, and which filter fields deserve an
      index. Use them to find slow stages, failing documents and missing
      indexes. [Read the guide](https://mixpeek.com/docs/production/monitoring).
  - name: Annotations
    description: >-
      **Annotations:** An annotation is a human decision recorded on one
      document, such as `approved` or `rejected`, with optional `confidence`,
      `reasoning` and a structured `payload`. It can link back to the retriever
      run that surfaced the document. Every edit keeps the previous version, so
      you can review a decision's history and evaluate against a fixed set of
      judgments. [Read the guide](https://mixpeek.com/docs/enrich/annotations).
  - name: Apps
    description: >-
      **Apps:** An App is a web application that Mixpeek hosts at
      `https://{slug}.mxp.co`, built from a zip bundle you upload or a connected
      GitHub repository. Apps usually call your retrievers to put a search or
      browsing interface in front of your data. Each deploy creates a version
      you can restore, and an App can have custom domains and its own signed-in
      users. [Read the guide](https://mixpeek.com/docs/tools/apps).
  - name: Authentication
    description: >-
      **Authentication:** Authentication endpoints let a workload prove its
      identity without a stored API key. A workload running on an OIDC platform,
      such as Vercel or GitHub Actions, trades the token its platform issued for
      a short-lived Mixpeek API key, after you register that platform as a
      workload identity provider on your organization. [Read the
      guide](https://mixpeek.com/docs/production/security).
  - name: BYO Documents
    description: >-
      **BYO Documents:** BYO (bring your own) documents are records you write
      straight into a namespace with vectors you computed yourself, with no
      bucket, batch or extractor involved. You create a standalone namespace,
      upsert up to 1000 documents per call, and search them with retrievers.
      Promoting the namespace to managed mode keeps those documents and lets you
      map their vector indexes to Mixpeek's inference services. [Read the
      guide](https://mixpeek.com/docs/manage/vector-store).
  - name: Batches
    description: >-
      **Batches:** A batch is a set of objects from one bucket that you submit
      together so the collections fed by that bucket process them into
      documents. These endpoints reach any batch in your organization by
      `batch_id` alone, without naming its bucket, and show the shared
      processing queue batches wait in. [Read the
      guide](https://mixpeek.com/docs/ingest/buckets).
  - name: Bucket Batches
    description: >-
      **Bucket Batches:** A batch is a set of objects from one bucket that you
      submit together so the bucket's collections run their extractors on them
      and write documents. A batch starts in `DRAFT`, runs in tiers (tier 0
      reads bucket objects, later tiers read upstream collections), and records
      progress, failures and cost you can inspect, retry or cancel. [Read the
      guide](https://mixpeek.com/docs/ingest/buckets).
  - name: Bucket Objects
    description: >-
      **Bucket Objects:** An object is one item stored in a bucket: a file or
      other blob plus the fields and metadata you attach to it. Collections read
      objects and turn them into searchable documents, and each document keeps a
      link back to the object it came from. [Read the
      guide](https://mixpeek.com/docs/ingest/buckets).
  - name: Bucket Syncs
    description: >-
      **Bucket Syncs:** A bucket sync copies files from an external storage
      connection, such as S3, Google Drive or SharePoint, into a bucket as
      objects, once or on a polling schedule. Each run is recorded as a sync
      job, and synced objects can be sent on to the bucket's collections in
      batches automatically. [Read the
      guide](https://mixpeek.com/docs/ingest/object-storage).
  - name: Bucket Uploads
    description: >-
      **Bucket Uploads:** An upload is a presigned URL session that lets a
      client send a file straight to Mixpeek-managed storage for a bucket. You
      create the upload, send the file to its URL, then confirm it. By default
      the confirm creates an object in the bucket, which collections process
      once you add it to a batch. [Read the
      guide](https://mixpeek.com/docs/ingest/buckets).
  - name: Buckets
    description: >-
      **Buckets:** A bucket is the container in a namespace that holds your raw
      objects: files and the fields that describe them, checked against an
      optional `bucket_schema`. Collections read from buckets to extract
      features into documents, so a bucket is where every managed ingestion
      starts. [Read the guide](https://mixpeek.com/docs/ingest/buckets).
  - name: Cluster Executions
    description: >-
      **Cluster Executions:** A cluster execution is one run of a cluster over
      its input collections. Each run has a `run_id` and records the groups it
      found, their labels and the documents in each. Use these endpoints to read
      the latest or an earlier run, export its data, rename its labels, or
      cancel it. [Read the guide](https://mixpeek.com/docs/enrich/clusters).
  - name: Cluster Triggers
    description: >-
      **Cluster Triggers:** A cluster trigger runs a cluster for you on a
      schedule, so its groups stay current as new documents arrive. It holds a
      `trigger_type` such as `cron` or `interval`, a `schedule_config`, and a
      `status` you can pause and resume. Cluster triggers also appear in the
      unified Triggers endpoints. [Read the
      guide](https://mixpeek.com/docs/enrich/alerts-and-triggers).
  - name: Clusters
    description: >-
      **Clusters:** A cluster groups the documents in one or more collections by
      similarity and can label each group automatically. Each run writes its
      groups and member documents into output collections, and can also add the
      group fields to your source documents. Use clusters to discover themes in
      your data, or as a starting point for a taxonomy. [Read the
      guide](https://mixpeek.com/docs/enrich/clusters).
  - name: Collection Documents
    description: >-
      **Collection Documents:** A document is one searchable record in a
      collection, holding vectors, fields and metadata. Most documents are
      written by the collection's extractor from bucket objects; you can also
      create, read, update and delete them directly through these endpoints,
      which retrievers then search. [Read the
      guide](https://mixpeek.com/docs/manage/vector-store).
  - name: Collection Lifecycle
    description: >-
      **Collection Lifecycle:** A collection's lifecycle state sets where its
      vectors live and what searching them costs. `active` serves them from the
      vector store, `cold` moves them to object storage, and `archived` removes
      them, so you can move collections you rarely query to cheaper storage.
      [Read the guide](https://mixpeek.com/docs/manage/storage).
  - name: Collection Schema
    description: >-
      **Collection Schema:** A collection's `output_schema` lists the fields its
      documents carry, from passthrough bucket fields and the extractor's
      outputs. Schema sync samples the collection's documents and adds any
      fields it finds that the schema does not list yet, so filters and
      retrievers can use them. It never removes or retypes a field. [Read the
      guide](https://mixpeek.com/docs/extract/extractors).
  - name: Collection Taxonomies
    description: >-
      **Collection Taxonomies:** A taxonomy classifies documents against a set
      of reference labels and writes the matches onto them as enrichment fields.
      A collection lists the taxonomies it uses in `taxonomy_applications`;
      these endpoints apply one to the documents already in the collection, for
      example after you add a taxonomy or change its configuration. [Read the
      guide](https://mixpeek.com/docs/enrich/taxonomies).
  - name: Collections
    description: >-
      **Collections:** A collection runs one feature extractor over a source, a
      bucket or another collection, and stores the resulting documents with
      their vectors and fields. Retrievers search collections, and taxonomies
      and clusters enrich them, so a collection decides what about your data
      becomes searchable. [Read the
      guide](https://mixpeek.com/docs/extract/collections).
  - name: Custom Models
    description: >-
      **Custom Models:** A custom model is a set of model weights you upload to
      your organization's model registry and enable in a namespace, so your
      custom extractors can load it. Each model has a `name`, `version` and
      `model_format` (`safetensors`, `onnx`, `pytorch` or `huggingface`). Custom
      models work on every paid plan. [Read the
      guide](https://mixpeek.com/docs/extract/custom-extractors).
  - name: Data Subject Access Requests
    description: >-
      **Data Subject Access Requests:** A data subject access request (DSAR) is
      a formal request to export or delete all of an organization's data, as
      GDPR, CCPA and HIPAA allow. These endpoints file export and deletion
      requests, which are recorded in the audit log and processed within 30
      days, and report the status of each request. A deletion cannot be undone
      once it is carried out.
  - name: Discovery
    description: >-
      **Discovery:** Discovery endpoints describe what this Mixpeek deployment
      offers: the feature extractors, retriever stages, model catalog and
      manifest schema. Read them before you write a manifest or configure
      collections and retrievers, so the names and parameters you use are ones
      the platform accepts. [Read the
      guide](https://mixpeek.com/docs/manage/manifests).
  - name: Document Lineage
    description: >-
      **Document Lineage:** Lineage records where each document came from: the
      root bucket object and every collection that processed it on the way, such
      as a video, its scenes, then each scene's frames. Use it to trace a search
      result back to its source file, or to see everything a single object
      produced. [Read the guide](https://mixpeek.com/docs/overview/concepts).
  - name: Documents
    description: >-
      **Documents:** These document endpoints work across every collection in
      the namespace, so you can read, update or list documents by `document_id`
      without naming the collection that holds them. When you know the
      collection, the collection-scoped document endpoints find the document
      faster. [Read the guide](https://mixpeek.com/docs/manage/vector-store).
  - name: Events
    description: >-
      **Events:** The change feed is an ordered, resumable log of everything
      that changed in your organization, across every namespace and resource
      type. You page through it with a cursor and can stop and resume without
      missing or repeating events. Use it to sync Mixpeek state into another
      system by polling; use webhooks when you want events pushed to you. [Read
      the guide](https://mixpeek.com/docs/enrich/alerts-and-triggers).
  - name: Extractor Publishing
    description: >-
      **Extractor Publishing:** Publishing lists one of your custom extractors
      in the public extractor marketplace under a `public_name`, so other
      organizations can install a copy of it. Only an uploaded extractor that
      passed its security scan can be published. Installing copies a listed
      extractor into your organization as a new extractor submission.
  - name: Extractors
    description: >-
      **Extractors:** An extractor turns objects in a bucket into searchable
      features, such as embeddings, text or detected faces, when a collection
      processes them. These endpoints list the extractors your organization can
      use and upload your own custom extractor: you upload a `.zip` archive,
      then confirm it so it is scanned and its manifest checked. [Read the
      guide](https://mixpeek.com/docs/extract/custom-extractors).
  - name: Feature Extractors
    description: >-
      **Feature Extractors:** A feature extractor is the model step a collection
      runs to turn objects into documents, producing embeddings, text, labels
      and other features. These endpoints list the built-in extractors with
      their input, parameter and output schemas, so you can pick one and
      configure a collection's `feature_extractor`. [Read the
      guide](https://mixpeek.com/docs/extract/collections).
  - name: Feature Search
    description: >-
      **Feature Search:** Feature search runs one vector similarity search over
      the documents of one or more collections without creating a retriever. You
      name the embedding to compare by its `feature_uri` and get back ranked
      `documents`, the same as a one-stage retriever run. [Read the
      guide](https://mixpeek.com/docs/retrieve/stages).
  - name: Features
    description: >-
      **Features:** Features are what you can search by in a collection, chosen
      per file type (modality). The features endpoint lists each modality, its
      billing unit, and the features available on it with their rates. The
      feature keys it returns are the values a collection accepts in its
      `features` setting. [Read the
      guide](https://mixpeek.com/docs/extract/collections).
  - name: Health
    description: >-
      **Health:** Health endpoints report whether the Mixpeek API is up. `GET
      /v1/health` and `GET /v1/health/liveness` answer from the API process
      alone, `GET /v1/health/beat` checks the work scheduler, and `GET
      /v1/health/deep` checks each service the API depends on and needs an
      organization API key. [Read the
      guide](https://mixpeek.com/docs/production/monitoring).
  - name: Inference
    description: >-
      **Inference:** Inference runs a model directly, outside a retriever or a
      collection's processing. You call either a supported provider and model,
      such as `openai`, `google` or `anthropic`, or one of your organization's
      custom inference plugins by `inference_name`. Use it for one-off
      embeddings, completions or transcriptions. [Read the
      guide](https://mixpeek.com/docs/extract/custom-extractors).
  - name: Manifest
    description: >-
      **Manifest:** A manifest is a YAML file that declares a namespace's
      resources, such as buckets, collections and retrievers, so you can create
      or update them in one call. Use these endpoints to validate, diff and
      apply a manifest, or export an existing namespace's setup as one.
      Manifests copy configuration only; they do not copy documents or vectors.
      [Read the guide](https://mixpeek.com/docs/manage/manifests).
  - name: Marketplace
    description: >-
      **Marketplace:** The marketplace is a catalog of retrievers that
      organizations offer for other organizations to run. A listing wraps one of
      your retrievers with a `public_name`, display settings and subscription
      tiers. Subscribers execute it by `public_name` with an access token, and
      free tiers can run it without one.
  - name: Models
    description: >-
      **Models:** Models are your organization's own model weights, uploaded as
      an archive and available to every namespace in the organization. Custom
      extractors load them, so your fine-tuned models can run during collection
      processing and retrieval. [Read the
      guide](https://mixpeek.com/docs/extract/custom-extractors).
  - name: Namespace Clone
    description: >-
      **Namespace Clone:** A namespace clone copies a whole namespace into a new
      one: its configuration, buckets, collections with their vectors, and
      retrievers. Use it to create a staging copy of production or to experiment
      without processing your data again. For a configuration-only copy, export
      a manifest instead. [Read the
      guide](https://mixpeek.com/docs/manage/namespaces).
  - name: Namespace Extractors
    description: >-
      **Namespace Extractors:** These endpoints list the feature extractors a
      namespace can use, combining the built-in extractors with custom ones from
      your organization or the namespace. Each entry shows the extractor's
      `input_schema`, `output_schema`, `parameter_schema` and `feature_uri`, so
      you can pick one when you create a collection. [Read the
      guide](https://mixpeek.com/docs/extract/extractors).
  - name: Namespace Migrations
    description: >-
      **Namespace Migrations:** A namespace migration copies a source
      namespace's resources into a target namespace. A `copy` migration moves
      data as it is, `extend` copies it and adds extractors, and `re_extract`
      processes it again with new extractors, for example to switch embedding
      models. You create a migration in `draft`, optionally validate it, then
      start it and track its progress. [Read the
      guide](https://mixpeek.com/docs/extract/collections).
  - name: Namespace Snapshots
    description: >-
      **Namespace Snapshots:** A namespace snapshot is a point-in-time backup of
      a namespace: its configuration, records, vectors and a manifest of its
      stored objects. You can verify that a snapshot is restorable, download it,
      and restore it into a new namespace or over the current one. Snapshots
      need an Enterprise plan. [Read the
      guide](https://mixpeek.com/docs/manage/storage).
  - name: Namespaces
    description: >-
      **Namespaces:** A namespace is an isolated workspace that holds your
      buckets, collections, retrievers, taxonomies and clusters. Its settings
      decide which feature extractors and payload indexes its collections can
      use. Most other requests name their namespace in the `X-Namespace` header.
      [Read the guide](https://mixpeek.com/docs/overview/concepts).
  - name: Notifications
    description: >-
      **Notifications:** Notifications are messages Mixpeek records for your
      organization when something needs attention, such as a failed pipeline, a
      billing or quota alert, or a maintenance notice. These endpoints list,
      read and delete notifications, track which ones are read, and set which
      notification types are on and which channels (email, webhook) deliver
      them. They also control Mixpeek's reminder and tip emails.
  - name: Onboarding
    description: >-
      **Onboarding:** Onboarding endpoints help you choose a starting setup for
      a new project. One recommends a starter template, feature extractors,
      retriever stages and sample queries from a plain-language description of
      what you want to build. The other returns the namespace Mixpeek suggested
      for your organization at signup. Neither creates resources on its own.
  - name: Organization API Keys
    description: >-
      **Organization API Keys:** An API key authenticates requests to Mixpeek on
      behalf of one member of your organization. Each key carries `permissions`
      (read, write, delete, admin) and optional `scopes` that limit it to
      specific namespaces or other resources, plus optional expiry, rate limit
      and allowed browser origins. These endpoints create, list, update, rotate
      and revoke the keys a member owns. [Read the
      guide](https://mixpeek.com/docs/production/security).
  - name: Organization Audit
    description: >-
      **Organization Audit:** The audit log records who changed what in your
      organization: creates, updates and deletes on resources such as
      namespaces, collections, users, API keys and webhooks, with the actor, the
      key used, the changes and an optional reason. These endpoints search and
      export that log and turn recording of read requests on or off. Use it for
      compliance evidence and to trace an unexpected change. [Read the
      guide](https://mixpeek.com/docs/production/security).
  - name: Organization Billing
    description: >-
      **Organization Billing:** Billing endpoints manage how your organization
      pays for Mixpeek and show what it has used. They cover plan subscription
      and cancellation, payment methods, automatic monthly billing, spending
      caps, promo codes, invoices, the credit balance, usage breakdowns and
      per-operation credit transactions. Usage is metered in credits as your
      namespaces, collections and retrievers do work. [Read the
      guide](https://mixpeek.com/docs/production/limits-and-billing).
  - name: Organization Connections
    description: >-
      **Organization Connections:** A storage connection holds the credentials
      Mixpeek uses to reach an external storage provider, such as Amazon S3,
      Google Drive or SharePoint. Bucket syncs use a connection to bring files
      from that provider into a bucket. Credentials are tested when you save the
      connection, unless you turn the test off, and never appear in responses.
      [Read the guide](https://mixpeek.com/docs/ingest/object-storage).
  - name: Organization Infrastructure
    description: >-
      **Organization Infrastructure:** Organization infrastructure describes the
      dedicated compute behind an enterprise single-tenant deployment, where
      your organization runs on its own isolated data plane. The summary
      endpoint reports the compute profile used for each extractor, the cloud
      cost breakdown, and the billing period totals for a month. It applies only
      to single-tenant organizations. [Read the
      guide](https://mixpeek.com/docs/production/deployment).
  - name: Organization Secrets
    description: >-
      **Organization Secrets:** Organization secrets are named, encrypted
      values, such as third-party API keys and tokens, stored once for your
      whole organization. Retriever stages that call outside services (for
      example the `api_call` stage) and organization-wide LLM credentials refer
      to a secret by name, so the value never appears in a retriever or request.
      Secret values are never returned by the API; only names are listed. [Read
      the guide](https://mixpeek.com/docs/production/security).
  - name: Organization Targets
    description: >-
      **Organization Targets:** Organization targets are the resource
      utilization bands and service level objectives (p95 latency and error
      budget per surface) that apply to your organization's workloads.
      Organizations on the shared platform read the platform defaults;
      organizations with dedicated infrastructure can hold their own targets.
      `targets_writable` says which case applies.
  - name: Organization Usage
    description: >-
      **Organization Usage:** Organization usage endpoints report how much your
      organization and each of its API keys called the Mixpeek API over a time
      window: request counts, credits used, latency, and the endpoints each key
      called most. Use them to see which keys and integrations drive traffic and
      spend; for invoices and billing totals, use the billing endpoints. [Read
      the guide](https://mixpeek.com/docs/production/monitoring).
  - name: Organization Users
    description: >-
      **Organization Users:** Organization users are the people who belong to
      your Mixpeek organization. Each user has a `role` (`admin`, `member` or
      `viewer`) and a `status` (`active`, `suspended` or `pending`), and owns
      the API keys created for them. Suspending or removing a user revokes their
      keys, which cuts off every request made with them.
  - name: Organizations
    description: >-
      **Organizations:** An organization is your Mixpeek account: the top-level
      owner of every namespace, member, API key, connection, secret, webhook and
      bill. These endpoints read and change organization-wide settings, such as
      the name, billing and notification emails, rate limits, spend limits and
      workload identity providers, and report the monthly credit cap and usage.
  - name: Pricing
    description: >-
      **Pricing:** The pricing endpoint returns Mixpeek's public rate card, the
      same figures billing uses. Price depends on the type of each file, how
      much content it holds, and which search features you turn on for it. The
      response gives per-modality rates, the usage pool each plan includes, and
      the plan definitions, and needs no API key. [Read the
      guide](https://mixpeek.com/docs/production/limits-and-billing).
  - name: Public Apps API
    description: >-
      **Public Apps API:** An App is a published search page built on your
      namespace's retrievers and taxonomies, served at a public slug. These
      endpoints need no API key: they return an App's published configuration,
      run its searches, return its gallery and taxonomy trees, and record
      visitor interactions. [Read the
      guide](https://mixpeek.com/docs/tools/apps).
  - name: Public Extractor Marketplace
    description: >-
      **Public Extractor Marketplace:** The public extractor marketplace lists
      custom feature extractors that organizations have published for others to
      use. Browsing it needs no API key; each listing shows the extractor's
      manifest, capabilities and readme, and you install one into your
      organization before collections can run it.
  - name: Public Notifications API
    description: >-
      **Public Notifications API:** The public notifications endpoint handles
      the one-click unsubscribe link in Mixpeek's reminder and tip emails. It
      needs no API key; the signed token in the link identifies the recipient
      and the kind of email to stop. To manage these emails from your account,
      use the notification reminder preferences instead.
  - name: Public Retriever API
    description: >-
      **Public Retriever API:** A public retriever is a retriever you have
      published so people can search your collections without your API key,
      optionally behind a password and rate limits. These endpoints list public
      retrievers, return their display config and template, run searches that
      return only the fields you expose, and record interactions. [Read the
      guide](https://mixpeek.com/docs/retrieve/retrievers).
  - name: Public Templates API
    description: >-
      **Public Templates API:** A template is a saved, reusable setup for a
      Mixpeek resource, such as a whole namespace or a retriever pipeline. These
      endpoints list the public templates and return their configuration without
      an API key, so you can choose one before you create resources from it.
      [Read the guide](https://mixpeek.com/docs/templates/overview).
  - name: Published Retrievers
    description: >-
      **Published Retrievers:** A published retriever is a retriever exposed as
      a public search page and API under a globally unique `public_name`.
      Publishing creates a public API key and uses the retriever's
      `display_config` to render the page. Each namespace can publish a limited
      number of retrievers. [Read the
      guide](https://mixpeek.com/docs/retrieve/retrievers).
  - name: Quickstart
    description: >-
      **Quickstart:** Quickstart endpoints set up a complete use case in one
      call. The docs search quickstart creates a namespace, a bucket, a web
      crawl collection and a published retriever for your documentation site,
      plus a scoped API key, and returns a snippet to embed the search widget.
      [Read the guide](https://mixpeek.com/docs/retrieve/retrievers).
  - name: Resource Search
    description: >-
      **Resource Search:** Resource search finds namespace resources by name or
      ID in one call. It matches buckets, collections, retrievers, taxonomies,
      clusters and namespaces, case-insensitively. Use it for a search box or
      command palette over your own setup, and use retrievers to search your
      documents.
  - name: Retriever API Keys
    description: >-
      **Retriever API Keys:** A retriever API key is a `ret_sk_` key that can
      execute exactly one retriever and nothing else. Give it to a frontend or
      partner that needs to run a search without access to the rest of your
      namespace. You can revoke a key at any time. [Read the
      guide](https://mixpeek.com/docs/production/security).
  - name: Retriever Benchmarks
    description: >-
      **Retriever Benchmarks:** A retriever benchmark replays real past
      searches, recorded as retriever executions with user interactions, through
      a baseline retriever and one or more candidate retrievers. It scores how
      well each one ranks the documents users acted on, such as clicks and
      positive feedback. Use it to compare retriever changes against real
      behavior before you switch.
  - name: Retriever Evaluations
    description: >-
      **Retriever Evaluations:** A retriever evaluation scores a retriever
      against an evaluation dataset, which is a set of test queries with the
      documents each query should return. It reports metrics such as precision,
      recall, NDCG and MRR per cutoff. Use it to measure retrieval quality
      offline and to compare retriever versions. [Read the
      guide](https://mixpeek.com/docs/retrieve/relevance).
  - name: Retriever Interactions
    description: >-
      **Retriever Interactions:** An interaction records what a user did with a
      retriever result, such as a `view`, `click` or `positive_feedback`, tied
      to the execution and document. Interactions feed learned ranking,
      analytics, benchmarks and evaluation datasets built from real behavior.
      [Read the guide](https://mixpeek.com/docs/retrieve/relevance).
  - name: Retriever Stages
    description: >-
      **Retriever Stages:** Retriever stages are the building blocks of a
      retriever's `stages` pipeline, such as feature search, filters, reranking
      and enrichment. Each stage type has an ID and a parameter schema. List
      them to see which stages you can use and how to configure them. [Read the
      guide](https://mixpeek.com/docs/retrieve/stages).
  - name: Retrievers
    description: >-
      **Retrievers:** A retriever is a saved search pipeline over one or more
      collections in a namespace. It runs its `stages` in order, such as feature
      search, filtering and reranking, and returns matching `documents`.
      `input_schema` defines the inputs each execution accepts. [Read the
      guide](https://mixpeek.com/docs/retrieve/retrievers).
  - name: Scaffold Templates
    description: >-
      **Scaffold Templates:** A scaffold template is a preset that creates a
      working stack in one call: a namespace, a bucket, a collection with its
      feature extractor, and a retriever. All resources start empty, ready for
      your data. Use it to start a new project from a known-good setup.
  - name: Signup
    description: >-
      **Signup:** Signup endpoints create a Mixpeek organization without a
      browser, so an AI agent can start working for a person. The agent sends
      the person's email and accepts the terms, and gets back a working API key
      plus a namespace with a bucket, a collection and a retriever ready to use.
      The person confirms by email to keep the key.
  - name: Source Adapter
    description: >-
      **Source Adapter:** A source adapter is an optional `source_adapter`
      setting on a bucket that fills the bucket from somewhere other than your
      own uploads. Webhook adapters (`mux`, `iconik`, `generic_webhook`) receive
      events from an external service at the bucket's `webhook_url`, buffer
      them, and turn them into bucket objects in batches. Pull adapters
      (`collection`, `bucket`) bring a collection's documents or other buckets'
      objects into this bucket when you call refresh.
  - name: Support
    description: >-
      **Support:** Support endpoints connect your organization with the Mixpeek
      team. You open tickets and reply in their message threads, read
      announcements Mixpeek sends to all customers, and watch curated how-to
      videos. Tickets are private to your organization.
  - name: Tasks
    description: >-
      **Tasks:** A task tracks one piece of background work that an API call
      started, such as processing a batch, deleting a bucket or updating
      documents in bulk. Calls that run in the background return a `task_id`;
      you read the task to follow its `status` and result, or stop it. [Read the
      guide](https://mixpeek.com/docs/production/monitoring).
  - name: Taxonomies
    description: >-
      **Taxonomies:** A taxonomy is a set of labels that Mixpeek assigns to
      documents by matching them against reference nodes with a retriever. A
      `flat` taxonomy has one level of labels; a `hierarchical` taxonomy nests
      them. Attach a taxonomy to a collection to label documents as they are
      processed, or add a `taxonomy_join` stage to a retriever to label results
      at query time. [Read the
      guide](https://mixpeek.com/docs/enrich/taxonomies).
  - name: Taxonomy Analytics
    description: >-
      **Taxonomy Analytics:** Taxonomy analytics measure how documents in a
      collection move between a taxonomy's labels over time. Transition analysis
      computes conversion rates and durations from one label to another; path
      analysis finds common multi-step sequences. Each analysis is saved as a
      run that you can read again or re-run.
  - name: Templates
    description: >-
      **Templates:** A template stores the settings of one resource (a
      namespace, bucket, collection, retriever, taxonomy or cluster) so you can
      create new resources with the same configuration. Templates come from
      Mixpeek or are saved from your own resources and shared with your
      organization. Instantiating a template copies its settings and none of the
      source resource's data.
  - name: Triggers
    description: >-
      **Triggers:** A trigger runs work for you on a schedule, such as a cluster
      run or a taxonomy enrichment. It holds a `trigger_type` such as `cron` or
      `interval`, a schedule, and a `status` you can pause and resume, and you
      can also run it on demand. Use an alert instead when you want a
      notification about your data. [Read the
      guide](https://mixpeek.com/docs/enrich/alerts-and-triggers).
  - name: Webhooks
    description: >-
      **Webhooks:** A webhook sends your organization's events to you as they
      happen, such as an object added to a bucket, documents written to a
      collection, or a cluster run finishing. Each webhook names the event types
      it wants and one or more delivery channels: an HTTP endpoint (optionally
      signed with a secret), email or Slack. Use webhooks to react without
      polling; use the change feed to read history in order. [Read the
      guide](https://mixpeek.com/docs/enrich/alerts-and-triggers).
paths:
  /v1/models/uploads/{upload_id}/confirm:
    post:
      tags:
        - Models
      summary: Confirm model upload
      description: >-
        Confirm a model upload after the S3 upload completes.


        This is step 3 of the presigned URL workflow. Call this after

        uploading the model archive to the presigned URL.


        The service will:

        1. Verify the S3 object exists

        2. Validate the archive structure

        3. Create the model record


        **Models:** Models are your organization's own model weights, uploaded
        as an archive and available to every namespace in the organization.
        Custom extractors load them, so your fine-tuned models can run during
        collection processing and retrieval. [Read the
        guide](https://mixpeek.com/docs/extract/custom-extractors).
      operationId: confirm_upload_v1_models_uploads__upload_id__confirm_post
      parameters:
        - name: upload_id
          in: path
          required: true
          schema:
            type: string
            title: Upload Id
          description: ID of the upload.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmModelUploadRequest'
              default: {}
        description: >-
          Keys this body does not declare are refused with 422 extra_forbidden
          naming the accepted keys (since 2026-11-02).
        x-unknown-keys:
          until: '2026-11-02'
          then: 422 extra_forbidden
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfirmModelUploadResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ConfirmModelUploadRequest:
      properties:
        etag:
          anyOf:
            - type: string
            - type: 'null'
          title: Etag
          description: S3 ETag from upload response for integrity check
        file_size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: File Size Bytes
          description: Expected file size for validation
      type: object
      title: ConfirmModelUploadRequest
      description: |-
        Request to confirm a model upload after S3 upload completes.

        Optional fields for integrity verification:
        - etag: S3 ETag returned from PUT response (recommended)
        - file_size_bytes: Expected file size for validation
    ConfirmModelUploadResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether upload and validation succeeded
        upload_id:
          type: string
          title: Upload Id
          description: The upload ID
        model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Id
          description: Created model ID if successful
        validation_status:
          type: string
          enum:
            - pending
            - passed
            - failed
          title: Validation Status
          description: Validation status
        validation_errors:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Validation Errors
          description: Validation errors if any
        s3_archive_url:
          anyOf:
            - type: string
            - type: 'null'
          title: S3 Archive Url
          description: S3 URL of the archive
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Additional status message
      type: object
      required:
        - success
        - upload_id
        - validation_status
      title: ConfirmModelUploadResponse
      description: Response from confirming a model upload.
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Always false for error responses
          default: false
        status:
          type: integer
          title: Status
          description: HTTP status code for this error
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: Error details payload
      type: object
      required:
        - status
        - error
      title: ErrorResponse
      description: Error response model.
      examples:
        - error:
            details:
              id: ns_123
              resource: namespace
            message: Namespace not found
            type: NotFoundError
          status: 404
          success: false
    ErrorDetail:
      properties:
        message:
          type: string
          title: Message
          description: Human-readable error message
        type:
          type: string
          title: Type
          description: Stable error type identifier (machine-readable)
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            Stable code for this error. Branch on it; each code has an entry at
            help_url.
        help_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Help Url
          description: 'The docs entry for this code: what it means and what to do next.'
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: >-
            Optional structured details to help debugging (validation errors,
            IDs, etc.)
      type: object
      required:
        - message
        - type
      title: ErrorDetail
      description: Error detail model.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.