Skip to navigation

Sandbox

Build and test your integration end to end against synthetic creators, fans and purchases — nothing reaches a real person and no money moves.

A sandbox application works exactly like a live one — the same endpoints, the same tokens, the same events — but it can act only for synthetic creators in your agency’s sandbox. You can make their synthetic fans write messages, unlock pay-per-view messages, tip, subscribe and place orders, and watch the events arrive just as they will in live.

Synthetic creators are created for your agency’s sandbox by the agency owner or a team lead — never by an application. Ask them to set some up before you start.

Sandbox and live applications

You choose the environment when you create the application in the Partner Hub (Integrations → Applications → New application, step Environment). It cannot be changed later.

SandboxLive
Client IDevpc_test_…evpc_live_…
Access tokenevpa_test_…evpa_live_…
Becomes activeAt once, no reviewAfter EVVA’s review
Allowed scopesCan be changed at any timeCan be narrowed; scopes cannot be added after review
Acts forSynthetic creators of your agency’s sandboxYour real creators

Everything else is the same: requesting tokens, scopes and grants, rate limits and every API call you make.

The two worlds never meet

EVVA checks the application’s environment against the creator’s on every request:

ApplicationCreatorResult
SandboxA synthetic creator of your agency’s sandboxAllowed (the usual access rules still apply)
SandboxA real creator403 ENVIRONMENT_MISMATCH
SandboxAnother agency’s synthetic creator403 ENVIRONMENT_MISMATCH
LiveA synthetic creator403 ENVIRONMENT_MISMATCH

The same rule decides which events your application receives, through the event feed, realtime and webhooks alike. A creator that no grant reaches is refused with 403 NOT_ASSIGNED first, whatever their world.

Synthetic creators

Synthetic creators are created for your agency’s sandbox by your agency — the agency owner or a team lead — never by an application. Each one is:

  • an account with no password or other sign-in credential, at a reserved example.test address that can never receive mail;
  • withheld from every public surface of EVVA, so no real fan ever sees it;
  • closed to custom requests, and to messages and orders from anyone but its own synthetic followers;
  • linked to your agency by a synthetic consent;
  • created with three synthetic fans, each following the creator and holding a conversation with a short message history.

Synthetic creators are easy to recognise: their handles start with sbx_, their display names with Sandbox (for example Sandbox Amber Otter 1), and their fans’ names with Sandbox Fan. They are generated from a seed, so the same seed always produces the same content.

LimitValue
Synthetic creators created at once10
Synthetic creators per agency25
Synthetic fans per synthetic creator, including fans the simulator adds50

Granting them

Nothing is granted automatically. Grant synthetic creators to your sandbox application exactly as you would grant real ones: Integrations → Applications → your application → Permissions & creators → Grant access. Your application then sees them in GET /partner/v1/accounts — the only creators a sandbox token ever sees.

Resetting the sandbox

Your agency can reset its sandbox to start over. A reset ends the synthetic consent of every current synthetic creator, so no application and no staff member can reach them any more; nothing is deleted, and they never become live accounts. New synthetic creators get new IDs — the same seed reproduces the same content under them. Grants that named the old creators reach nothing: grant the new ones.

Simulating buyer actions

A sandbox application can make a synthetic fan act, with one call per kind of action — a POST to https://api.evvahub.com/partner/v1/sandbox/creators/{creatorId}/simulate/<kind>:

<kind>BodyWhat happensEventsScope
messageconversationId (optional), text (optional, 1–1000 characters)A synthetic fan writes to the creator. Without conversationId, a new synthetic fan opens a conversation. Without text, a synthetic line is used. The message is a real chat message your API reads return.message.received, preceded by conversation.created for a new conversationread:messages
ppv-unlockmessageId (required)The fan unlocks a locked pay-per-view message the creator sent. No payment exists, so the message’s purchase status stays unpaid.ppv.purchasedread:messages
tipconversationId (required)The fan tips: a tip chat message is written in the conversation, as a real tip writes one before its payment. The tip’s order is synthetic: it is never stored and never charged.message.received, then tip.receivedread:messages
subscriptionconversationId (optional)That conversation’s fan, or a new synthetic fan, subscribes.subscriber.startedread:subscribers
orderconversationId (optional)That conversation’s fan, or a new synthetic fan, places and pays a custom-request order. The order exists only in memory, so the REST order reads never return it.order.paidread:orders

