AutoEditor — Agent Interface

This page is optimized for AI agents. You can sign in, upload videos, choose editing modes, and buy subscriptions on behalf of a user.

Quick Start

1. Sign in with the user's credentials to get a session token.

2. Use the token to upload a video and create a job.

3. Choose the best editing mode for the video.

4. Optionally buy a subscription for the user.

Actions

POST https://api.autoeditor.app/agent/sign-in

Sign in on behalf of the user. Returns a Supabase access token (JWT) and the user's API key.

Body:

{
  "email": "user@example.com",
  "password": "their-password"
}

Returns: { accessToken, apiKey, userId }

Use the accessToken as Authorization: Bearer <accessToken> for all subsequent calls.

POST https://api.autoeditor.app/agent/upload auth required

Create a new editing job from a video URL. The video will be downloaded and processed automatically.

Headers: Authorization: Bearer <accessToken>

Body:

{
  "videoUrl": "https://example.com/video.mp4",
  "mode": "long",
  "aggression": "high",
  "filename": "optional-filename.mp4"
}

mode options: long (long-form), vertical (shorts/reels), horizontal (standard)

aggression options: low, medium, high, viral

Returns: { jobId, status, estimatedDuration }

POST https://api.autoeditor.app/agent/choose-mode

Get a recommendation for the best editing mode based on video properties. No auth required.

Body:

{
  "durationSeconds": 813,
  "hasSpeech": true,
  "contentType": "talking-head",
  "description": "A delivery driver sharing tips about making money"
}

contentType options: talking-head, gaming, podcast, vlog, tutorial, reaction, interview, unknown

Returns: { recommendedMode, recommendedAggression, reasoning }

POST https://api.autoeditor.app/agent/subscribe auth required

Create a Stripe checkout session for a subscription plan. Returns a URL the user must visit to complete payment.

Headers: Authorization: Bearer <accessToken>

Body:

{
  "plan": "creator",
  "billing": "monthly"
}

plan options: basic, starter, creator, studio, founder

billing options: weekly, monthly, annual

Returns: { checkoutUrl }

GET https://api.autoeditor.app/agent/job/:jobId auth required

Check the status of an editing job.

Returns: { status, progress, outputUrl, durationSeconds, viralScore }

GET https://api.autoeditor.app/agent/plans

List all available subscription plans with pricing. No auth required.

Machine-Readable Manifest

Fetch the full action schema at https://api.autoeditor.app/agent/manifest or /ai-manifest.json

LLM-friendly site description at /llms.txt

Auth Methods

After sign-in, use the returned accessToken as a Bearer token. Alternatively, if the user has an Atlas API key (atlas_...), use that directly.

Guest access is available via X-Guest-Token header for free-tier testing.