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

# Posts

> Create, list, update, and delete post records.

## Create

```typescript theme={null}
const { data } = await vj.createPost({
  accountId: "acc_...",
  caption: "The one thing nobody tells you about creatine",
  mediaUrl: "https://cdn.vidjutsu.ai/uploads/...",
});
```

## List all

```typescript theme={null}
const { data } = await vj.listOrGetPosts();

// Filter by account
const { data } = await vj.listOrGetPosts({ accountId: "acc_..." });
```

## Get by ID

```typescript theme={null}
const { data } = await vj.listOrGetPosts({ id: "post_..." });
```

## Update

```typescript theme={null}
const { data } = await vj.updatePost(
  { caption: "Updated caption" },
  { id: "post_..." },
);
```

## Delete

```typescript theme={null}
const { data } = await vj.deletePost({ id: "post_..." });
```

## Rate limit

Counts toward the 200/day `posts` rate limit. No per-call charge.
