Skip to main content
curl -X GET "https://api.strike.markets/test-auth" \
  -H "X-API-Key: stk_your_api_key_here"
{
  "authenticated": true,
  "wallet_address": "0x742d35cc6c6c7532b1140da4c8a2f6c8ecfc9b46",
  "api_key_present": true,
  "api_key_type": "personal",
  "timestamp": "2024-01-15T16:30:00Z"
}
curl -X GET "https://api.strike.markets/test-auth" \
  -H "X-API-Key: stk_your_api_key_here"
{
  "authenticated": true,
  "wallet_address": "0x742d35cc6c6c7532b1140da4c8a2f6c8ecfc9b46",
  "api_key_present": true,
  "api_key_type": "personal",
  "timestamp": "2024-01-15T16:30:00Z"
}

Overview

Test authentication and API key validity. Useful for verifying your API key setup and debugging authentication issues.

Authentication

Include your API key in the X-API-Key header:
X-API-Key: stk_your_api_key_here
For service keys, also include the wallet address:
X-API-Key: your_service_key
X-Wallet-Address: 0x742d35cc6c6c7532b1140da4c8a2f6c8ecfc9b46

Response Fields

authenticated
boolean
Indicates if authentication was successful
wallet_address
string
The wallet address associated with the authenticated API key
api_key_present
boolean
Confirms an API key was provided in the request
api_key_type
string
Type of API key used: “personal” or “service”
timestamp
string
ISO 8601 timestamp of the authentication test

Error Responses

401 Unauthorized
object
Missing API key
{
  "detail": "No API key provided"
}
401 Unauthorized
object
Invalid API key format
{
  "detail": "Invalid API key format"
}
401 Unauthorized
object
Invalid or revoked API key
{
  "detail": "Invalid API key"
}
401 Unauthorized
object
Service key missing wallet address
{
  "detail": "Service key requires wallet address"
}