Skip to main content
POST
Send events to Formo from any source. Sending custom events? See the event specs.
This endpoint is hosted on events.formo.so, a separate service from the main API at api.formo.so.
Sending events from the backend? Use the server-side SDK.

Rate limits

Each project can send up to 500 events per second, counted in 5-second windows (2,500 events per window). One event in a batch counts as one event. A request above the limit gets HTTP 429 with a Retry-After header and a body like {"error": "...", "retry_after_seconds": 3}. No event from that request is stored. Wait for the number of seconds in Retry-After, then send the request again. The Formo SDKs retry a 429 on their own. If you call this endpoint directly, for example for a bulk import, send batches at a steady rate below the limit and retry on 429. Need a higher limit? Contact us.

Authorizations

Authorization
string
header
required

Project SDK write key (a JWT), sent as Authorization: Bearer <write key>. This is NOT the formo_... workspace API key used on api.formo.so. Find it in the Formo dashboard under the project’s settings.

Body

application/json
type
enum<string>
required

Event type. The mobile SDK sends screen for screen views. Any other value returns 400 and no event in the request is stored.

Available options:
page,
screen,
connect,
disconnect,
chain,
signature,
transaction,
track,
detect,
identify,
web_vitals
channel
enum<string>
required

Source of the event. The Formo Web SDK uses web; mobile SDK uses mobile; server SDK uses server. Use api for direct HTTP submissions and import for backfills.

Available options:
web,
mobile,
server,
api,
import
version
string
required

SDK schema version. Web SDK 1.x emits 1; legacy clients emit 0.

Example:

"1"

anonymous_id
string
required

Anonymous visitor identifier

user_id
string | null

Identified user ID

address
string | null

Wallet address

event
string | null

Event name (for track events)

context
object

Contextual information about the event environment

properties
object

Event-specific properties. Can contain any key-value pairs relevant to the event.

original_timestamp
string<date-time>
sent_at
string<date-time>
message_id
string

Unique ID for deduplication. Optional; a UUID is generated server-side when omitted.

Response

Batch accepted. The body carries an ingestion summary when one is available, otherwise {}.

The response is of type object.