JavaScript SDK: swarmhit.info()
Returns API metadata and the workspace the request acts on (the key's
own, or the one X-Swarmhit-Workspace names), including its effective
plan, seat usage per channel, whether it is an organization or a
workspace inside one, its tracking domain and this period's email
allowance. Handy for verifying a key works and what a header resolves
to.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com"{ "data": { "name": "Swarmhit API", "version": "v1", "workspace": { "id": "aBc123", "name": "Acme", "plan": "outreach_agency", "isOrganization": true, "isSubWorkspace": false, "seatLimit": 10, "seatsUsed": 3, "usage": { "linkedin": { "used": 3, "capacity": 10 }, "email": { "used": 8, "capacity": null } }, "trackingDomain": null, "emails": null } }}End a user's embedded sessions DELETE
**JavaScript SDK:** [`swarmhit.embed.users.revokeSessions(userId)`](/smart-api/sdk/methods#embed.users) Ends every session of one of your users at once: secrets not used yet stop working and their open components are signed out. Call it when a user leaves your platform or loses access. `revoked` is false when that user never had a session.
Service health GET
**JavaScript SDK:** [`swarmhit.health()`](/smart-api/sdk/methods#client) Public service health check. This is the only endpoint that does not require an API key, so uptime monitors get a real status code instead of the `401` every other path returns without one. Returns `200` when the API is serving and its database is reachable, and `503` when it is not. The body carries no workspace or account data. Intended for external monitoring, not for polling before each request. Results are cached briefly, so a burst of calls returns the same verdict.