Skip to main content

Prerequisites

API Access is Locked
programmatic access is locked by default. Before you can make any authenticated calls, you must contact Michel ([email protected]) to enable API access for your organization.
  • API access enabled for your organization (by contacting Michel)
  • An API key from Developer in the app (yph_sk_live_…)
  • Your environment base URL (see Introduction)
Building with an AI Copilot? You can copy our AI Integration Skills Context (/llms.txt) and paste it directly into your AI prompt (or attach it as a file). It is fully optimized to tell LLMs exactly how our video upload, actor creation, and Insta Swap rendering flows operate.
Replace BASE_URL and YOUR_API_KEY in the examples below.

1. Health check (no auth)

Expected response:

2. Account and credits

Expected response:

3. List actors

Typical integration flow

1

Create a Digital Sample

POST /digital-samples with title and render prompts.
2

Upload seed video

POST /digital-samples/{id}/seed/upload-url → PUT file to presigned URL → POST …/seed/register (automatically validates, approves, and activates the sample).
3

Create an Actor

Upload face/body/voice assets via your app workflow or presigned URLs, then POST /actors.
4

Queue Insta Swap

POST /digital-samples/{id}/insta-swaps with actorId. Render starts automatically; credits are charged.
5

Poll or webhook

GET /insta-swaps/{id} until status is terminal, or handle insta_swap.completed / insta_swap.failed webhooks.
See End-to-end workflow for detail.

Errors