API Keys
Manage API keys for the Torque event ingestion pipeline
API keys are used to send custom events to the Torque ingestion pipeline. You need an API key in the x-api-key header when sending event data.
list_api_keys
List your API keys for the event ingestion pipeline. Keys are shown masked.
Requires: authentication
No parameters.
create_api_key
Create a new API key for sending custom events.
Requires: authentication
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Display name for the API key |
The key is shown once upon creation and cannot be retrieved later. Copy it immediately.
Sending Events
Once you have an API key and a custom event schema, send events to the ingestion endpoint:
curl -X POST https://ingest.torque.so/events \
-H "Content-Type: application/json" \
-H "x-api-key: your-api-key" \
-d '{
"userPubkey": "<wallet address>",
"timestamp": 1234567890000,
"eventName": "your_event_name",
"data": {
"field1": "value",
"field2": 123
}
}'userPubkey and timestamp are required top-level properties on every event. Your custom fields go inside data.