Skip to main content

Base URL

Onchain REST requests use:
Pulse and Trending snapshots use POST /v1/pulse and POST /v1/trending. See the quickstart. Enterprise customers with a dedicated domain can use their own host. See SDK Configuration for the override.

Authentication

Most endpoints accept an API key or a JWT public key. DEX trading endpoints (/trading/*) require an API key. Send the key in the X-API-Key header.
See Authentication for secret keys, JWT public keys (browser-safe), rotation, and the full error responses.
Keep sk_live_* keys secret. Never embed them in client-side code, mobile apps, or public repositories. Use pk_jwt_* keys for any environment you do not fully control.

Chains

Almost every endpoint requires chain or chain_id. There is no default on strict endpoints. Pass chain or chain_id on requests that need a chain. Rooms and endpoints with multi-chain support, including Pulse and Trending, also accept chains and chain_ids; those selectors are combined. Follow the individual endpoint or room reference. Polygon is not a supported onchain chain.

Making your first request

1

Create an account

Sign up at struct.to/dashboard and create an organisation.
2

Generate an API key

Open the API Keys page in your dashboard and create a new key. Copy the value somewhere safe; you won’t be able to view it again. See Authentication for key types, JWT public keys, and rotation.
3

Send a request

Use the base URL, your API key, and a chain selector:

Response format

Successful responses include success and data. Optional message, info, and pagination fields depend on the endpoint. Pulse and Trending snapshots return an ordered data array. Every onchain REST and WebSocket payload is available with long (full) or short (abbreviated) field names. The example panel on the right has Response (Long) and Response (Short) so you can compare the same payload in both modes. short and long are accepted across these surfaces. The HTTP /token/market/candlestick endpoint also accepts fields=array (or x-field-names: array), returning [time, open, high, low, close, volume] rows with millisecond timestamps and retained null slots. Other HTTP endpoints and WebSocket connections reject array. See token candlesticks. Successful HTTP responses echo the chosen mode in the x-field-names response header. On WebSocket the mode is fixed per connection and every room honours it: each room’s update payloads arrive in the connection’s mode, whichever rooms you join. Use long when you want readable names such as market_cap_usd and token_address. Use short when you want smaller messages (mc, ta) — typical for high-frequency WebSocket clients. The lock endpoints (/token/locks, /token/pool-locks, /token/owner-locks and /token/lock-events) shorten their keys like every other endpoint: data is the list of lock entries or events, each with short keys. On token and pool rows, lp_security is ls and supply_locks is sl. On token holder rows, a locker’s locks breakdown is lks. See LP and token locks for the lock key table. Envelope keys stay the same in both modes (success, data, type, room_id, interval_ms, WebSocket frame keys beside data such as chain, chain_id, token_address and timeframe, and Pulse/Trending frame keys such as columns and rows). Subscribe responses and errors also keep long keys. Only the payload fields change.

Rate limits

Limits depend on your plan. See Rate Limits for the full matrix and Pricing for credit allowances.

Errors

Failures return the same envelope with success: false. For the full status-code reference and retry guidance, see Errors.
Last modified on September 26, 2026