scriptmonitoring.comdocs
TeamsList teams

GET /v1/teams lists the teams in your organization with their ID, name, creation date and suspension state. Needs an organization API key.

All plansUpdated

GET /v1/teams lists the teams in your organization, page by page. Pass name to look up one team. Organization keys only (sm_org_…), with the teams:read scope; teams:create or teams:delete can look up a single name. A team key gets 401.

curl "https://data.scriptmonitoring.com/v1/teams/?name=Payments" \
  -H "Authorization: Bearer sm_org_14829305716342_…"

Which keys work?#

KeyAccepted
Organization key (sm_org_…)Yes, with teams:read (or teams:create / teams:delete for a name lookup).
Team key (sm_team_…)No: 401.

A missing, mistyped or revoked key, a key whose prefix doesn't match its type, or a key created before the sm_org_ / sm_team_ format gets 401 with this body, and so does a team key:

{ "error": "unauthorized", "message": "Missing or invalid bearer token." }

Query parameters#

NameDescription
nameExact team name, 3 to 32 characters.
limitPage size, 1 to 100 (default 50).
cursorThe next_cursor from the previous page.

Response#

{ "data": [{ "id": "14827391650423", "name": "Payments", "createdAt": "...", "suspended": false }], "next_cursor": null }

Errors: 400, 401 (also for team keys), 403, 429, 503.

Questions? Ask in the chat, or in the dashboard.View as Markdown