Navigation

Mnemonic Studio Integration

Connect your mnemonic creation platform to the Mothership pearl economy

Step 1: Generate Game Credentials
Create your unique game ID and secret key
Pearl Reward System

Create Mnemonic

5 pearls

Get Upvote

2 pearls

Practice Session

3 pearls

Integration Code Example
// Report mnemonic creation
await fetch('/api/gameAPISupabase?endpoint=complete', {
  method: 'POST',
  headers: {
    'X-Game-ID': 'mnemonic_studio_01',
    'X-Timestamp': Date.now().toString(),
    'X-Nonce': generateNonce(),
    'X-Signature': generateSignature(...)
  },
  body: JSON.stringify({
    userEmail: 'user@example.com',
    levelId: mnemonicId,
    eventType: 'mnemonic_created',
    metadata: { idiom_id: '123', type: 'visual' }
  })
});

// Report upvote received
await fetch('/api/gameAPISupabase?endpoint=complete', {
  method: 'POST',
  body: JSON.stringify({
    userEmail: 'creator@example.com',
    levelId: mnemonicId,
    eventType: 'vote_received'
  })
});
Security Note

Never expose your secret key in frontend code. Always use a backend proxy to sign requests.