# Connect an agent workflow to the Reeling publishing API | Reeling Blog

> A framework-neutral integration checklist for connecting an ElizaOS or other agent workflow to Reeling projects and publishing endpoints.

Canonical: https://reeling.app/blog/elizaos-autonomous-ai-agent-tiktok-video-plugin
Last updated: 2026-10-14

## Summary

A framework-neutral integration checklist for connecting an ElizaOS or other agent workflow to Reeling projects and publishing endpoints.

- **Author**: Reeling product team
- **Published**: 2026-10-12
- **Last reviewed**: 2026-10-14
- **Category**: AI Agents

## Start with the supported API contract

An agent framework needs an HTTP client, a secret store and a project mapping. Use the live OpenAPI definition to confirm supported fields. Do not assume that a package named in an older tutorial is installed, published or compatible with your framework version.

## Prove authentication with a read request

Set REELING_API_KEY in your runtime secret store, then fetch projects. Use the selected project ID when requesting channels. This read request checks access without sending content to a social network.

```
curl --fail-with-body https://api.reeling.app/api/v1/projects \
  -H "X-API-Key: $REELING_API_KEY"
```

## Separate drafting from publication

Have the agent prepare a proposal containing a video URL, caption, destinations and scheduled time. Review the proposal before POST /api/v1/publish. Store the returned post ID in the job record, and poll GET /api/v1/posts/{id} to inspect each destination.

## Handle permissions and failures explicitly

TikTok inbox delivery requires finishing the post in TikTok. Public Direct Post availability depends on the app audit and account settings. A partial failure should update the job with the failed destination; do not automatically repeat every platform. Keep credentials and media URLs out of public logs.

## Frequently Asked Questions

### How does an ElizaOS agent authenticate with Reeling publishing endpoints?

Provide an X-API-Key: YOUR_API_KEY header on every HTTP request to https://reeling.app/api/v1/* or configure the Reeling MCP server in your agent runtime. Always run an initial read check against GET /api/v1/projects to confirm valid authentication and obtain the target project ID before scheduling content.

### Why should autonomous agents separate content generation from live publishing?

Decoupling generation from publication creates a safe review gate where drafts can be inspected, spam-checked, and approved before dispatching network requests to live platforms. It also ensures transient LLM hallucination or rate limit errors do not produce corrupt or duplicate social media uploads.

### How should an autonomous agent verify whether a video upload succeeded on TikTok?

After calling reeling_publish_post or POST /api/v1/publish, save the returned post_id and poll GET /api/v1/posts/:id (or reeling_get_post_status). Inspect the publish_results object specifically for the TikTok destination: check that published is true and there is no error. An upload_status of finish_in_tiktok means the creator still needs to finish publication in TikTok.

### What payload parameters are required when publishing video via the Reeling API?

The POST /api/v1/publish payload requires project_id (string UUID), platforms (array of platform strings, e.g. ["tiktok"]), caption (string text), and video_url (a publicly reachable direct MP4/MOV URL under 100 MiB). Optional fields include scheduled_for (ISO 8601 timestamp) and platform-specific option dictionaries.

## Primary Sources & Documentation

- [Live Reeling OpenAPI definition](https://api.reeling.app/api/v1/openapi.json)
- [Reeling API reference and platform requirements](https://reeling.app/developers)

## Related

- [All Publishing Guides](https://reeling.app/blog)
- [Free Creator Tools](https://reeling.app/tools)
- [Plans & Pricing](https://reeling.app/pricing)

---
Need the interactive version? Visit https://reeling.app/blog/elizaos-autonomous-ai-agent-tiktok-video-plugin
Full site index for AI agents: https://reeling.app/llms.txt
