# List user posts

Returns posts submitted by required `username`. Use `sort` for ordering and `after` for pagination.

- Platform: Reddit V2
- Request: `GET https://api.toolzerhub.com/v2/reddit/user/posts`
- Auth: `x-api-key` header
- Cost: 2 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/reddit-v2/user/get-reddit-user-posts

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `username` | query | yes | string | Reddit username without the u/ prefix. |
| `sort` | query | no | enum: NEW, TOP, HOT, CONTROVERSIAL | Sort order for the user's submissions. |
| `after` | query | no | string | Cursor from the previous response used to fetch the next page. |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/reddit/user/posts?username=<username>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
