Authentication

Every API call carries a Bearer key. TEST keys start sms_test_, LIVE keys start sms_live_. The console uses a session cookie instead.

API keys

Public API: Authorization: Bearer sms_test_… or sms_live_…. The raw secret is shown once, when you create the key, and stored as SHA-256 only after creation.

A TEST key goes to the simulated route and may use the sender TAYSEND. It cannot send LIVE traffic: that answers 403 TEST_KEY_LIVE_FORBIDDEN. A missing or unknown key answers 401.

List messages
curl "https://api.taysend.com/v1/messages?limit=20" \
  -H "Authorization: Bearer $TAYSEND_KEY"

Console session

Console: email/password session cookie taysend_session (httpOnly). The browser client always sends credentials: 'include'. Do not copy that cookie into localStorage.