Skip to main content
curl -X GET "https://api.strike.markets/api-key/status" \
  -H "X-API-Key: stk_your_api_key_here"
{
  "success": true,
  "status": "active",
  "wallet_address": "0x742d35cc6c6c7532b1140da4c8a2f6c8ecfc9b46",
  "created_at": "2024-01-15T14:30:00Z",
  "last_used_at": "2024-01-15T16:45:00Z",
  "request_count": 142,
  "rate_limit": {
    "limit": 10,
    "remaining": 8,
    "reset_at": "2024-01-15T16:46:00Z"
  }
}
curl -X GET "https://api.strike.markets/api-key/status" \
  -H "X-API-Key: stk_your_api_key_here"
{
  "success": true,
  "status": "active",
  "wallet_address": "0x742d35cc6c6c7532b1140da4c8a2f6c8ecfc9b46",
  "created_at": "2024-01-15T14:30:00Z",
  "last_used_at": "2024-01-15T16:45:00Z",
  "request_count": 142,
  "rate_limit": {
    "limit": 10,
    "remaining": 8,
    "reset_at": "2024-01-15T16:46:00Z"
  }
}

Description

Check the status and metadata of an API key. This endpoint is useful for verifying that your API key is valid and active, monitoring usage, and checking rate limits.

Authentication

This endpoint requires:
  • The API key you want to check status for

Request Headers

HeaderTypeRequiredDescription
X-API-KeystringYesThe API key to check

Response Fields

FieldTypeDescription
successbooleanWhether the operation was successful
statusstringStatus of the key: active or inactive
wallet_addressstringThe wallet address associated with this key
created_atstringISO 8601 timestamp of when the key was created
last_used_atstringISO 8601 timestamp of last API call (null if never used)
request_countnumberTotal number of requests made with this key
rate_limitobjectCurrent rate limit status

Rate Limit Object

FieldTypeDescription
limitnumberMaximum requests allowed in the window
remainingnumberRequests remaining in current window
reset_atstringISO 8601 timestamp when the rate limit resets

Error Codes

CodeDescription
INVALID_API_KEYThe provided key is invalid or has been revoked
API_KEY_NOT_FOUNDNo API key was provided
UNAUTHORIZEDAuthentication failed

Rate Limiting

This endpoint itself has minimal rate limiting:
  • 60 requests per minute per API key
  • Does not count against your trading rate limits

Notes

  • This endpoint is useful for debugging authentication issues
  • The request_count is a lifetime counter for the key
  • The last_used_at field helps identify inactive keys
  • Rate limit information is real-time and updates with each request
  • Use this endpoint to implement smart rate limit management in your applications