smplkit Groups API
The Groups API from smplkit — 2 operation(s) for groups.
The Groups API from smplkit — 2 operation(s) for groups.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/smplkit-com:smplkit-com-groups-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: smplkit Groups API
description: API for the smplkit platform.
version: 0.1.0
tags:
- name: Groups
paths:
/api/v1/groups:
post:
tags:
- Groups
summary: Create Group
description: Create an Environment Access Group. The caller provides the group id (a kebab-case key, unique within the account) in the request body. The id is immutable thereafter. Returns `409` if a group with that id already exists, or `422` if `managed_environments` is not exactly `['*']` or a subset of the account's standard environment keys.
operationId: create_group
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupCreateRequest'
responses:
'201':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
get:
tags:
- Groups
summary: List Groups
description: List Environment Access Groups for the authenticated account. `filter[search]` does a case-insensitive substring match against the group `key` and `name`.
operationId: list_groups
security:
- HTTPBearer: []
parameters:
- name: filter[search]
in: query
required: false
schema:
type:
- string
- 'null'
description: Case-insensitive substring match against the group `key` and `name`. A group is returned if either field contains the search term.
title: Filter[Search]
description: Case-insensitive substring match against the group `key` and `name`. A group is returned if either field contains the search term.
- name: sort
in: query
required: false
schema:
type: string
description: 'Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.'
enum:
- created_at
- -created_at
- key
- -key
- name
- -name
- updated_at
- -updated_at
default: name
title: Sort
description: 'Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.'
- name: page[number]
in: query
required: false
schema:
type: integer
description: 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
default: 1
title: Page[Number]
description: 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
- name: page[size]
in: query
required: false
schema:
type: integer
description: Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
default: 1000
title: Page[Size]
description: Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
- name: meta[total]
in: query
required: false
schema:
type: boolean
description: When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
default: false
title: Meta[Total]
description: When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupListResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/groups/{id}:
get:
tags:
- Groups
summary: Get Group
description: Return a group by id.
operationId: get_group
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
title: Id
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
put:
tags:
- Groups
summary: Update Group
description: Update a group's name, description, and managed environments. Whole-resource semantics — submit every writable attribute. For the reserved `default` group, `managed_environments` may be changed (this is the lever that narrows the account-wide baseline), but renaming or other identity changes are rejected with `409`. Invalid `managed_environments` is `422`.
operationId: update_group
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
title: Id
requestBody:
required: true
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupRequest'
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- Groups
summary: Delete Group
description: Delete a group by id. Returns `409` for the reserved `default` group, which every account requires. Deleting a group also cascades to its memberships.
operationId: delete_group
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
title: Id
responses:
'204':
description: Successful Response
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ListMeta:
properties:
pagination:
$ref: '#/components/schemas/PaginationMeta'
type: object
required:
- pagination
title: ListMeta
description: Top-level ``meta`` block included on every JSON:API list response.
ErrorResponse:
properties:
errors:
items:
$ref: '#/components/schemas/Error'
type: array
title: Errors
type: object
required:
- errors
title: ErrorResponse
description: JSON:API error response envelope.
GroupCreateRequest:
properties:
data:
$ref: '#/components/schemas/GroupCreateResource'
type: object
required:
- data
title: GroupCreateRequest
description: 'JSON:API request envelope for creating a group.
Distinct from :class:`GroupRequest` because create requires
caller-supplied ``data.id`` while update does not.'
GroupListResponse:
properties:
data:
items:
$ref: '#/components/schemas/GroupResource'
type: array
title: Data
meta:
$ref: '#/components/schemas/ListMeta'
type: object
required:
- data
- meta
title: GroupListResponse
description: JSON:API collection response for groups.
GroupResponse:
properties:
data:
$ref: '#/components/schemas/GroupResource'
type: object
required:
- data
title: GroupResponse
description: JSON:API single-resource response envelope for a group.
GroupRequest:
properties:
data:
$ref: '#/components/schemas/GroupResource'
type: object
required:
- data
title: GroupRequest
description: JSON:API request envelope for updating a group.
Error:
properties:
status:
type: string
title: Status
title:
type: string
title: Title
detail:
type:
- string
- 'null'
title: Detail
source:
additionalProperties: true
type:
- object
- 'null'
title: Source
type: object
required:
- status
- title
title: Error
description: Single JSON:API error object.
GroupCreateResource:
properties:
id:
type: string
title: Id
description: Client-supplied resource id.
type:
type: string
enum:
- group
title: Type
attributes:
$ref: '#/components/schemas/Group'
type: object
required:
- id
- type
- attributes
title: GroupCreateResource
description: JSON:API resource envelope for creating a group (id required).
example:
attributes:
description: Senior engineers who may change production.
managed_environments:
- production
name: Production Stewards
id: production_stewards
type: group
Group:
properties:
name:
type: string
maxLength: 255
title: Name
description: Human-readable name for the group.
description:
type:
- string
- 'null'
maxLength: 1024
title: Description
description: Free-text description shown on the group's detail page.
managed_environments:
items:
type: string
type: array
title: Managed Environments
description: The set of environments members of this group may manage. Either the exact value `["*"]` to grant every standard environment, or an explicit array of standard environment keys. Ad-hoc environments are never listed here — they are exempt from group governance and remain manageable by every member of the account.
system:
type: boolean
title: System
description: True for built-in groups the platform reserves. The `default` group has `system=true`; it cannot be deleted or renamed, though its `managed_environments` may be narrowed.
default: false
readOnly: true
created_at:
type:
- string
- 'null'
format: date-time
title: Created At
description: When the group was created.
readOnly: true
updated_at:
type:
- string
- 'null'
format: date-time
title: Updated At
description: When the group was last modified.
readOnly: true
type: object
required:
- name
title: Group
description: 'An Environment Access Group: a named bundle of standard
environments its members may manage.
A user''s effective managed-environment set is the union across all
their groups (or "all" if any of their groups grants ``["*"]``).
Roles answer *what* a user may do; groups answer *which environments*
that capability reaches.'
example:
created_at: '2026-05-26T11:02:16.616Z'
description: Senior engineers who may change production.
managed_environments:
- production
name: Production Stewards
system: false
updated_at: '2026-05-26T11:02:16.616Z'
GroupResource:
properties:
id:
type:
- string
- 'null'
title: Id
type:
type: string
enum:
- group
title: Type
attributes:
$ref: '#/components/schemas/Group'
type: object
required:
- type
- attributes
title: GroupResource
description: JSON:API resource envelope for a group.
example:
attributes:
created_at: '2026-05-26T11:02:16.616Z'
description: Senior engineers who may change production.
managed_environments:
- production
name: Production Stewards
system: false
updated_at: '2026-05-26T11:02:16.616Z'
id: production_stewards
type: group
PaginationMeta:
properties:
page:
type: integer
title: Page
description: 1-based page number returned.
size:
type: integer
title: Size
description: Number of items per page.
total:
type:
- integer
- 'null'
title: Total
description: Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
total_pages:
type:
- integer
- 'null'
title: Total Pages
description: Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
type: object
required:
- page
- size
title: PaginationMeta
description: 'Pagination block returned inside ``meta`` on every list response.
``page`` and ``size`` are always present and echo the parameters that
served the response (their defaults when the client omitted them).
``total`` and ``total_pages`` are present only when the request included
``meta[total]=true``.'
securitySchemes:
HTTPBearer:
type: http
description: JWT access token or API key (sk_api_*)
scheme: bearer