POST /v1/auth/register
Creates a user record and returns an API key. This endpoint requires signature verification to prove wallet ownership.
- Method:
POST - Path:
/v1/auth/register
Registration Flow
Section titled “Registration Flow”- Create a message: Format
darkfibre:<timestamp>where timestamp is current time in milliseconds - Sign the message: Sign it with your Solana wallet (Ed25519 signature, base58 encoded)
- Send request: Include
walletAddress,message, andsignaturein the request body - Server verification: Server verifies the signature matches the wallet address and message
{ "walletAddress": "YOUR_SOLANA_WALLET_ADDRESS", "message": "darkfibre:1736123456789", "signature": "BASE58_ENCODED_SIGNATURE"}Fields
Section titled “Fields”walletAddress(string, required): Your Solana wallet address (base58)message(string, required): Message in formatdarkfibre:<timestamp>that you signedsignature(string, required): Base58-encoded signature of the message, signed by your wallet
Response
Section titled “Response”{ "success": true, "data": { "apiKey": "api_…", "walletAddress": "YOUR_SOLANA_WALLET_ADDRESS" }}- Errors: see Errors