NanoBase™ Check API

The Check API from NanoBase™ — 1 operation(s) for check.

GitHub OpenAPI

Operations 1

POST /check Envelope check of a finished formula #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nanobaselabs-com:nanobaselabs-com-check-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nanobaselabs-com-check-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NanoBase™ Check API
  version: 1.3.0
  description: 'Loader envelope check, live ingredient search, INCI label builder and preservative guidance for formulas built on the NanoBase™ Architecture. Read https://api.nanobaselabs.com/ai/primer first. NanoBase™ composition, processing and equipment are protected trade secrets; queries seeking them are refused, logged and can suspend the key. Businesses sign up at https://api.nanobaselabs.com/register; use is governed by https://api.nanobaselabs.com/terms. Also available as a remote MCP server at https://api.nanobaselabs.com/mcp (Authorization: Bearer ).'
servers:
- url: https://api.nanobaselabs.com
security:
- key: []
tags:
- name: Check
paths:
  /check:
    post:
      summary: Envelope check of a finished formula
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                base:
                  type: string
                  enum:
                  - classic
                  - luxe
                  - clinical
                basePct:
                  type: number
                ph:
                  type: number
                ph_add:
                  type: number
                  minimum: 0
                  maximum: 14
                  description: 'optional: the pH of the medium when the ingredients are added, for the ph_path advisory; default the pH at which the NanoBase™ Architecture is supplied'
                ph_add_hold_hours:
                  type: number
                  minimum: 0
                  maximum: 720
                  description: 'optional: hours the batch is held at ph_add before the trim (a chemical-change flag is low unless the hold is an hour or more)'
                batch_g:
                  type: number
                  minimum: 1
                  maximum: 10000000
                  description: 'optional: batch size in grams for the build_path advisory (default 100)'
                lines:
                  type: array
                  items:
                    $ref: '#/components/schemas/Line'
                variant:
                  type: string
                  enum:
                  - classic
                  - luxe
                  - clinical
                  description: alias of base
                nbPct:
                  type: number
                  description: alias of basePct
                architecture:
                  type: string
                  enum:
                  - classic
                  - luxe
                  - clinical
                  description: alias (MCP spelling)
                architecture_pct:
                  type: number
                  description: alias (MCP spelling)
      responses:
        '200':
          description: 'verdict, categories, remedies, maxLoads, lines, unmatched, declared_by_caller, props_ignored, usage; or, when any line is unlisted and has no props, an incomplete answer {status: needs_properties, counted: false, message, research, needs_properties, props_schema} with no results and no run used; grade_guidance (per graded polymer line: grade, size class, free-polymer limit, counterions, where it acts, use level, texture), grade_request (plain or unstated grade: send the grade with the TDS or CoA in source), documents_received (doc_type and date of each source sent); needs_properties items carry documents and field_documents; ph_path on answers with results (advisory only, never part of the verdict, loading or run count: ph_add, ph_final, flags {line, ingredient, step precipitation | charge_flip | trapping | chemical, severity, why, action}, finished_ph_notes, not_on_file, reminders); build_path on answers with results (advisory only, never part of the verdict, loading or run count: instructions {step, instruction, why}, hydration_plan, portion_check, flags; send batch_g for grams on your batch)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckResult'
        '400':
          description: invalid_input, formula_exceeds_100, unknown_architecture, invalid_props {error, field, detail, props_schema}, or invalid_source {error, field, detail, source_schema}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate limited, monthly runs used up, or incomplete_limit (more than 30 incomplete checks an hour per account)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              schema:
                type: integer
        '401':
          description: error (see Error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: error (see Error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: error (see Error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: Inline props are used for the answer. Over REST, props and sources sent with a counted check are also recorded as an Ingredient Submission; the MCP check_formula tool stores nothing (use submit_ingredient or POST /ingredients/submit).
      operationId: checkFormula
      tags:
      - Check
components:
  schemas:
    Error:
      type: object
      description: Every error from the formula endpoints. The error string is kept as before.
      required:
      - outcome
      - code
      - retryable
      - api_version
      properties:
        outcome:
          type: string
          enum:
          - error
        code:
          type: string
          description: snake_case, e.g. unauthorized, rate_limited, monthly_limit_reached, incomplete_limit, invalid_input, invalid_props, invalid_source, formula_exceeds_100, unknown_architecture, protected_ip, access_suspended, label_sweep_limited, engine_error
        error:
          type: string
        detail:
          type: string
        retryable:
          type: boolean
        retry_after_seconds:
          type:
          - number
          - 'null'
        resets_at:
          type: string
          description: ISO time the monthly limit resets (monthly_limit_reached)
        field:
          type: string
        line:
          type: integer
          description: 1-based formula line
        do_not_rephrase:
          type: boolean
          description: 'true on protected_ip: do not retry or rephrase'
        api_version:
          type: string
    Sources:
      anyOf:
      - $ref: '#/components/schemas/Source'
      - type: array
        minItems: 1
        maxItems: 3
        items:
          $ref: '#/components/schemas/Source'
    NextAction:
      type: object
      required:
      - action
      - target
      - detail
      properties:
        action:
          type: string
          description: swap, remove, replace, reduce, adjust_ph, declare_ph, raise_loading, send_grade, submit_properties, fix, verify_at_bench, recheck, continue
        target:
          type: string
        detail:
          type: string
        line:
          type: integer
        category:
          type: string
    Usage:
      type: object
      properties:
        tier:
          type: string
        month:
          type: string
        runsUsed:
          type: number
        runsLimit:
          type: number
        runs_remaining:
          type: number
        run_window_ends_at:
          type:
          - string
          - 'null'
          description: ISO end of the open 60-minute run session; null when none is open
        runCallsUsed:
          type: number
        runCallsLimit:
          type: number
    Category:
      type: object
      properties:
        key:
          type: string
          enum:
          - oil
          - ws
          - anchor
          - charged
          - divalent
          - poly
        label:
          type: string
        status:
          type: string
          enum:
          - go
          - verify
          - warn
          - stop
        used: {}
        max: {}
        note:
          type: string
        used_value:
          type:
          - number
          - 'null'
        limit_value:
          type:
          - number
          - 'null'
        unit:
          type:
          - string
          - 'null'
          description: '% w/w or % of capacity'
        used_pct_of_limit:
          type:
          - number
          - 'null'
          description: nearest 5 up to 100, coarser steps above; above 100 is over the limit
        band:
          type: string
          enum:
          - none
          - below ceiling
          - near ceiling
          - over ceiling
          description: divalent only; none = no divalent source declared
    Line:
      type: object
      description: 'One formula line: an INCI ingredient {n,pct}, or a trade-name raw material broken into INCI components {pct,blend}. For an ingredient the library does not list, add props. Optional source (the confirming document). For a graded polymer, name the grade or molecular weight, for example "Sodium Hyaluronate (LMW, 50-300 kDa)" or "Sodium Hyaluronate 50-150 kDa".'
      properties:
        n:
          type: string
        pct:
          type: number
        blend:
          type: array
          items:
            type: object
            properties:
              n:
                type: string
              f:
                description: fraction of the raw material, or "trace"
                oneOf:
                - type: number
                - type: string
                  enum:
                  - trace
              props:
                $ref: '#/components/schemas/Props'
              source:
                $ref: '#/components/schemas/Sources'
        props:
          $ref: '#/components/schemas/Props'
        source:
          $ref: '#/components/schemas/Sources'
    CheckResult:
      type: object
      required:
      - outcome
      - api_version
      properties:
        outcome:
          type: string
          enum:
          - compatible
          - compatible_verify
          - adjust
          - structural_conflict
          - needs_properties
          - error
        api_version:
          type: string
        ok:
          type: boolean
        verdict:
          type: string
          description: compatible | compatible_verify | adjust (not_processed on a structural_conflict answer)
        categories:
          type: array
          items:
            $ref: '#/components/schemas/Category'
        remedies:
          type: array
          items:
            type: object
            properties:
              sev:
                type: string
              title:
                type: string
              body:
                type: string
        maxLoads:
          type: object
        lines:
          type: array
          items:
            type: object
            properties:
              i:
                type: integer
                description: 0-based position after blends are expanded
              line:
                type: integer
                description: 1-based line sent
              n:
                type: string
              c:
                type: string
        incompatible_ingredients:
          type: array
          items:
            type: object
            properties:
              line:
                type: integer
              ingredient:
                type: string
              issue:
                type: string
              action:
                type: string
              alternatives:
                type: array
                items:
                  type: object
        next_actions:
          type: array
          items:
            $ref: '#/components/schemas/NextAction'
        needs_properties:
          type: array
          items:
            type: object
            properties:
              line:
                type: integer
              n:
                type: string
        declared_by_caller:
          type: array
          items:
            type: object
            properties:
              line:
                type: integer
        grade_guidance:
          type: array
          items:
            type: object
            properties:
              line:
                type: integer
        structural_conflict:
          type: boolean
        status:
          type: string
        performance:
          type: array
          items:
            type: object
        build_path:
          type: object
          description: 'advisory only, on answers that return results (not needs_properties, structural_conflict or error), never part of outcome, verdict, categories or loading: step-by-step process instructions written for the formulating AI, each with its reason'
          properties:
            advisory:
              type: string
            batch_basis_g:
              type: number
            note:
              type: string
            instructions:
              type: array
              items:
                type: object
                properties:
                  step:
                    type: integer
                  instruction:
                    type: string
                  why:
                    type: string
                  optional:
                    type: boolean
            hydration_plan:
              type: array
              items:
                type: object
                properties:
                  ingredient:
                    type: string
                  lines:
                    type: array
                    items:
                      type: integer
                  route:
                    type: string
                    enum:
                    - plain_architecture_premix
                    - oil_loaded_premix
                    - main_batch_direct
                    - does_not_fit
                  where:
                    type: string
                  carrier_g:
                    type: number
                  add_at:
                    type: string
                  why:
                    type: string
                  alternative:
                    type: string
            portion_check:
              type: object
              properties:
                architecture_g:
                  type: number
                added_oil_g:
                  type: number
                must_stay_in_main_at_oil_step_g:
                  type: number
                max_withdraw_before_oils_g:
                  type: number
                planned_plain_premixes_g:
                  type: number
                ok:
                  type: boolean
                why:
                  type: string
            flags:
              type: array
              items:
                type: object
                properties:
                  severity:
                    type: string
                    enum:
                    - high
                    - medium
                    - low
                  line:
                    type: integer
                  text:
                    type: string
        ph_path:
          type: object
          description: 'advisory only, on answers that return results (not needs_properties, structural_conflict or error), never part of outcome, verdict, categories or loading: when the pH at addition can override the finished-pH placement'
          properties:
            ph_add:
              type: number
            ph_add_source:
              type: string
            ph_final:
              type: number
            ph_final_source:
              type: string
            rule:
              type: string
            flags:
              type: array
              items:
                type: object
                properties:
                  line:
                    type: integer
                  ingredient:
                    type: string
                  step:
                    type: string
                    enum:
                    - precipitation
                    - charge_flip
                    - trapping
                    - chemical
                  label:
                    type: string
                  severity:
                    type: string
                    enum:
                    - high
                    - medium
                    - low
                  why:
                    type: string
                  action:
                    type: string
                  data:
                    type: object
            finished_ph_notes:
              type: array
              items:
                type: object
                properties:
                  line:
                    type: integer
                  ingredient:
                    type: string
                  flag:
                    type: string
                  why:
                    type: string
                  action:
                    type: string
            not_on_file:
              type: array
              items:
                type: object
                properties:
                  line:
                    type: integer
                  ingredient:
                    type: string
                  missing:
                    type: array
                    items:
                      type: string
                  ask:
                    type: string
                  class_guidance:
                    type: string
            summary:
              type: object
            result:
              type: string
            reminders:
              type: array
              items:
                type: string
            note:
              type: string
        usage:
          $ref: '#/components/schemas/Usage'
    Source:
      type: object
      required:
      - doc_type
      additionalProperties: false
      description: A supplier document that confirms an ingredient's information. Ask your user to upload it and send its text. Stored, never fetched; the text is kept privately and never returned or shown to other users; responses echo doc_type and doc_date only. A submission is used right away for your own account and added to the shared library after review by Pensive Beauty® Nanoscience Labs; a document whose text (doc_type plus at least about 200 characters) names the ingredient supports the review (a url alone does not count). Invalid sources return 400 invalid_source with the field.
      properties:
        doc_type:
          type: string
          enum:
          - TDS
          - SDS
          - CoA
          - spec
        supplier:
          type: string
          maxLength: 120
        doc_date:
          type: string
          description: YYYY, YYYY-MM or YYYY-MM-DD
        url:
          type: string
          maxLength: 500
          description: http(s); never fetched
        excerpt:
          type: string
          description: accepted as the same field as text
        text:
          type: string
          description: the document text, up to 200 KB (204,800 bytes UTF-8)
    Props:
      type: object
      required:
      - class
      additionalProperties: false
      description: Properties of an ingredient the library does not list, researched by the caller's AI. The line is then assessed like a library ingredient of that class and echoed under declared_by_caller. Library entries win unless override is true. Invalid props return 400 invalid_props with the field.
      properties:
        class:
          type: string
          enum:
          - oil
          - water_soluble
          - peptide
          - lipopeptide
          - charged
          - polymer
          - surfactant
          - preservative
          - humectant
          - neutral
        charge:
          type: string
          enum:
          - nonionic
          - zwitterionic
          - cationic
          - anionic
        oil_type:
          type: string
          enum:
          - insoluble_heavy
          - light_ester_ripening_prone
          - polar
        mw_class:
          type: string
          enum:
          - low
          - medium
          - high
        mw:
          type: number
          minimum: 10
          maximum: 100000000
        valence:
          type: integer
          minimum: 1
          maximum: 4
        ionized_fraction:
          type: number
          minimum: 0
          maximum: 1
        form:
          type: string
          enum:
          - nonionic
          - salt
          - acid
        override:
          type: boolean
        logP:
          type: number
          minimum: -10
          maximum: 15
          description: logP of the neutral molecule
        pKa:
          oneOf:
          - type: number
          - type: array
            items:
              type: number
            minItems: 1
            maxItems: 4
          description: pKa value or list (conjugate-acid pKa for a base); requires acid_or_base
        acid_or_base:
          type: string
          enum:
          - acid
          - base
          - neutral
        pI:
          type: number
          minimum: 0
          maximum: 14
          description: isoelectric point (peptides, proteins, charged polymers; zwitterions such as amino acids and betaines send pI rather than acid pKa values); ph_path advisory
        neutral_solubility_pct:
          type: number
          minimum: 0
          maximum: 100
          description: water solubility of the neutral form in g per 100 g water at 20 to 25 C; ph_path advisory
        stability:
          type: array
          maxItems: 3
          items:
            anyOf:
            - type: string
              enum:
              - hydrolysis_prone
              - hydrolysis_prone_ester
              - oxidation_prone
              - deamidation_prone
            - type: object
              additionalProperties: false
              required:
              - flag
              properties:
                flag:
                  type: string
                  enum:
                  - hydrolysis_prone
                  - hydrolysis_prone_ester
                  - oxidation_prone
                  - deamidation_prone
                ph_above:
                  type: number
                  minimum: 0
                  maximum: 14
                ph_below:
                  type: number
                  minimum: 0
                  maximum: 14
          description: stability flags with the sensitive pH range if known; ph_path advisory
  securitySchemes:
    key:
      type: apiKey
      in: header
      name: x-nb-key