Patricia Skills API
The skills API from Patricia — 5 operation(s) for skills.
The skills API from Patricia — 5 operation(s) for skills.
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/patricia-app:patricia-app-skills-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: Patricia Skills API
version: 0.1.0
tags:
- name: Skills
paths:
/v1/skills:
get:
tags:
- Skills
summary: Search skills
description: List skills with filtering, sorting, and pagination.
operationId: list_items_v1_skills_get
security:
- HTTPBearer: []
parameters:
- name: q
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: ANTLR filter expression
title: Q
description: ANTLR filter expression
- name: limit
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 500
minimum: 1
- type: 'null'
description: Page size
title: Limit
description: Page size
- name: sort_by
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Sort expression (e.g. created_at:desc)
title: Sort By
description: Sort expression (e.g. created_at:desc)
- name: fields
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Field projection (e.g. id,name)
title: Fields
description: Field projection (e.g. id,name)
- name: pq
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Pagination cursor query
title: Pq
description: Pagination cursor query
- name: from_prev
in: query
required: false
schema:
type: boolean
description: Backward pagination flag
default: false
title: From Prev
description: Backward pagination flag
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Paginated skill list.
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__SearchValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
tags:
- Skills
summary: Create skill
description: 'Create a new skill directly. Requires skills:install, not skills:create: the body accepts a caller-chosen status_code, and an active skill is presented workspace-wide on the dashboard, so a caller who holds only skills:create no longer reaches this route at all. That caller''s own no-approval lane is /authored-skills/instructions, which is personal until an admin shares it.'
operationId: create_skill_v1_skills_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__CreateValidator'
responses:
'201':
description: The created skill.
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/skills/{id}:
get:
tags:
- Skills
summary: Get skill
description: Retrieve a single skill by ID.
operationId: get_item_v1_skills__id__get
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: The requested skill.
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
put:
tags:
- Skills
summary: Update skill
description: Full update (PUT) of a skill.
operationId: update_item_v1_skills__id__put
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__UpdateValidator'
responses:
'200':
description: The updated skill.
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
patch:
tags:
- Skills
summary: Partial update skill
description: Partial update (PATCH) of a skill.
operationId: merge_item_v1_skills__id__patch
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__MergeValidator'
responses:
'200':
description: The updated skill.
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- Skills
summary: Delete skill
description: Soft-delete a skill by ID.
operationId: delete_item_v1_skills__id__delete
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'204':
description: No content.
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/skills/{skill_id}/disable:
post:
tags:
- Skills
summary: Disable a skill
description: Retire a tenant skill so Patricia stops using it (keeps the row; reversible via enable).
operationId: disable_skill_v1_skills__skill_id__disable_post
security:
- HTTPBearer: []
parameters:
- name: skill_id
in: path
required: true
schema:
type: string
format: uuid
title: Skill Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/skills/{skill_id}/enable:
post:
tags:
- Skills
summary: Enable a skill
description: Mark a tenant skill active so Patricia can use it (promotes a proposed/retired skill to active).
operationId: enable_skill_v1_skills__skill_id__enable_post
security:
- HTTPBearer: []
parameters:
- name: skill_id
in: path
required: true
schema:
type: string
format: uuid
title: Skill Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/skills/{skill_id}/files:
get:
tags:
- Skills
summary: List a skill's files
description: The SKILL.md and any reference/template/script files for a tenant-owned skill.
operationId: list_skill_files_v1_skills__skill_id__files_get
security:
- HTTPBearer: []
parameters:
- name: skill_id
in: path
required: true
schema:
type: string
format: uuid
title: Skill Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/models__brain__SkillFile__FullValidator'
title: Response List Skill Files V1 Skills Skill Id Files Get
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
models__brain__Skill__SearchValidator:
properties:
items:
items:
$ref: '#/components/schemas/models__brain__Skill__FullValidator'
type: array
title: Items
first:
anyOf:
- type: string
- type: 'null'
title: First
next:
anyOf:
- type: string
- type: 'null'
title: Next
previous:
anyOf:
- type: string
- type: 'null'
title: Previous
type: object
required:
- items
title: SearchValidator
description: Typed cursor-paginated list response.
models__brain__Skill__FullValidator:
properties:
id:
type: string
format: uuid
title: Id
tenant_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Tenant Id
name:
type: string
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
content:
type: string
title: Content
category:
anyOf:
- type: string
- type: 'null'
title: Category
version:
type: integer
title: Version
status_code:
$ref: '#/components/schemas/LessonStatus'
eval_score:
anyOf:
- type: number
- type: 'null'
title: Eval Score
created_by:
type: string
title: Created By
hit_count:
type: integer
title: Hit Count
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- name
- content
- version
- status_code
- created_by
- hit_count
- created_at
- updated_at
title: FullValidator
description: Response shape for GET / POST / PUT / PATCH.
ErrorResponse:
properties:
code:
type: string
title: Code
message:
type: string
title: Message
errors:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Errors
type: object
required:
- code
- message
title: ErrorResponse
description: Standard error envelope, matching exception handler output.
models__brain__Skill__MergeValidator:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Description
content:
anyOf:
- type: string
maxLength: 100000
- type: 'null'
title: Content
category:
anyOf:
- type: string
- type: 'null'
title: Category
version:
anyOf:
- type: integer
- type: 'null'
title: Version
status_code:
anyOf:
- $ref: '#/components/schemas/LessonStatus'
- type: 'null'
eval_score:
anyOf:
- type: number
- type: 'null'
title: Eval Score
created_by:
anyOf:
- type: string
- type: 'null'
title: Created By
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
additionalProperties: false
type: object
title: MergeValidator
description: 'PATCH body: every field optional; only those set are written.
``created_by`` is declared but never written: it is in ``readonly_fields``, so the
repository accepts and DISCARDS it, exactly as PUT does. That was the hole this branch
closed: PATCH used to write every field it was given, which let a tenant rewrite an
existing skill''s provenance to ``patricia`` after the fact. The fix belongs in the
repository, not here. Forbidding the field instead would 422 every client that round-trips
a GET body back, and read-modify-write is at least as common on PATCH as on PUT.'
models__brain__Skill__UpdateValidator:
properties:
name:
type: string
title: Name
description:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Description
content:
type: string
maxLength: 100000
title: Content
category:
anyOf:
- type: string
- type: 'null'
title: Category
version:
type: integer
title: Version
default: 1
status_code:
$ref: '#/components/schemas/LessonStatus'
eval_score:
anyOf:
- type: number
- type: 'null'
title: Eval Score
created_by:
type: string
title: Created By
updated_at:
type: string
format: date-time
title: Updated At
additionalProperties: false
type: object
required:
- name
- content
- status_code
- created_by
- updated_at
title: UpdateValidator
description: 'PUT body: full update of mutable fields (carries ``updated_at`` for the stale check).'
LessonStatus:
type: string
enum:
- proposed
- active
- retired
title: LessonStatus
models__brain__Skill__CreateValidator:
properties:
name:
type: string
title: Name
description:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Description
content:
type: string
maxLength: 100000
title: Content
category:
anyOf:
- type: string
- type: 'null'
title: Category
version:
type: integer
title: Version
default: 1
status_code:
$ref: '#/components/schemas/LessonStatus'
default: proposed
eval_score:
anyOf:
- type: number
- type: 'null'
title: Eval Score
additionalProperties: false
type: object
required:
- name
- content
title: CreateValidator
description: 'POST body. ``tenant_id`` and ``created_by`` are server-assigned.
No ``created_by``: it is the provenance label, and a body that could set it could stamp a
workspace''s own skill ``patricia`` and wear the platform''s badge. ``extra="forbid"`` turns
such a body into a 422 rather than ignoring the field, so a caller who thinks they are
choosing the provenance is told they are not. The repository assigns ``custom``.
The 422 is a DELIBERATE contract break, chosen against the accept-and-discard bargain
PUT/PATCH make. Those verbs round-trip GET bodies of existing rows, so silence there keeps
working clients working. Create is where a forged label would be minted, and the published
create contract never honoured the field for anyone: every user-principal request 500''d
from the day the route shipped, and an API-key caller''s body value was silently overwritten
by the factory''s injection. Refusing loudly beats continuing either of those.'
models__brain__SkillFile__FullValidator:
properties:
id:
type: string
format: uuid
title: Id
skill_id:
type: string
format: uuid
title: Skill Id
kind:
type: string
title: Kind
path:
type: string
title: Path
content:
type: string
title: Content
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- skill_id
- kind
- path
- content
- created_at
- updated_at
title: FullValidator
description: Read-only response shape for the skill-file listing.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer