{
  "openapi": "3.1.0",
  "info": {
    "title": "Newlithic Robotics API",
    "version": "1.0.0",
    "description": "Book a 30-minute call with Newlithic Robotics and request free task demos. Public and free: no sign-up and no API key. Sandbox: use the sandbox server https://newlithicrobotics.com/sandbox (or send \"dryRun\": true to any POST) to run every check and get the normal answer without booking, storing or emailing anything. Book or send only with the user's explicit consent, using their own name and email. Docs: https://newlithicrobotics.com/docs. The same actions are on the MCP server at https://newlithicrobotics.com/mcp.",
    "contact": {
      "name": "Newlithic Robotics",
      "email": "build@newlithicrobotics.com",
      "url": "https://newlithicrobotics.com/"
    }
  },
  "servers": [
    {
      "url": "https://newlithicrobotics.com",
      "description": "Production"
    },
    {
      "url": "https://newlithicrobotics.com/sandbox",
      "description": "Sandbox: the same API, no key. Reads return live data; every POST runs all checks and answers with \"sandbox\": true and \"id\": null, but books, stores and emails nothing."
    }
  ],
  "paths": {
    "/api/book": {
      "get": {
        "operationId": "listOpenSlots",
        "summary": "List open call slots",
        "description": "Open 30-minute slots, Monday to Friday 9:00 to 17:00 America/Los_Angeles, from 12 hours to 3 weeks ahead, as UTC ISO 8601 start times.",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Only return slots starting at or after this time, as an ISO 8601 date or date-time (UTC unless an offset is given), e.g. 2026-12-08 or 2026-12-08T17:00:00Z.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Return at most this many slots, earliest first.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open slots",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Slots"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "bookCall",
        "summary": "Book a call",
        "description": "Books one open slot and emails a calendar invite to the guest and to the Newlithic team. A slot can be booked only once; a taken or closed slot returns 409. Set dryRun to test without booking.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "start",
                  "name",
                  "email"
                ],
                "properties": {
                  "start": {
                    "type": "string",
                    "format": "date-time",
                    "description": "One of the slots from listOpenSlots, exactly as returned."
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "The guest's full name."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 200,
                    "description": "The guest's work email; the calendar invite goes here."
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "The guest's company or lab."
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1500,
                    "description": "What the guest would like to discuss."
                  },
                  "tz": {
                    "type": "string",
                    "description": "The guest's IANA time zone, used in their confirmation email, e.g. Europe/Berlin."
                  },
                  "dryRun": {
                    "type": "boolean",
                    "default": false,
                    "description": "Sandbox: check the fields and that the slot is open, and answer as a booking would, but book nothing and send no email. The reply has sandbox: true and id: null."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Booked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingResult"
                }
              }
            }
          },
          "409": {
            "description": "That time is no longer open",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Name and a valid email are required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "A booking cap was reached: 2 upcoming calls per email, 3 bookings per network address a day, 10 a day in all. Email build@newlithicrobotics.com instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/task-card": {
      "post": {
        "operationId": "sendTaskCard",
        "summary": "Request free task demos",
        "description": "Sends a task card to Newlithic Robotics, which records up to 500 demonstrations of the task within 5 business days, free, and replies to the given email. Set dryRun to test without sending.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "task"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 200,
                    "description": "The user's work email; Newlithic replies here."
                  },
                  "task": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The task to demonstrate."
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "The user's name."
                  },
                  "objects": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Objects involved."
                  },
                  "success": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "What success looks like."
                  },
                  "robot": {
                    "type": "string",
                    "maxLength": 400,
                    "description": "The user's arm and end-effector."
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "The user's company or lab."
                  },
                  "dryRun": {
                    "type": "boolean",
                    "default": false,
                    "description": "Sandbox: validate and answer as a real send would, but store and email nothing."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sent (or validated, in the sandbox)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sandbox": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "A work email and a task are required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Could not send right now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Slots": {
        "type": "object",
        "properties": {
          "tz": {
            "type": "string",
            "examples": [
              "America/Los_Angeles"
            ],
            "description": "The team's time zone; slots themselves are UTC."
          },
          "slotMinutes": {
            "type": "integer",
            "examples": [
              30
            ]
          },
          "slots": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-time"
            }
          }
        }
      },
      "BookingResult": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "emailed": {
            "type": "object",
            "properties": {
              "guest": {
                "type": "boolean"
              },
              "team": {
                "type": "boolean"
              }
            }
          },
          "sandbox": {
            "type": "boolean",
            "description": "True when dryRun was set: nothing was booked."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Developer docs",
    "url": "https://newlithicrobotics.com/docs"
  }
}
