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

# Quickstart

> Make your first API request in under five minutes.

**1. Get your API key**

Every API request requires an API key tied to your organization. Generate one from your Posttu dashboard under **Settings → API Keys**.

> [!NOTE]
>
> API keys are scoped to a single organization. All resources created through the API belong to that workspace.

**2. Set your base URL**

All endpoints live under `/api/v1/`. the full base URL is:

```
https://posttu.com/api/v1
```

**3. Make your first request**

List your scheduled posts for the current month:

```bash cURL theme={null}
curl -X POST "https://posttu.com/api/v1/posts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

```javascript Node.js theme={null}
const response = await fetch("https://posttu.com/api/v1/posts", {
	method: "POST",
	headers: {
		Authorization: "Bearer YOUR_API_KEY",
		"Content-Type": "application/json",
	},
	body: JSON.stringify({}),
});
const data = await response.json();
console.log(data);
```

```python Python theme={null}
import requests

response = requests.post(
    "https://posttu.com/api/v1/posts",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={},
)
print(response.json())
```

**4. Create a post**

Schedule a post to publish tomorrow:

```bash theme={null}
curl -X POST "https://posttu.com/api/v1/posts/create" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "postDetails": {
      "base": {
        "text": "Hello from the Posttu API!",
        "timestamp": "2025-01-15T10:00:00Z"
      },
      "channels": ["ch_abc123"]
    },
    "isDraft": false
  }'
```

**5. Explore the API**

You now have the basics. Explore individual sections for more operations:

> [card] [Workflows](https://docs.posttu.com/api-reference/workflow/overview.md)
>
> Automate repetitive tasks with triggers and actions.

> [card] [Inbox](https://docs.posttu.com/api-reference/inbox/overview.md)
>
> Read and respond to messages across platforms.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.