StakPak Rules (V2) API
The Rules (V2) API from StakPak — 5 operation(s) for rules (v2).
The Rules (V2) API from StakPak — 5 operation(s) for rules (v2).
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/stakpak:stakpak-rules-v2-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. 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: Stakpak Rules (V2) API
description: API for the Stakpak platform
license:
name: ''
version: 1.0.0
servers:
- url: https://apiv2.stakpak.dev
description: Production server
- url: http://localhost:4000
description: Local server
tags:
- name: Rules (V2)
paths:
/v2/{account}/rules:
get:
tags:
- Rules (V2)
summary: List Rule Books
operationId: list_rule_books_handler
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ListRuleBooksResponse'
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
post:
tags:
- Rules (V2)
summary: Create or Update Rule Book
operationId: create_rule_book_handler
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRuleBookPayload'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRuleBookResponse'
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
/v2/{account}/rules/bulk:
post:
tags:
- Rules (V2)
summary: Create Many Rule Books
operationId: create_many_rule_books_handler
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateManyRuleBooksPayload'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/CreateManyRuleBooksResponse'
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
/v2/{account}/rules/search:
get:
tags:
- Rules (V2)
summary: Search Rule Books
operationId: search_rule_books_handler
parameters:
- name: keywords
in: query
required: false
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/SearchRuleBooksResponse'
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
/v2/{account}/rules/{uri}:
get:
tags:
- Rules (V2)
summary: Get Rule Book by URI
operationId: get_rule_book_handler
parameters:
- name: uri
in: path
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/RuleBook'
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
delete:
tags:
- Rules (V2)
summary: Delete Rule Book
operationId: delete_rule_book_handler
parameters:
- name: uri
in: path
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
default: null
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
/v2/{account}/rules/{uri}/transfer:
post:
tags:
- Rules (V2)
summary: Transfer Ownership of Rule Book
operationId: transfer_ownership_handler
parameters:
- name: uri
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TransferOwnershipPayload'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
default: null
'400':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- Api Key: []
components:
schemas:
ErrorBody:
type: object
required:
- key
- message
properties:
key:
type: string
message:
type: string
TransferOwnershipPayload:
type: object
required:
- owner
properties:
owner:
type: string
RuleBookVisibility:
type: string
enum:
- PUBLIC
- PRIVATE
RuleBook:
type: object
required:
- id
- uri
- description
- content
- visibility
- tags
properties:
content:
type: string
created_at:
type:
- string
- 'null'
format: date-time
description:
type: string
id:
type: string
format: uuid
tags:
type: array
items:
type: string
updated_at:
type:
- string
- 'null'
format: date-time
uri:
type: string
visibility:
$ref: '#/components/schemas/RuleBookVisibility'
CreateManyRuleBooksResponse:
type: object
required:
- results
properties:
results:
type: array
items:
$ref: '#/components/schemas/CreateRuleBookResponse'
SearchRuleBooksResponse:
type: object
required:
- results
properties:
results:
type: array
items:
$ref: '#/components/schemas/RuleBook'
CreateRuleBookResponse:
type: object
required:
- id
properties:
id:
type: string
CreateRuleBookPayload:
type: object
required:
- uri
- description
- content
properties:
content:
type: string
description:
type: string
tags:
type: array
items:
type: string
uri:
type: string
visibility:
$ref: '#/components/schemas/RuleBookVisibility'
CreateManyRuleBooksPayload:
type: object
required:
- books
properties:
books:
type: array
items:
$ref: '#/components/schemas/CreateRuleBookPayload'
ErrorResponse:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorBody'
ListRuleBook:
type: object
required:
- id
- uri
- description
- visibility
- tags
properties:
created_at:
type:
- string
- 'null'
format: date-time
description:
type: string
id:
type: string
format: uuid
tags:
type: array
items:
type: string
updated_at:
type:
- string
- 'null'
format: date-time
uri:
type: string
visibility:
$ref: '#/components/schemas/RuleBookVisibility'
ListRuleBooksResponse:
type: object
required:
- results
properties:
results:
type: array
items:
$ref: '#/components/schemas/ListRuleBook'
securitySchemes:
Api_Key:
type: http
scheme: bearer
bearerFormat: JWT
Token:
type: http
scheme: bearer
bearerFormat: JWT
cookie:
type: apiKey
in: cookie
name: .idToken