> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ugc.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Text Media

> Create text media entries from raw text content

## Endpoint

```bash theme={null}
POST https://api.ugc.inc/media/create/text
```

## Request Body

<ParamField body="texts" type="Array<{ content: string; name?: string; tag?: string }>">
  Non-empty array of text payloads.
</ParamField>

## Response

<ResponseField name="data" type="{ data: UserMedia[]; message: string }">
  Created text media entries.
</ResponseField>

## TypeScript

```typescript theme={null}
const res = await client.media.importText({
  texts: [{ content: 'Hook line', name: 'hook-1', tag: 'hooks' }],
});
```
