Get an organization
Read organization detail and membership
GET
/v1/organizations/{id}Read an organization the caller is a member of, including its members and plan limits.
Path parameters
idstringrequiredResponses
Organization detail.
organizationobjectrequiredmembersobject[]requiredMembers of the organization. Only returned to callers who are themselves members (the handler enforces membership and returns 404 otherwise — non-members never see this list).
planobjectrequiredrolestringrequiredAvailable options: owner, admin, editor, viewer, billing
curl --request GET \
--url "https://api.squirrelscan.com/v1/organizations/ID"{
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"planId": "<string>",
"createdAt": {},
"updatedAt": {}
},
"members": [],
"plan": {
"id": "<string>",
"name": "<string>",
"maxMembers": 123,
"monthlyCredits": 123,
"signupGrantCredits": 123
},
"role": "owner"
}