x-api-key header on every request.
Replace https://api.stockly.com below with your Stockly API base URL.
1. Create a user
Provide anemail, your own externalId, or both. Stockly provisions a Solana wallet for
the user as part of the call.
user and their wallet (with the solanaAddress). Keep the
user.id — you’ll reference it when recording rewards.
2. Give stock
Give a user $1 of Apple. PickassetSymbol from the catalog (GET /v1/assets) and generate
a fresh idempotencyKey per award (a UUID works well).
recorded. Stockly then executes the on-chain purchase
and delivers the stock to the user’s wallet.
3. Track the award
Poll the award to watch it go fromrecorded to executed and grab the on-chain transaction:
cURL
status: "executed", a txSignature, and an
explorerUrl linking to the swap on a Solana explorer.
That’s it — you created a user, gave them stock, and tracked the award. Open the
API Reference tab for every endpoint, field, and an interactive playground.