aeyho

Test mode

Build and test an integration for free. Test keys read your real account and answer changes with samples that store and charge nothing.

View as Markdown

On this page

How a test key behaves

A test key (aey_test_…) is a key in test mode. It:

  • Reads everything for real. Your brands, plans, reels, versions and comments come back as they are.
  • Answers every change with a sample, storing nothing and using no credits: making a brand, a reel, an idea's reel or a plan, asking for a change, adding an idea, starting research, comments, fixes, taste rules, restoring or approving a version, and a Reel Score check. A removal answers 204 and removes nothing.
  • Marks every answer. Each answer carries the header x-aeyho-livemode: false, and each sample has "livemode": false in its body. GET /account says "livemode": false too.

A sample has the same shape as the real answer, so your code can parse it. Its ids (such as reel_test and brand_test) are stand-ins: reading one back answers 404.

Webhooks with a test key

Webhooks are the one thing a test key really makes: test webhooks. They get only the test event (POST /webhooks/{webhookId}/test), never real events, so you can check your signature code safely.

Going live

Swap the test key for a live key (aey_live_…). Nothing else changes: the routes, the shapes and the errors are the same. Live calls that make something need a paid plan and use credits.

Try it

curl -X POST https://www.aeyho.com/api/v1/reels \
  -H "Authorization: Bearer $AEYHO_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brandId": "brand_123", "title": "Why a cache stampede happens"}'