---
title: "Propose tightened schematic text bounding boxes"
method: POST
path: "/api/v0/components/{component_id}/schematic/tighten-text-bboxes"
tags: ["Components"]
---

# Propose tightened schematic text bounding boxes

`POST /api/v0/components/{component_id}/schematic/tighten-text-bboxes`

## Request

- Base URL: `https://api.outerport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outerport.com/api/v0/components/{component_id}/schematic/tighten-text-bboxes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/outerport/apis/outerport-api/docs/api/v0/components/:component_id/schematic/tighten-text-bboxes/post.ts> (a function with typed inputs; its response is checked against the schema)

Calibrates the rendered page background and shrink-wraps each supplied text bbox. Results are ephemeral and are not persisted.

## Path parameters

- `component_id` string, required

## Query parameters

- `vc_id` string, required: Public ID of the target visual component

## Request body

- TightenTextBboxesRequest
  - `regions` TightenRegion[]
    - `entity_id` string, required
    - `bbox` TightenRect, required
      - `x0` number, required
      - `y0` number, required
      - `x1` number, required
      - `y1` number, required

## Response `200`

Successful Response

- TightenTextBboxesResponse
  - `result` TightenResultModel[], required
    - `entity_id` string, required
    - `original_bbox` TightenRect, required
      - `x0` number, required
      - `y0` number, required
      - `x1` number, required
      - `y1` number, required
    - `bbox` TightenRect, required
      - `x0` number, required
      - `y0` number, required
      - `x1` number, required
      - `y1` number, required
    - `changed` boolean, required
  - `timings` TightenTimings, required
    - `fetch_ms` integer, required
    - `decode_ms` integer, required
    - `tighten_ms` integer, required
    - `total_ms` integer, required
  - `image_width` integer, required
  - `image_height` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-25** `fcd15f6d35b4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outerport/apis/outerport-api/changes/api/v0/components/:component_id/schematic/tighten-text-bboxes/post.md)

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) - [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outerport/apis/outerport-api/revisions/08b5bf6f7f18?raw)
