Patricia Event Sources API

The event-sources API from Patricia — 3 operation(s) for event-sources.

GitHub OpenAPI

Operations 4

GET /v1/event-sources List the workspace's connected event sources #
POST /v1/event-sources/{source} Connect an event source and mint its endpoint #
DELETE /v1/event-sources/{source} Disconnect an event source #
PUT /v1/event-sources/{source}/signing-secret Store the event source's signing secret #

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-event-sources-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-event-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Event Sources API
  version: 0.1.0
tags:
- name: event-sources
paths:
  /v1/event-sources:
    get:
      tags:
      - event-sources
      summary: List the workspace's connected event sources
      description: The outside systems this workspace has connected so their events can drive an armed channel action, plus the ones it could connect. Shows whether each one's signing secret is in place and when an event last arrived. Never returns a secret or an endpoint URL.
      operationId: list_event_sources_v1_event_sources_get
      security:
      - HTTPBearer: []
      parameters:
      - 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/EventSourceListResponse'
        '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/event-sources/{source}:
    post:
      tags:
      - event-sources
      summary: Connect an event source and mint its endpoint
      description: Creates the workspace's endpoint for one outside system and returns the URL to paste into that system's dashboard. **The URL is returned once and cannot be read again** — only its digest is stored. Re-connecting an already-connected source mints a NEW URL and clears the stored signing secret, which is what makes this the remedy if a URL leaks.
      operationId: connect_event_source_v1_event_sources__source__post
      security:
      - HTTPBearer: []
      parameters:
      - name: source
        in: path
        required: true
        schema:
          type: string
          title: Source
      - 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/EventSourceCreated'
        '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'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      tags:
      - event-sources
      summary: Disconnect an event source
      description: Turns the endpoint off and forgets its signing secret. Events sent to the old URL are refused from then on. Feeds following this source stay armed but go quiet, so reconnecting resumes them without anybody re-arming a channel.
      operationId: disconnect_event_source_v1_event_sources__source__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: source
        in: path
        required: true
        schema:
          type: string
          title: Source
      - 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/EventSourceView'
        '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/event-sources/{source}/signing-secret:
    put:
      tags:
      - event-sources
      summary: Store the event source's signing secret
      description: 'Saves the signing secret from the outside system''s dashboard, encrypted at rest. Until it is set, the endpoint refuses every event: a payload we cannot verify is one we must not act on. The secret is never returned by any endpoint.'
      operationId: set_event_source_secret_v1_event_sources__source__signing_secret_put
      security:
      - HTTPBearer: []
      parameters:
      - name: source
        in: path
        required: true
        schema:
          type: string
          title: Source
      - 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/EventSourceSecretUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSourceView'
        '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'
components:
  schemas:
    EventSourceCreated:
      properties:
        source:
          $ref: '#/components/schemas/EventSourceView'
        endpoint_url:
          type: string
          title: Endpoint Url
      type: object
      required:
      - source
      - endpoint_url
      title: EventSourceCreated
      description: A freshly minted endpoint. The ONLY response that ever carries the URL.
    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.
    EventSourceListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/EventSourceView'
          type: array
          title: Items
        connectable:
          items:
            type: string
          type: array
          title: Connectable
      type: object
      required:
      - items
      - connectable
      title: EventSourceListResponse
      description: Every system this workspace has connected, plus the ones it could.
    EventSourceView:
      properties:
        source:
          type: string
          title: Source
        label:
          type: string
          title: Label
        status:
          type: string
          title: Status
        secret_configured:
          type: boolean
          title: Secret Configured
        last_event_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Event At
      type: object
      required:
      - source
      - label
      - status
      - secret_configured
      - last_event_at
      title: EventSourceView
      description: One connected system, as the dashboard sees it.
    EventSourceSecretUpdate:
      properties:
        signing_secret:
          type: string
          maxLength: 512
          minLength: 1
          title: Signing Secret
      additionalProperties: false
      type: object
      required:
      - signing_secret
      title: EventSourceSecretUpdate
      description: The signing secret from the vendor's dashboard. Write-only.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer