Skip to main content
POST
Trigger test event

Authorizations

Authorization
string
header
required

Polymorfa organization key (pmfa_ prefix), project token (pmfa_pt_ prefix) where supported, or short-lived client token (pmfa_ct_ prefix). Organization and project keys may be personal or service-account owned and enforce selected action scopes. Organization keys cover the team and its projects; project tokens stay inside one project. Client tokens stay inside their live project and session and enforce their client rules.

Headers

idempotency-key
string

Specifies idempotency key for this header parameter.

Value constraints

Pattern: ^[\x21-\x7e]{1,255}$

Path Parameters

projectId
string<uuid>
required

Identifier of the Polymorfa project that owns this resource.

Value constraints

Body

application/json
session
string
required

Test number session name in the project.

Value constraints

Required string length: 1 - 128
event
enum<string>
required

Fixture name. Each name is the event type it produces.

Allowed values

Available options:
message.received,
message.ack,
message.failed,
call.received,
call.missed,
call.ended,
session.status,
template.status,
bansafe.enforcement,
bansafe.risk_changed
overrides
object

Specifies overrides for this native trigger test event request.

fromSession
string

message.received only. Send a simulated text message from this other connected Test number in the same project instead of generating an event.

Value constraints

Required string length: 1 - 128

Response

Test event accepted for delivery

event
enum<string>
required

Specifies event for this native trigger test event response.

Allowed values

Available options:
message.received,
message.ack,
message.failed,
call.received,
call.missed,
call.ended,
session.status,
template.status,
bansafe.enforcement,
bansafe.risk_changed
session
string
required

Identifier of the connected Polymorfa session.

delivery
enum<string>
required

Specifies delivery for this native trigger test event response.

Allowed values

Available options:
generated,
simulated
eventId
string<uuid> | null
required

Identifier for the event.

Accepted alternatives

Value constraints

source
enum<string>
required

Specifies source for this native trigger test event response.

Allowed values

Available options:
test,
runtime