---
title: "Add Prefix and Suffix"
method: POST
path: "/api/v1/tools/add-prefix-suffix"
tags: ["tools"]
---

# Add Prefix and Suffix

`POST /api/v1/tools/add-prefix-suffix`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/add-prefix-suffix`
- Auth: HTTP bearer

Put the same text in front of and behind every line of a text. Nothing is escaped or interpreted, so quotes, commas, brackets and HTML tags all pass through as typed. Use it to wrap a column of values in quotes for a SQL IN clause, turn a keyword list into hashtags, or build list markup from plain lines.

## Request body

- object
  - `text` string
  - `prefix` string
  - `suffix` string
  - `skipEmptyLines` boolean

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `result` string
    - `lines` integer
    - `changed` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
