# Truth Social Post API

Truth Social posts with text, URL, posted date, language, likes and reposts. Pass the handles.

**Pricing:** $0.0025 per post

**Endpoint:** `POST /v1/data/truth-social/post/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `handles` | array | Yes | One or more handles. One request reads them all. |
| `maxResults` | integer | No | How many posts to return in total. Defaults to 100; use 0 for all. |
| `postedAfter` | date | No | Posted After as a date (YYYY-MM-DD). |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/truth-social/post/run?wait=true" \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"handles":["..."]}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/truth-social/post/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "handles": [
        "..."
    ]
}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `postId` | Post ID | text |
| `postUrl` | Post URL | url |
| `postText` | Post Text | text |
| `postedDate` | Posted Date | text |
| `language` | Language | text |
| `likes` | Likes | number |
| `reposts` | Reposts | number |
| `replies` | Replies | number |
| `isPinned` | Is Pinned | boolean |
| `isQuote` | Is Quote | boolean |
| `isSensitive` | Is Sensitive | boolean |
| `repostedPostUrl` | Reposted Post URL | url |
| `repostedPostText` | Reposted Post Text | text |
| `originalPostDate` | Original Post Date | text |
| `quotedPostUrl` | Quoted Post URL | url |
| `quotedPostText` | Quoted Post Text | text |
| `hashtags` | Hashtags | object_array |
| `mentions` | Mentions | object_array |
| `linkCard` | Link Card | object |
| `postMedia` | Post Media | object_array |
| `authorId` | Author ID | text |
| `authorHandle` | Author Handle | text |
