smplkit Context Values API
The Context Values API from smplkit — 1 operation(s) for context values.
The Context Values API from smplkit — 1 operation(s) for context values.
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-context-values-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 Context Values API
description: API for the smplkit platform.
version: 0.1.0
tags:
- name: Context Values
paths:
/api/v1/context_values:
get:
tags:
- Context Values
summary: List Context Values
description: 'Return distinct values observed for a single attribute across context instances of one context type. The intended use case is a typeahead picker in a rule-building UI: the customer chooses a context type and an attribute name, then this endpoint streams back the distinct values matching what they''ve typed so far.
`filter[context_type]` and `filter[attribute]` are required. `filter[attribute]` accepts any attribute name — including the two first-class columns `key` and `name` — and is treated uniformly from the customer''s perspective; the server adjusts the underlying query accordingly.
`filter[search]` does a case-insensitive starts-with match. The returned set excludes empty strings and NULL values.'
operationId: list_context_values
security:
- HTTPBearer: []
parameters:
- name: filter[context_type]
in: query
required: false
schema:
type:
- string
- 'null'
description: Context type key whose instances should be searched (e.g. `user`).
title: Filter[Context Type]
description: Context type key whose instances should be searched (e.g. `user`).
- name: filter[attribute]
in: query
required: false
schema:
type:
- string
- 'null'
description: Attribute name whose distinct values should be returned (e.g. `first_name`). Accepts `key` and `name` as well as any attribute key stored on the context instance.
title: Filter[Attribute]
description: Attribute name whose distinct values should be returned (e.g. `first_name`). Accepts `key` and `name` as well as any attribute key stored on the context instance.
- name: filter[search]
in: query
required: false
schema:
type:
- string
- 'null'
description: Optional case-insensitive starts-with match against the projected attribute value. When omitted, all distinct values are returned in the page.
title: Filter[Search]
description: Optional case-insensitive starts-with match against the projected attribute value. When omitted, all distinct values are returned in the page.
- 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/ContextValueListResponse'
'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.
ContextValue:
properties:
value:
type: string
title: Value
description: The distinct attribute value as it appears on at least one context instance of the requested type.
type: object
required:
- value
title: ContextValue
description: 'A single distinct attribute value observed across context instances.
Returned by `GET /api/v1/context_values` to power typeahead pickers in
rule-building UIs. The set of values reflects what has been registered
via the bulk-context endpoint — it is observational, not a customer-
declared enumeration.'
example:
value: Michael
ContextValueListResponse:
properties:
data:
items:
$ref: '#/components/schemas/ContextValueResource'
type: array
title: Data
meta:
$ref: '#/components/schemas/ListMeta'
type: object
required:
- data
- meta
title: ContextValueListResponse
description: JSON:API collection response envelope for distinct context values.
ContextValueResource:
properties:
id:
type:
- string
- 'null'
title: Id
type:
type: string
enum:
- context_value
title: Type
attributes:
$ref: '#/components/schemas/ContextValue'
type: object
required:
- type
- attributes
title: ContextValueResource
description: 'JSON:API resource envelope for a distinct context-attribute value.
`id` is the value itself.'
example:
attributes:
value: Michael
id: Michael
type: context_value
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