smplkit Group Memberships API
The Group Memberships API from smplkit — 2 operation(s) for group memberships.
The Group Memberships API from smplkit — 2 operation(s) for group memberships.
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-group-memberships-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 Group Memberships API
description: API for the smplkit platform.
version: 0.1.0
tags:
- name: Group Memberships
paths:
/api/v1/group_memberships:
post:
tags:
- Group Memberships
summary: Create Group Membership
description: Add a user to a group. The body references the user (UUID) and the group (key) in the resource attributes. Returns `409` if this user is already a member of this group, or `422` if either the user is not a member of the account or the group does not exist.
operationId: create_group_membership
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupMembershipRequest'
responses:
'201':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupMembershipResponse'
'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:
- Group Memberships
summary: List Group Memberships
description: List group memberships in the authenticated account. Pass `filter[group]` (a group key) to list members of a single group, or `filter[user]` (a UUID) to list a single user's memberships. The two filters may be combined to look up a specific (user, group) pair.
operationId: list_group_memberships
security:
- HTTPBearer: []
parameters:
- name: filter[group]
in: query
required: false
schema:
type:
- string
- 'null'
description: Group key to narrow the result to memberships in that group.
title: Filter[Group]
description: Group key to narrow the result to memberships in that group.
- name: filter[user]
in: query
required: false
schema:
type:
- string
- 'null'
description: User UUID to narrow the result to memberships for that user.
title: Filter[User]
description: User UUID to narrow the result to memberships for that user.
- name: sort
in: query
required: false
schema:
type: string
description: 'Field to sort by. Prefix with `-` for descending order. Default: `created_at`. Allowed values: `created_at`, `-created_at`, `updated_at`, `-updated_at`.'
enum:
- created_at
- -created_at
- updated_at
- -updated_at
default: created_at
title: Sort
description: 'Field to sort by. Prefix with `-` for descending order. Default: `created_at`. Allowed values: `created_at`, `-created_at`, `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/GroupMembershipListResponse'
'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/group_memberships/{id}:
get:
tags:
- Group Memberships
summary: Get Group Membership
description: Return a single membership by id.
operationId: get_group_membership
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/GroupMembershipResponse'
'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:
- Group Memberships
summary: Delete Group Membership
description: Remove a user from a group. Returns `409` when removing the membership would leave the user with no group memberships in this account — every user must belong to at least one group.
operationId: delete_group_membership
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
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.
GroupMembershipResource:
properties:
id:
type:
- string
- 'null'
title: Id
type:
type: string
enum:
- group_membership
title: Type
attributes:
$ref: '#/components/schemas/GroupMembership'
type: object
required:
- type
- attributes
title: GroupMembershipResource
description: 'JSON:API resource envelope for a group membership.
`id` is server-assigned and must not be specified on create.'
example:
attributes:
created_at: '2026-05-26T11:02:16.616Z'
group: production_stewards
updated_at: '2026-05-26T11:02:16.616Z'
user: d290f1ee-6c54-4b01-90e6-d701748f0851
id: f7c1d2e3-4b5a-6789-0123-456789abcdef
type: group_membership
GroupMembershipResponse:
properties:
data:
$ref: '#/components/schemas/GroupMembershipResource'
type: object
required:
- data
title: GroupMembershipResponse
description: JSON:API single-resource response envelope for a membership.
GroupMembershipRequest:
properties:
data:
$ref: '#/components/schemas/GroupMembershipResource'
type: object
required:
- data
title: GroupMembershipRequest
description: 'JSON:API request envelope for creating a group membership.
Memberships have no mutable attributes, so this envelope is used
only on POST. There is no PUT/PATCH on the membership resource.'
GroupMembership:
properties:
user:
type: string
title: User
description: UUID of the user this membership links. Required on create; immutable thereafter.
group:
type: string
title: Group
description: Key (id) of the group this membership links. Required on create; immutable thereafter.
created_at:
type:
- string
- 'null'
format: date-time
title: Created At
description: When the membership was created.
readOnly: true
updated_at:
type:
- string
- 'null'
format: date-time
title: Updated At
description: When the membership record was last modified.
readOnly: true
type: object
required:
- user
- group
title: GroupMembership
description: 'A single (user, group) link inside an account.
Adding a user to a group creates one membership; removing them
deletes one. Memberships are create-and-delete only — they expose
no mutable attributes. The unique constraint on (account, user,
group) makes a duplicate add a 409.'
example:
created_at: '2026-05-26T11:02:16.616Z'
group: production_stewards
updated_at: '2026-05-26T11:02:16.616Z'
user: d290f1ee-6c54-4b01-90e6-d701748f0851
GroupMembershipListResponse:
properties:
data:
items:
$ref: '#/components/schemas/GroupMembershipResource'
type: array
title: Data
meta:
$ref: '#/components/schemas/ListMeta'
type: object
required:
- data
- meta
title: GroupMembershipListResponse
description: JSON:API collection response for memberships.
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.
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