Help · Discord · 2 min read
API and webhooks
Connect your website, own bot or shop to your server.
Server → API & webhooks (VIP).
- Create a tokenName it and choose Read only or Read and write. Copy it right away, it is shown only once.
- Call the APISend
Authorization: Bearer sam_…tosamanager.dev/api/v1.php?route=players. All routes are in the API docs. - Add a webhookEnter your https address and choose events: joins, leaves, kills, alerts. Use Send test to check it.
- Check the signatureCompare
X-SAM-Signaturewith HMAC-SHA256 of the body and your webhook secret before you trust a request.
A shop can give queue priority automatically: after a payment call
POST ?route=priority with the SteamID64 and the number of days.Did not find the answer? Write to us, we reply in Support.
Ask in Support