Setup · REST API · 4 min read
Personal API keys & REST API v1 for custom automations
Building a custom agent, webhook workflow, or script? Memokind exposes the exact same capabilities over REST API v1 and Streamable HTTP MCP using personal API keys.
- 1Create a personal API key
Sign in and visit /my/connections. Enter a label for your script or agent and copy the generated `mk_key_...` secret (shown once).
- 2Upload photos with explicit consent
POST `/api/v1/uploads` with a JPEG, PNG or WebP (up to 10 MiB) via multipart, base64, or HTTPS, with consent. Check the template’s photo limit and pass the resulting IDs in order as `uploadIds`.
- 3Create a project and quote a preview
POST `/api/v1/projects`, then answer any follow-up questions via `/answers`. GET `/api/v1/projects/:id/preview?stage=preview`; after user approval, POST a preview with `stage` and `expectedCredits`.
- 4Render the full film or hand off checkout
POST `/api/v1/projects/:id/film` after quoting via GET, with `lengthS` (30/60/90/120), `expectedCredits`, and `acceptAiNotice: true`. If credits are insufficient, HTTP 402 returns a user-facing `checkoutUrl`.
# Public catalog (no auth) curl https://memokind.com/api/v1/templates # Check your credit balance curl -H "Authorization: Bearer mk_key_YOUR_TOKEN" \ https://memokind.com/api/v1/credits
Point code generators or agent frameworks at /llms.txt for the concise overview or /llms-full.txt for full JSON schemas and rate limits.