---
title: "Fix String Literals"
method: POST
path: "/v1/fix-string-literals"
tags: ["Fixer"]
---

# Fix String Literals

`POST /v1/fix-string-literals`

Fix string literal issues in TypeScript files.

## Request body

- object
  - `file` object, required — File to process
    - `path` string, required — Path to the file
    - `contents` string, required — File contents
  - `event_id` string, nullable — Unique identifier for the event
  - `meta` object, nullable — Meta information for the request
    - `external_id` string, nullable — Customer tracking identifier

## Response `200`

Successful Response

- object
  - `data` object, required — The actual response data
    - `status` 'FIXED' | 'ALREADY_FIXED' | 'NO_ISSUES_FOUND' | 'fix_applied', required — Status of the fix operation
    - `contents` string, required — The file contents (original or fixed)
    - `strategy_statistics` object[], required — Strategy statistics for the single file
      - `strategy_name` string, required
      - `version_hash` string, required
      - `fixes_fired` boolean
      - `fixes_applied` boolean
    - `error` string, nullable — Error details if status is 'error'
    - `fixer_version` string, required — Version of the fixer
  - `meta` object — Meta information
    - `trace_id` string, nullable — Unique trace identifier for the request
    - `external_id` string, nullable — Customer tracking identifier
  - `error` object, nullable — The error from the API query
    - `code` string, required — The error code
    - `message` string, required — The error message
    - `details` object — Details about what caused the error

## Other responses

- `400` — Bad request
- `500` — Internal server error

## Changes

- **2025-10-29** `17a1ccb59fba` — 1 info
  - api operation id `fix_string_literals` was added
- **2025-10-29** `1a4801fc49a1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/benchify/apis/benchify-api/changes/v1/fix-string-literals/post.md)

---

[API](https://skmtc.dev/benchify/apis/benchify-api.md) · [All operations](https://skmtc.dev/benchify/apis/benchify-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/benchify/benchify-api/revisions/1a65aea8dd7d/schema)
