---
title: "POST /public/v1/writing-styles/{id}/samples"
method: POST
path: "/public/v1/writing-styles/{id}/samples"
tags: ["Writing Styles"]
---

# POST /public/v1/writing-styles/{id}/samples

`POST /public/v1/writing-styles/{id}/samples`

Add a writing sample (pasted CONTENT or a WEBSITE URL) to a writing style.

## Path parameters

- `id` string, required

## Request body

- object
  - `type` 'WEBSITE' | 'CONTENT', required
  - `source` string — For WEBSITE: the URL. For CONTENT: an optional label.
  - `content` string — For CONTENT: the pasted writing text.

## Response `201`

Default Response

- object
  - `statusCode` number
  - `status` boolean
  - `message` string
  - `data` object
    - `sample` object
      - `id` string
      - `type` string
      - `source` string
      - `content` string
      - `created_at` string

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `429` — Default Response
- `500` — Default Response

---

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