{"openapi":"3.1.0","info":{"title":"Universal Intelligence Mesh operational API","version":"1.0.0","description":"Zero-external-spend numerical operations. Legacy UIM handshake and Solar accounting remain unchanged. Public summary includes explicitly published redacted evidence only."},"servers":[{"url":"/api/uim/v1"}],"security":[{"siteSession":[]},{"operatorKey":[]},{"memberAgent":[]}],"paths":{"/summary":{"get":{"security":[],"summary":"Public evidence-based status and published examples","responses":{"200":{"description":"Permission-safe aggregate of published completed tasks only."}}}},"/capabilities":{"get":{"security":[],"summary":"Verified local capabilities, without private registry metadata","responses":{"200":{"description":"Capabilities and executable domains."}}}},"/inventory":{"get":{"security":[],"summary":"Source and runtime architecture inventory","responses":{"200":{"description":"Machine-readable audit; independent applications are not assumed accessible."}}}},"/schema":{"get":{"security":[],"summary":"Task request and envelope schema","responses":{"200":{"description":"JSON Schema 2020-12."}}}},"/examples/{id}":{"parameters":[{"$ref":"#/components/parameters/id"}],"get":{"security":[],"summary":"Explicitly published redacted numerical evidence","responses":{"200":{"description":"Published result."},"404":{"description":"Private, absent or unpublished task."}}}},"/me":{"get":{"summary":"Server-derived principal, scope and limits","responses":{"200":{"description":"Authenticated principal."},"401":{"description":"Sign in through the existing Marketplace or use an authorized credential."}}}},"/resources":{"get":{"summary":"Registry restricted to this network and shared global resources","responses":{"200":{"description":"Declared capabilities distinguished from tested capability evidence."}}},"post":{"summary":"Operator registers non-executable private resource metadata","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Provider-declared registration; BLOCKED until a reviewed adapter is installed and tested."},"403":{"description":"Operator required."}}}},"/resources/{resource_id}":{"parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string"}}],"patch":{"summary":"Operator suspends, deprecates or restores a verified resource","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["availability_status"],"properties":{"availability_status":{"enum":["AVAILABLE","SUSPENDED","DEPRECATED"]}}}}}},"responses":{"200":{"description":"Versioned resource update."},"409":{"description":"Cannot activate an unverified or unauthorized resource."}}}},"/resources/{resource_id}/health":{"parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"summary":"Operator runs bounded installed numerical self-test, not an arbitrary endpoint fetch","responses":{"200":{"description":"Actual test result, elapsed time and digest."},"409":{"description":"No approved probe exists."}}}},"/tasks":{"get":{"summary":"List the latest 50 missions owned by this authenticated network","responses":{"200":{"description":"Private mission list."}}},"post":{"summary":"Create idempotent authorized mission","parameters":[{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"./task.schema.json"}}}},"responses":{"200":{"description":"Same idempotency key and identical work already accepted."},"202":{"description":"Persisted and queued."},"409":{"description":"Key reused for different work."},"429":{"description":"Pending or hourly quota exceeded."}}}},"/tasks/{id}":{"parameters":[{"$ref":"#/components/parameters/id"}],"get":{"summary":"Read owned mission state and routing evidence","responses":{"200":{"description":"Versioned task envelope."},"404":{"description":"Missing or outside authenticated scope."}}}},"/tasks/{id}/events":{"parameters":[{"$ref":"#/components/parameters/id"}],"get":{"summary":"Read ordered append-only hash-chained execution events","responses":{"200":{"description":"Events with sequence, timestamp, previous_hash and hash."}}}},"/tasks/{id}/artifacts":{"parameters":[{"$ref":"#/components/parameters/id"}],"get":{"summary":"Retrieve reproducible capsules from existing workflow persistence","responses":{"200":{"description":"Evidence capsules, inputs, limits, validation and software provenance."}}}},"/tasks/{id}/cancel":{"parameters":[{"$ref":"#/components/parameters/id"}],"post":{"summary":"Cancel owned nonterminal work without deleting evidence","responses":{"200":{"description":"Current or cancelled task."}}}},"/tasks/{id}/retry":{"parameters":[{"$ref":"#/components/parameters/id"}],"post":{"summary":"Retry failed or blocked owned work within original budget and attempt limit","responses":{"200":{"description":"Requeued task, with prior events preserved."},"409":{"description":"Retry limit or state disallows retry."}}}},"/tasks/{id}/reproduce":{"parameters":[{"$ref":"#/components/parameters/id"}],"post":{"summary":"New owned mission with identical numerical input contract; original evidence untouched","parameters":[{"$ref":"#/components/parameters/idempotency"}],"responses":{"200":{"description":"Idempotent reproduction already exists."},"202":{"description":"New task queued."},"409":{"description":"Original task is not completed."}}}},"/tasks/{id}/publish":{"parameters":[{"$ref":"#/components/parameters/id"}],"post":{"summary":"Operator explicitly publishes redacted numeric evidence, never raw objectives, member identifiers or private traces","responses":{"200":{"description":"Public example URL."},"403":{"description":"Operator required."},"409":{"description":"Only completed validated work can be published."}}}}},"components":{"securitySchemes":{"siteSession":{"type":"apiKey","in":"cookie","name":"tc_s_session","description":"Existing site authentication. Passport users normalize via /api/session. Cookie mutations require same-origin application/json."},"operatorKey":{"type":"apiKey","in":"header","name":"X-Admin-Key","description":"Existing server operator credential; never include in URLs or public metadata."},"memberAgent":{"type":"http","scheme":"bearer","description":"Existing member-role delegation or sponsored external agent API key."}},"parameters":{"id":{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"idempotency":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"}}}}}