---
title: "Añadir una fuente del tipo texto"
method: POST
path: "/api/v2/sources/text"
---

# Añadir una fuente del tipo texto

`POST /api/v2/sources/text`

## Headers

- `X-Language` 'en' | 'es' | 'pt' | 'ru'

## Request body

- object
  - `RAW_BODY` object
    - `name` string, required — Nombre de la fuente
    - `text` string, required — De 10 caracteres a: 5000 para 'agent'; 2000 para 'suggested_reply'
    - `lang` 'en' | 'es' | 'pt' | 'ru', required — Valores posibles: en/es/pt/ru. El idioma del contenido en el archivo. Puede ser diferente del idioma de la solicitud.
    - `available_functions` string[], required — Define qué funcionalidad utilizará la fuente. Actualmente, están separadas y no pueden utilizarse en simultáneo. Un arreglo de valores válidos. Los valores válidos son: suggested_reply/agent. El arreglo debe contener solo 1 elemento. De lo contrario, se producirá un error de validación.
    - `code` 'contact_information' | 'privacy_policy' | 'return_and_refund_policy' | 'shipping_policy' | 'terms_of_service' — Opcional. Si no se pasa, se pasará como null. Si se pasa un valor, debe ser una cadena. Los valores permitidos son: contact_information/privacy_policy/return_and_refund_policy/shipping_policy/terms_of_service.

## Response `200`

200

- object
  - `id` integer
  - `name` string
  - `updated_at` integer
  - `updated_by` integer
  - `code` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/kommo/apis/kommo-api.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api/revisions/e291c0b2038d/schema)
