Skip to navigation

Simulate a fan message

Makes a synthetic fan write to a synthetic creator in the sandbox.

The body is {conversationId?, text?}. Without conversationId, a new synthetic fan opens a conversation. text is 1–1000 characters; without it, a synthetic line is used. The message is a real chat message that the REST reads return.

What is recorded

The same events a real fan message records: message.received, preceded by conversation.created when the message opens the conversation. Every recorded event carries data.sandbox: true and goes to this creator’s agency only. See the event catalogue.

Nothing is ever written to an order, payment, ledger, billing, payout or entitlement record, and no platform event is emitted.

Idempotency

Send an Idempotency-Key so that a retry records nothing twice: the retry returns 200 with the first outcome instead of 201.

Errors

  • 403 SANDBOX_APPLICATION_REQUIRED — a live application called the simulator for a real creator.
  • 403 ENVIRONMENT_MISMATCH — a live application called the simulator for a sandbox creator.
  • 404 SANDBOX_CREATOR_NOT_FOUND — the creator is not a current sandbox creator of your agency.
  • 404 CONVERSATION_NOT_FOUND — conversationId is not one of this sandbox creator’s conversations.
  • 409 SANDBOX_FAN_LIMIT — a new synthetic fan is needed, and the creator already has the most allowed (50).

Required scopes: read:messages.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:read:messages

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Idempotency-KeystringOptional1-128 characters
Optional. Up to 128 printable characters. A retry with the same key returns the first outcome and records nothing again.

Request

This endpoint expects an object.
conversationIdstringOptional1-64 characters
messageIdstringOptional1-64 characters

ppv-unlock only.

textstringOptional1-1000 characters

message only.

Response

A retry with the same Idempotency-Key: the first outcome, with nothing recorded again.

sandboxtrue
kindenum
Allowed values:
sourceEventslist of strings

The platform events a REAL action of this kind emits, resolved by the same resolver — never emitted here.

eventslist of objects

The events that were recorded, in order. In the feed, each also carries data.sandbox = true.

conversationIdstring or null
messageIdstring or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error