Tell your agent to use postctl.com/agent. It self-discovers the API, links your X account, and publishes posts and threads for you.