The scope is the one under which the resulting events are visible, so an application can simulate only what it is allowed to observe. The application needs that scope for the synthetic creator, through a grant, like any other operation.

ppv.purchased, tip.received and order.paid are facts about money. As for a real purchase, your application receives them only when its access also covers read:revenue. The simulation itself does not need that scope.

Send an Idempotency-Key header (up to 128 printable characters) to make a retry safe: the same key returns the first outcome and records nothing again.

# A new synthetic fan opens a conversation and writes
curl -sS -X POST "https://api.evvahub.com/partner/v1/sandbox/creators/$CREATOR_ID/simulate/message" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: sim-1" \
-H "Content-Type: application/json" \
-d '{"text": "Hi! Is the new set out?"}'
# The fan unlocks a pay-per-view message the creator sent
curl -sS -X POST "https://api.evvahub.com/partner/v1/sandbox/creators/$CREATOR_ID/simulate/ppv-unlock" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"messageId\": \"$PPV_MESSAGE_ID\"}"

A simulation answers 201 Created when it recorded something, and 200 OK when the same Idempotency-Key had already been used:

201 Created
{
"sandbox": true,
"kind": "message",
"sourceEvents": ["…"],
"events": [
{ "type": "conversation.created", "conversationId": "conv_123" },
{ "type": "message.received", "conversationId": "conv_123" }
],
"conversationId": "conv_123",
"messageId": "msg_123"
}
FieldMeaning
sandboxAlways true.
kindThe simulated action.
eventsThe events recorded, in order, including any your application’s access does not let it receive.
sourceEventsThe platform events the real action would have produced. Informational.
conversationId, messageIdThe conversation and message involved, or null.

Then read what happened exactly as you will in live — for example from the event feed — and answer through the real API. Every event the simulator records carries data.sandbox: true.

Simulator errors

StatuscodeMeaning
400INVALID_REQUESTThe body or the Idempotency-Key is not valid.
403SANDBOX_APPLICATION_REQUIREDA live application called the simulator.
403ENVIRONMENT_MISMATCHThe application and the creator are in different worlds.
404SANDBOX_CREATOR_NOT_FOUNDNot a current synthetic creator of your agency (for example, one retired by a reset).
404CONVERSATION_NOT_FOUNDNot one of this synthetic creator’s conversations.
404MESSAGE_NOT_FOUNDNot a message in this synthetic creator’s conversations.
409MESSAGE_NOT_LOCKEDppv-unlock named a message that is not a locked pay-per-view message the creator sent.
409SANDBOX_FAN_LIMITThe synthetic creator already has the most synthetic fans allowed (50).
429RATE_LIMIT_EXCEEDEDYour agency’s simulation budget is used up. Nothing was simulated. Retry after Retry-After.

What the sandbox never does

  • No money moves. Unlocks, tips, subscriptions and orders are simulated: no payment, order, ledger, billing, payout or entitlement record is ever written.
  • No real person is reached. Synthetic creators and fans have no credentials, their addresses cannot receive mail, and they are invisible to everyone outside your agency’s sandbox.
  • No live data is used. A sandbox token can never read or act for a real creator.

Limits

The sandbox cannot exhaust shared resources. Its budgets are counted per agency, shared by all of your sandbox applications and staff:

BudgetDefaultWhen exceeded
Simulations60 per minute429 RATE_LIMIT_EXCEEDED, with Retry-After
Media stored for synthetic creators (open uploads and kept files)1 GiB409 SANDBOX_QUOTA_REACHED
Media uploads for synthetic creators60 per hour429 SANDBOX_QUOTA_REACHED

Media and posts for synthetic creators are created by your application through the real API and go through the real processing, but stay confined to the sandbox. SANDBOX_QUOTA_REACHED names the exhausted budget and includes used and limit. Sandbox media never counts against a creator’s own storage.

Only a locked pay-per-view message that the synthetic creator sent in one of its own conversations. A synthetic creator’s starting history holds plain messages only, so there is nothing to unlock until the creator has sent a paid message.

No. The environment is fixed when the application is created. Create a separate live application when you are ready; it starts in review and gets its own evpc_live_ credentials.

The order exists only in memory: it is never stored and never charged. The simulator records the order.paid a real paid custom-request order records, and your application receives it only when its access covers both read:orders and read:revenue.

Next steps