Base URL: https://api.styx.so
Include your API key in the Authorization header:
Authorization: Bearer styx_your_api_key/v1/messagesSend an encrypted message to a virtual token account
{
"recipient": "VTA_ADDRESS",
"message": "encrypted_payload_base64",
"ttl": 86400
}{
"id": "msg_abc123",
"signature": "5YNmS...",
"slot": 123456789,
"status": "confirmed"
}/v1/messages/:idRetrieve a message by ID
{
"id": "msg_abc123",
"recipient": "VTA_ADDRESS",
"sender": "SENDER_PUBKEY",
"createdAt": "2024-01-01T00:00:00Z",
"expiresAt": "2024-01-02T00:00:00Z"
}/v1/airdropsCreate a new WhisperDrop airdrop campaign
{
"name": "Community Airdrop",
"merkleRoot": "abc123...",
"tokenMint": "TOKEN_MINT_ADDRESS",
"totalAmount": 1000000
}{
"id": "drop_xyz789",
"merkleRoot": "abc123...",
"claimUrl": "https://styx.so/claim/...",
"status": "active"
}/v1/vta/createCreate a virtual token account for a wallet
{
"owner": "OWNER_PUBKEY",
"label": "Main Account"
}{
"vta": "VTA_ADDRESS",
"signature": "5YNmS...",
"slot": 123456789
}