Skip to main content
POST
/
api
/
v2
/
events
/
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.events.emit(
    name="name",
)
print(response.success)
{
  "success": true
}

Headers

idempotency-key
string

A unique identifier for the event. If the same event is sent with the same idempotency key, the event will be ignored.

Body

application/json
name
string
required

The name of the event to create.

payload
any

The payload data for the event.

Response

Default Response

success
boolean
required

Whether the event was emitted successfully.

I