Patricia Person Facts API

The person-facts API from Patricia — 3 operation(s) for person-facts.

GitHub OpenAPI

Operations 3

PUT /v1/person-facts Set a person's birthday or work anniversary (admin data entry) #
POST /v1/person-facts/opt-out Opt a subject out of a celebration fact (subject-global) #
POST /v1/person-facts/self Submit your OWN birthday or work anniversary (employee self-submission) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-person-facts-api"
All apis
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.

Get an API 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 Specification

patricia-app-person-facts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Person Facts API
  version: 0.1.0
tags:
- name: person-facts
paths:
  /v1/person-facts:
    put:
      tags:
      - person-facts
      summary: Set a person's birthday or work anniversary (admin data entry)
      description: 'The admin data-entry collection mode (the fillable fact_entry_table surface). An admin sets a person''s fact: month+day for a birthday (recurring_date, NO year) or an ISO date for a work anniversary. Tenant-scoped; PII-safe (no raw value logged; audit stores a hash). Honors the fact''s allowed_sources allowlist when set. Bumps fact_revision so an in-flight occurrence rechecks.'
      operationId: set_person_fact_v1_person_facts_put
      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/SetPersonFactRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonFactSummary'
        '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'
  /v1/person-facts/opt-out:
    post:
      tags:
      - person-facts
      summary: Opt a subject out of a celebration fact (subject-global)
      description: 'Opt a subject out of a canonical fact. GLOBAL to the subject: shared by every skill that references the fact (one skill can''t leak what another suppressed). Purges the stored value + projection columns so the projector can never mint an occurrence for the subject; bumps fact_revision so any in-flight occurrence skips at the pre-send re-check.'
      operationId: opt_out_person_fact_v1_person_facts_opt_out_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/OptOutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonFactSummary'
        '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/person-facts/self:
    post:
      tags:
      - person-facts
      summary: Submit your OWN birthday or work anniversary (employee self-submission)
      description: 'The employee self-submission collection mode: the target of a solicit_fact notify. A member submits their OWN fact (source=self, the highest-trust source): month+day for a birthday (recurring_date, NO year) or an ISO date for a work anniversary. The subject comes from the authenticated user''s durable membership and actor evidence. Unavailable or ambiguous subjects refuse. Tenant-scoped; PII-safe (no raw value logged; audit stores a hash); honors the fact''s allowed_sources allowlist when set.'
      operationId: submit_own_fact_v1_person_facts_self_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/SubmitOwnFactRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonFactSummary'
        '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'
components:
  schemas:
    PersonFactSummary:
      properties:
        entity_id:
          type: string
          format: uuid
          title: Entity Id
        definition_id:
          type: string
          format: uuid
          title: Definition Id
        status_code:
          type: string
          title: Status Code
        recurring_month:
          anyOf:
          - type: integer
          - type: 'null'
          title: Recurring Month
        recurring_day:
          anyOf:
          - type: integer
          - type: 'null'
          title: Recurring Day
        date_value:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Date Value
        effective_tz:
          anyOf:
          - type: string
          - type: 'null'
          title: Effective Tz
        fact_revision:
          type: integer
          title: Fact Revision
      type: object
      required:
      - entity_id
      - definition_id
      - status_code
      - recurring_month
      - recurring_day
      - date_value
      - effective_tz
      - fact_revision
      title: PersonFactSummary
      description: 'A resolved person fact (PII-safe: month/day or date, status, tz; never a birth year).'
    SetPersonFactRequest:
      properties:
        domain_key:
          type: string
          title: Domain Key
          description: The canonical fact key, e.g. person.birthday / person.work_anniversary.
        month:
          anyOf:
          - type: integer
            maximum: 12.0
            minimum: 1.0
          - type: 'null'
          title: Month
          description: Birthday month (1–12); no year is collected.
        day:
          anyOf:
          - type: integer
            maximum: 31.0
            minimum: 1.0
          - type: 'null'
          title: Day
          description: Birthday day (1–31).
        'on':
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: 'On'
          description: Work-anniversary date (ISO). Only month/day recur.
        effective_tz:
          anyOf:
          - type: string
          - type: 'null'
          title: Effective Tz
          description: IANA tz for this subject (optional).
        entity_id:
          type: string
          format: uuid
          title: Entity Id
          description: The subject Actor id the fact is about.
      type: object
      required:
      - domain_key
      - entity_id
      title: SetPersonFactRequest
      description: Set a person's birthday or work anniversary (admin data entry). The subject is ``entity_id``.
    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.
    OptOutRequest:
      properties:
        domain_key:
          type: string
          title: Domain Key
        entity_id:
          type: string
          format: uuid
          title: Entity Id
      type: object
      required:
      - domain_key
      - entity_id
      title: OptOutRequest
      description: Opt a subject out of a canonical fact (subject-GLOBAL, shared across every skill referencing it).
    SubmitOwnFactRequest:
      properties:
        domain_key:
          type: string
          title: Domain Key
          description: The canonical fact key, e.g. person.birthday / person.work_anniversary.
        month:
          anyOf:
          - type: integer
            maximum: 12.0
            minimum: 1.0
          - type: 'null'
          title: Month
          description: Birthday month (1–12); no year is collected.
        day:
          anyOf:
          - type: integer
            maximum: 31.0
            minimum: 1.0
          - type: 'null'
          title: Day
          description: Birthday day (1–31).
        'on':
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: 'On'
          description: Work-anniversary date (ISO). Only month/day recur.
        effective_tz:
          anyOf:
          - type: string
          - type: 'null'
          title: Effective Tz
          description: IANA tz for this subject (optional).
      type: object
      required:
      - domain_key
      title: SubmitOwnFactRequest
      description: Submit the caller's own fact; the server selects the subject from durable membership and actor evidence.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer