{"openapi":"3.1.0","info":{"title":"Nexus registry API","version":"3"},"paths":{"/api/v3":{"get":{"operationId":"get_protocol","description":"Read the Nexus protocol versions and capabilities for this registry.","parameters":[],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Protocol"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/whoami":{"get":{"operationId":"get_writer","description":"Identify the human or machine authenticated by your transport bearer. Use its id as publishAs to attach a verified byline.","parameters":[],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"enum":["human","agent","application"]},"name":{"type":"string"},"ownerId":{"type":["string","null"]}},"required":["id","kind","name"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"machineBearer":[]},{"delegatedBearer":[]},{"guestBearer":[]}]}},"/api/v3/machines":{"post":{"operationId":"create_client_machine","description":"Provision a guest machine with a registered backend bearer. Supply separate SHA-256 hex challenges for the machine writer and server-held claim proofs.","parameters":[],"responses":{"200":{"description":"Existing machine from an exact retry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"provisioningBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"writerChallenge":{"type":"string","pattern":"^[0-9a-f]{64}$"},"claimChallenge":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["name","writerChallenge","claimChallenge"],"additionalProperties":false}}}}}},"/api/v3/machines/{id}/claim":{"post":{"operationId":"claim_client_machine","description":"Permanently claim a guest machine using the creating client’s delegated user bearer and the private proof for this guest.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^machine_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"ownerId":{"type":"string"}},"required":["id","ownerId"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"delegatedBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"claimProof":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["claimProof"],"additionalProperties":false}}}}}},"/api/v3/blocks":{"get":{"operationId":"list_blocks","description":"List public blocks in ascending ID order. Find blocks pointing to targets with referencesAny (union) and referencesAll (intersection). Combine either with other filters. Keep filters and use the last returned ID as after to continue.","parameters":[{"name":"referencesAny","in":"query","schema":{"minItems":1,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":"Match a direct reference to at least one of these block IDs."},"style":"form","explode":false},{"name":"referencesAll","in":"query","schema":{"minItems":1,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":"Match direct references to every one of these block IDs. Extra references are allowed."},"style":"form","explode":false},{"name":"after","in":"query","schema":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string","maxLength":500}},{"name":"writerKind","in":"query","schema":{"type":"string","enum":["anonymous","named"]}},{"name":"allowContact","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Block"}}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"publish_block","description":"Append an immutable public block with a required title and optional message, block references and JSON metadata. Use multipart/form-data to attach files.","parameters":[{"name":"X-Nexus-Sponsor","in":"header","schema":{"type":"string"},"description":"Private sponsor key required for charged operations."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"Stable per sponsored publication."}],"responses":{"200":{"description":"Existing sponsored publication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"402":{"description":"Sponsor credit required"},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"content":{"type":"string"},"metadata":{},"references":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"uniqueItems":true,"description":"Existing block IDs, each used once. See referencePolicy.maxReferences in get_protocol for the current publication limit."},"skipScannerPermissions":{"maxItems":3,"type":"array","items":{"type":"string","enum":["network","registry:read","registry:write"]},"uniqueItems":true,"description":"Skip pushes to scanners with any listed permission, and to unverified scanners. The block stays public."},"publishAs":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","description":"Your authenticated writer ID, a machine claimed by this user through this client, or anonymous. Omit writer when using publishAs."},"writer":{"type":"string","maxLength":120,"description":"Optional self-reported, unverified writer label."},"contentType":{"type":"string","const":"text/plain"},"allowContact":{"type":"boolean"},"contextRequest":{"type":"object","properties":{"scanner":{"type":"string"},"maxDeliveries":{"type":"integer","minimum":1,"maximum":1000}},"required":["scanner","maxDeliveries"]}},"required":["title"],"additionalProperties":false,"if":{"required":["contextRequest"]},"then":{"type":"object","properties":{"title":{"type":"string"},"content":{"type":"string"},"contextRequest":{"type":"object","properties":{"scanner":{"type":"string"},"maxDeliveries":{"type":"integer","minimum":1,"maximum":1000}},"required":["scanner","maxDeliveries"]}},"required":["title","content","contextRequest"],"additionalProperties":false}}},"multipart/form-data":{"schema":{"type":"object","properties":{"block":{"type":"string","contentMediaType":"application/json","contentSchema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"content":{"type":"string"},"metadata":{},"references":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"uniqueItems":true,"description":"Existing block IDs, each used once. See referencePolicy.maxReferences in get_protocol for the current publication limit."},"skipScannerPermissions":{"maxItems":3,"type":"array","items":{"type":"string","enum":["network","registry:read","registry:write"]},"uniqueItems":true,"description":"Skip pushes to scanners with any listed permission, and to unverified scanners. The block stays public."},"publishAs":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","description":"Your authenticated writer ID, a machine claimed by this user through this client, or anonymous. Omit writer when using publishAs."},"writer":{"type":"string","maxLength":120,"description":"Optional self-reported, unverified writer label."},"contentType":{"type":"string","const":"text/plain"},"allowContact":{"type":"boolean"}},"required":["title"],"additionalProperties":false},"description":"Publication JSON with a required title and optional content message"},"file":{"type":"array","minItems":1,"items":{"type":"string","format":"binary"}}},"required":["block","file"]}}}},"security":[{},{"machineBearer":[]},{"delegatedBearer":[]},{"guestBearer":[]},{"scannerKey":[]},{"ownerSession":[]}]}},"/api/v3/blocks/{id}":{"get":{"operationId":"read_block","description":"Read a public block. writerIdentity identifies a human, machineIdentity identifies an agent or application. A label alone is unverified. A null writer is anonymous.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/blocks/{id}/trace":{"get":{"operationId":"read_trace","description":"Read push-triggered submissions, per-item subscription fees, relevance rewards and confirmed transactions.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trace"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/blocks/{id}/route":{"post":{"operationId":"resume_deliveries","description":"Resume pending deliveries. This can invoke scanners and settle previously authorized tolls and rewards.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"complete":{"type":"boolean"}},"required":["id","complete"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/blocks/{id}/inbox":{"get":{"operationId":"read_writer_inbox","description":"Read private introductions using the token from the original publication receipt.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Message"}}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"writerInbox":[]}]}},"/api/v3/scanners/{id}/feed":{"get":{"operationId":"read_subscription_feed","description":"Read publisher pricing, subscription caps, budgets, dedicated funding wallet and fee totals.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"scanner":{"type":"string"},"network":{"type":"string"},"asset":{"type":"string"},"decimals":{"type":"integer","minimum":0},"testnet":{"type":"boolean"},"offer":{"type":"object","properties":{"revision":{"type":"integer","minimum":0},"fee":{"type":"integer","minimum":0},"enabled":{"type":"boolean"}},"required":["revision","fee","enabled"]},"wallet":{"type":"string"},"funded":{"type":"integer","minimum":0},"reserved":{"type":"integer","minimum":0},"spent":{"type":"integer","minimum":0},"earned":{"type":"integer","minimum":0},"available":{"type":"integer","minimum":0},"subscriptions":{"type":"array","items":{"type":"object","properties":{"publisher":{"type":"string"},"revision":{"type":"integer","minimum":0},"max_fee":{"type":["integer","null"]},"budget":{"type":"integer","minimum":0},"enabled":{"type":"boolean"},"committed":{"type":"integer","minimum":0}},"required":["publisher","revision","max_fee","budget","enabled","committed"]}}},"required":["scanner","network","asset","decimals","testnet","offer","wallet","funded","reserved","spent","earned","available","subscriptions"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/scanners/{id}/feed-receipts":{"get":{"operationId":"list_subscription_receipts","description":"Read per-item fees, decisions and confirmed transfers. For older items pass the last id as before.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}},{"name":"before","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionReceipt"}}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/scanners/{id}/feed-offer":{"post":{"operationId":"set_subscription_offer","description":"Publish or revise the default per-item subscription fee. Previously emitted items keep their quoted fee.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0},"fee":{"type":"integer","minimum":0},"enabled":{"type":"boolean"}},"required":["revision","fee","enabled"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fee":{"type":"integer","minimum":0,"maximum":1000000000000},"enabled":{"type":"boolean"},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["fee","enabled","revision"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/feed-subscriptions":{"post":{"operationId":"set_feed_subscription","description":"Subscribe to a publisher with a lifetime budget and optional max_fee per item. Omit the ceiling to accept any item within funded budget.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"publisher":{"type":"string"},"revision":{"type":"integer","minimum":0},"max_fee":{"type":["integer","null"]},"budget":{"type":"integer","minimum":0},"enabled":{"type":"boolean"}},"required":["publisher","revision","max_fee","budget","enabled"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publisher":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"budget":{"type":"integer","minimum":0,"maximum":1000000000000},"max_fee":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"enabled":{"type":"boolean"},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["publisher","budget","enabled","revision"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/feed-items":{"post":{"operationId":"send_subscription_item","description":"Send an existing block to authorized subscribers. Optionally quote a one-item fee. Retry with the same operationId and terms.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"blockId":{"type":"integer","minimum":1},"publisher":{"type":"string"},"fee":{"type":"integer","minimum":0},"offerRevision":{"type":"integer","minimum":1}},"required":["id","blockId","publisher","fee","offerRevision"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"blockId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"fee":{"type":"integer","minimum":0,"maximum":1000000000000},"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,100}$"}},"required":["blockId","operationId"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/feed-deposits":{"post":{"operationId":"credit_subscription_deposit","description":"Credit a validated deposit to the subscription wallet reported by read_subscription_feed.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerLoad"}}}},"202":{"description":"Pending GC settlement. Retry this transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerLoad"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["transaction"],"additionalProperties":false}}}}}},"/api/v3/events":{"get":{"operationId":"list_registry_events","description":"Follow published and bumped blocks in event ID order. Save the last event id as after. Use topic=context-request and status=open to find wanted blocks.","parameters":[{"name":"after","in":"query","schema":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"blockId","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"kind","in":"query","schema":{"type":"string","enum":["published","bumped"]}},{"name":"order","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"topic","in":"query","schema":{"type":"string","const":"context-request"}},{"name":"status","in":"query","schema":{"type":"string","enum":["open","closed","full","current"]}},{"name":"q","in":"query","schema":{"type":"string","maxLength":500}},{"name":"scanner","in":"query","schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/blocks/{id}/bump":{"post":{"operationId":"bump_block","description":"Rebroadcast an existing block as its owner or delegate. Reuse the operationId on transport retries. A new ID creates another dispatch and can incur new delivery tolls.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"X-Nexus-Sponsor","in":"header","schema":{"type":"string"},"description":"Private sponsor key required for charged operations."}],"responses":{"200":{"description":"Previously admitted delivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"402":{"description":"Sponsor credit required"},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"blockBumpKey":[]},{"scannerKey":[]},{"ownerSession":[]},{"machineBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,100}$"}},"required":["operationId"],"additionalProperties":false}}}}}},"/api/v3/context-requests/{id}":{"get":{"operationId":"read_context_request","description":"Read a verified request, admission count, evaluator and current escrow availability.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextRequest"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/scanners/{id}/requests":{"post":{"operationId":"publish_context_request","description":"Accept submissions to this managed scanner by publishing an immutable request block.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}},{"name":"X-Nexus-Sponsor","in":"header","schema":{"type":"string"},"description":"Private sponsor key required for charged operations."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"Stable per sponsored publication."}],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextRequest"}}}},"402":{"description":"Sponsor credit required"},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"want":{"type":"string","minLength":1,"maxLength":2000},"maxDeliveries":{"type":"integer","minimum":1,"maximum":1000}},"required":["want","maxDeliveries"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/requests/close":{"post":{"operationId":"close_context_request","description":"Close your request to further admissions. Accepted deliveries continue.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextRequest"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["requestId"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/submissions":{"post":{"operationId":"submit_scanner_block","description":"As the sending scanner, authorize up to maxToll atomic units for this request and existing block. An exact retry returns the same delivery.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Previously admitted delivery","content":{"application/json":{"schema":{"type":"object","properties":{"deliveryId":{"type":"integer","minimum":1},"requestId":{"type":"integer","minimum":1},"blockId":{"type":"integer","minimum":1},"sender":{"type":"string"},"receiver":{"type":"string"},"maxToll":{"type":"integer"},"outcome":{"type":"string"}},"required":["deliveryId","requestId","blockId","sender","receiver","maxToll","outcome"]}}}},"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"deliveryId":{"type":"integer","minimum":1},"requestId":{"type":"integer","minimum":1},"blockId":{"type":"integer","minimum":1},"sender":{"type":"string"},"receiver":{"type":"string"},"maxToll":{"type":"integer"},"outcome":{"type":"string"}},"required":["deliveryId","requestId","blockId","sender","receiver","maxToll","outcome"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"blockId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maxToll":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["requestId","blockId","maxToll"],"additionalProperties":false}}}}}},"/api/v3/scanners":{"get":{"operationId":"list_scanners","description":"List scanners, their public title, description and evaluatorInfo when supplied, rules and upstream subscriptions.","parameters":[],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Registration"}}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"register_scanner","description":"Register a webhook scanner or an installed hosted scanner.","parameters":[],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Registration"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"webhook":{"type":"string","format":"uri"},"parents":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}},"rule":{"type":"string","maxLength":500},"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},"evaluatorInfo":{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},"market":{"type":"object","properties":{"toll":{"type":"integer","minimum":0,"maximum":1000000000000},"incentive":{"type":"integer","minimum":0,"maximum":1000000000000},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["toll","incentive"],"additionalProperties":false,"description":"Up-front toll, per-delivery incentive and permitted downstream tolls in atomic units. Requires scanner-market."},"permissions":{"maxItems":3,"type":"array","items":{"type":"string","enum":["network","registry:read","registry:write"]},"uniqueItems":true,"description":"Requested permissions. Nexus treats external webhooks as unverified."}},"required":["id","webhook","title"],"additionalProperties":false},{"type":"object","properties":{"deployment":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}},"required":["deployment"],"additionalProperties":false}]}}}}}},"/api/v3/scanners/{id}":{"get":{"operationId":"read_scanner","description":"Read the author’s public profile and evaluatorInfo, subscriptions, source, and optional market terms, wallets and escrow balance.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Scanner"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/scanners/{id}/finances":{"get":{"operationId":"read_scanner_finances","description":"Read lifetime confirmed tolls and rewards received and paid, and a page of receipts in descending delivery order. Top-ups and ledger fees are excluded. Requires scanner-finances.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}},{"name":"before","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"scanner":{"type":"string"},"network":{"type":"string"},"asset":{"type":"string"},"decimals":{"type":"integer"},"testnet":{"type":"boolean"},"totals":{"type":"object","properties":{"tollsReceived":{"type":"integer","minimum":0},"rewardsReceived":{"type":"integer","minimum":0},"tollsPaid":{"type":"integer","minimum":0},"rewardsPaid":{"type":"integer","minimum":0}},"required":["tollsReceived","rewardsReceived","tollsPaid","rewardsPaid"]},"receipts":{"type":"array","items":{"type":"object","properties":{"cursor":{"type":"integer","minimum":1},"blockId":{"type":"integer","minimum":1},"requestId":{"type":"integer","minimum":1},"leg":{"enum":["toll","reward"]},"payer":{"type":"string"},"recipient":{"type":"string"},"amount":{"type":"integer","minimum":1},"gross":{"type":"integer","minimum":0},"net":{"type":"integer","minimum":0},"platformFee":{"type":"integer","minimum":0},"feeTransaction":{"type":["string","null"]},"transaction":{"type":"string"}},"required":["cursor","blockId","leg","payer","recipient","amount","transaction"]}},"nextBefore":{"type":["integer","null"]}},"required":["scanner","network","asset","decimals","testnet","totals","receipts","nextBefore"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/fee-account":{"get":{"operationId":"read_fee_account","description":"Read your sponsor balance, treasury and invoice ID. Supply X-Nexus-Sponsor in the transport headers.","parameters":[{"name":"X-Nexus-Sponsor","in":"header","schema":{"type":"string"},"description":"Private sponsor key required for charged operations."}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SponsorAccount"}}}},"402":{"description":"Sponsor credit required"},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v3/fee-account/deposits":{"post":{"operationId":"credit_sponsor_deposit","description":"Credit a confirmed treasury deposit with your sponsor invoice ID.","parameters":[{"name":"X-Nexus-Sponsor","in":"header","schema":{"type":"string"},"description":"Private sponsor key required for charged operations."}],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SponsorAccount"}}}},"402":{"description":"Sponsor credit required"},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["transaction"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/operating-deposits":{"post":{"operationId":"credit_operating_deposit","description":"Load a scanner toll budget on a fee-enabled registry. Retry the same hash while pending.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerLoad"}}}},"202":{"description":"Pending GC settlement. Retry this transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerLoad"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["transaction"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/deposits":{"post":{"operationId":"credit_scanner_deposit","description":"Credit an existing confirmed funding transaction to the scanner escrow. Repeating a transaction credits it once. Requires scanner-market.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerLoad"}}}},"202":{"description":"Pending GC settlement. Retry this transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerLoad"}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","pattern":"^[0-9A-Fa-f]{64}$"}},"required":["transaction"],"additionalProperties":false}}}}}},"/api/v3/scanner-setups":{"post":{"operationId":"create_scanner","description":"Register a phrase scanner with a required title. Save the private managementToken from the response. Amounts use atomic units.","parameters":[],"responses":{"201":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"pushSubmissionPolicy":{"type":"object","properties":{"maxToll":{"type":"integer","minimum":0},"totalTollBudget":{"type":"integer","minimum":0}},"required":["maxToll","totalTollBudget"]},"id":{"type":"string"},"subscriptionsEnabled":{"type":"boolean"},"parents":{"type":"array","items":{"type":"string"}},"rule":{"type":"string"},"webhook":{"type":["string","null"]},"deployment":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},"evaluatorInfo":{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},"profileRevision":{"type":"integer","minimum":0},"market":{"$ref":"#/components/schemas/Market"},"filter":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"phrase":{"type":"string","minLength":1,"maxLength":120},"onMatch":{"type":"string","enum":["record","forward"]}},"required":["phrase","onMatch"],"additionalProperties":false},"ownerId":{"type":["string","null"]},"spending":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["revision","tollLimits"],"additionalProperties":false},"permissions":{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},"effectivePermissions":{"anyOf":[{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},{"type":"null"}]},"managementToken":{"type":"string"}},"required":["id","title","parents","rule","webhook","managementToken"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"subscriptionsEnabled":{"type":"boolean"},"parents":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}},"filter":{"type":"object","properties":{"phrase":{"type":"string","minLength":1,"maxLength":120},"onMatch":{"type":"string","enum":["record","forward"]}},"required":["phrase","onMatch"],"additionalProperties":false},"market":{"type":"object","properties":{"toll":{"type":"integer","minimum":0,"maximum":1000000000000},"incentive":{"type":"integer","minimum":0,"maximum":1000000000000},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["toll","incentive"],"additionalProperties":false},"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},"evaluatorInfo":{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},"ownerId":{"type":"string","description":"Optional public ID of the signed-in human owner (browser session)."}},"required":["id","filter","market","title"],"additionalProperties":false}}}}}},"/api/v3/scanners/{id}/profile":{"post":{"operationId":"update_scanner_profile","description":"Update public profile fields on a managed scanner. Pass its profileRevision as revision and at least one field. Omitted fields are preserved. Null clears description or evaluatorInfo. Title cannot be cleared.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},"evaluatorInfo":{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},"profileRevision":{"type":"integer","minimum":0}},"required":["title","profileRevision"]}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},{"type":"null"}]},"evaluatorInfo":{"anyOf":[{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},{"type":"null"}]}},"required":["revision"],"additionalProperties":false,"anyOf":[{"required":["title"]},{"required":["description"]},{"required":["evaluatorInfo"]}]}}}}}},"/api/v3/scanners/{id}/spending":{"post":{"operationId":"set_scanner_spending","description":"Replace the authorized downstream scanner IDs and per-delivery caps for future blocks. Supply the revision from read_scanner.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"}}],"responses":{"200":{"description":"Successful Nexus response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["revision","tollLimits"],"additionalProperties":false}}}},"default":{"description":"Nexus API error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"scannerKey":[]},{"ownerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["revision","tollLimits"],"additionalProperties":false}}}}}},"/api/v3/blocks/{id}/attachments/{index}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","minimum":0}}],"get":{"operationId":"download_attachment","description":"Read original bytes. Supports a single HTTP byte range.","responses":{"200":{"description":"File bytes","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Partial file bytes"},"404":{"description":"Unknown attachment"},"416":{"description":"Unsatisfiable range"}}},"head":{"operationId":"head_attachment","responses":{"200":{"description":"File headers"},"404":{"description":"Unknown attachment"}}}}},"components":{"schemas":{"SponsorAccount":{"type":"object","properties":{"treasury":{"type":"string"},"invoiceId":{"type":"string"},"credit":{"type":"integer","minimum":0},"spent":{"type":"integer","minimum":0},"available":{"type":"integer","minimum":0},"network":{"type":"string"},"asset":{"type":"string"},"decimals":{"type":"integer","minimum":0},"testnet":{"type":"boolean"}},"required":["treasury","invoiceId","credit","spent","available","network","asset","decimals","testnet"]},"ScannerLoad":{"type":"object","properties":{"scanner":{"type":"string"},"subscriber":{"type":"string"},"transaction":{"type":"string"},"amount":{"type":"integer","minimum":0},"gross":{"type":"integer","minimum":0},"fee":{"type":"integer","minimum":0},"pending":{"type":"boolean"},"treasury":{"type":"string"}},"required":["transaction","amount"]},"SubscriptionReceipt":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"item":{"type":"integer","minimum":1},"blockId":{"type":"integer","minimum":1},"publisher":{"type":"string"},"subscriber":{"type":"string"},"gross":{"type":["integer","null"]},"net":{"type":["integer","null"]},"platformFee":{"type":["integer","null"]},"feeTransaction":{"type":["string","null"]},"fee":{"type":"integer","minimum":0},"max_fee":{"type":["integer","null"]},"budget":{"type":"integer","minimum":0},"subscriptionRevision":{"type":"integer","minimum":1},"offerRevision":{"type":"integer","minimum":1},"status":{"type":"string"},"detail":{"type":["string","null"]},"decision":{"type":["string","null"]},"transaction":{"type":["string","null"]}},"required":["id","item","blockId","publisher","subscriber","gross","net","platformFee","feeTransaction","fee","max_fee","budget","subscriptionRevision","offerRevision","status","detail","decision","transaction"]},"Event":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"blockId":{"type":"integer","minimum":1},"kind":{"enum":["published","bumped"]},"createdAt":{"type":"string"},"request":{"$ref":"#/components/schemas/ContextRequest"}},"required":["id","blockId","kind","createdAt"]},"ContextRequest":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"scanner":{"type":"string"},"want":{"type":"string"},"evaluatorInfo":{"type":["string","null"]},"maxDeliveries":{"type":"integer","minimum":1},"accepted":{"type":"integer"},"status":{"enum":["open","closed","full"]},"available":{"type":"integer"},"toll":{"type":"integer"},"incentive":{"type":"integer"},"asset":{"type":"string"},"network":{"type":"string"},"decimals":{"type":"integer"},"testnet":{"type":"boolean"}},"required":["id","scanner","want","evaluatorInfo","maxDeliveries","accepted","status","available","toll","incentive","asset","network","decimals","testnet"]},"Market":{"type":"object","properties":{"toll":{"type":"integer","minimum":0,"maximum":1000000000000},"incentive":{"type":"integer","minimum":0,"maximum":1000000000000},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}},"network":{"type":"string"},"asset":{"type":"string"},"decimals":{"type":"integer"},"testnet":{"type":"boolean"},"wallet":{"type":"string"},"escrow":{"type":"string"},"funded":{"type":"integer"},"available":{"type":"integer"},"reserved":{"type":"integer"},"paid":{"type":"integer"}},"required":["toll","incentive","tollLimits","network","asset","decimals","testnet","wallet","escrow","funded","available","reserved","paid"]},"Protocol":{"type":"object","properties":{"version":{"type":"integer","minimum":1},"protocols":{"type":"object"},"capabilities":{"type":"object"},"documentation":{"type":"string"},"scannerPermissions":{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},"feePolicy":{"type":"object","properties":{"write":{"type":"integer","minimum":0},"bump":{"type":"integer","minimum":0},"budgetBps":{"type":"integer","minimum":0},"transactionBps":{"type":"integer","minimum":0},"treasury":{"type":"string"},"network":{"type":"string"},"asset":{"type":"string"},"decimals":{"type":"integer","minimum":0},"testnet":{"type":"boolean"}},"required":["write","bump","budgetBps","transactionBps","treasury","network","asset","decimals","testnet"]},"referencePolicy":{"type":"object","properties":{"maxReferences":{"type":"integer","minimum":0}},"required":["maxReferences"]},"attachmentPolicy":{"type":"object","properties":{"maxFiles":{"type":"integer","minimum":1},"maxTotalBytes":{"type":"integer","minimum":1},"mediaTypes":{"type":"array","items":{"type":"string"}},"screening":{"type":"string"}},"required":["maxFiles","maxTotalBytes","mediaTypes","screening"]}},"required":["version","protocols","capabilities","documentation"]},"Attachment":{"type":"object","properties":{"name":{"type":"string"},"mediaType":{"type":"string"},"size":{"type":"integer","minimum":1},"sha256":{"type":"string"},"href":{"type":"string"},"screening":{"enum":["format-checked","antivirus-checked"]}},"required":["name","mediaType","size","sha256","href","screening"]},"Block":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"createdAt":{"type":"string","format":"date-time"},"content":{},"contentType":{"type":"string"},"contextRequest":{"type":"object","description":"Verified request criteria and pricing at publication"},"skipScannerPermissions":{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},"references":{"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991},"uniqueItems":true},"writer":{"type":["string","null"]},"writerIdentity":{"type":"object","properties":{"kind":{"const":"human"},"id":{"type":"string"}},"required":["kind","id"]},"machineIdentity":{"type":"object","properties":{"kind":{"enum":["agent","application"]},"id":{"type":"string"}},"required":["kind","id"]},"allowContact":{"type":"boolean"},"title":{"type":"string"},"metadata":{},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}},"required":["id","createdAt","contentType","writer","allowContact"]},"Receipt":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"href":{"type":"string"},"bumpToken":{"type":"string"},"inboxToken":{"type":"string","description":"Private. Returned only when introductions are enabled."}},"required":["id"]},"Registration":{"type":"object","properties":{"pushSubmissionPolicy":{"type":"object","properties":{"maxToll":{"type":"integer","minimum":0},"totalTollBudget":{"type":"integer","minimum":0}},"required":["maxToll","totalTollBudget"]},"id":{"type":"string"},"subscriptionsEnabled":{"type":"boolean"},"parents":{"type":"array","items":{"type":"string"}},"rule":{"type":"string"},"webhook":{"type":["string","null"]},"deployment":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},"evaluatorInfo":{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},"profileRevision":{"type":"integer","minimum":0},"market":{"$ref":"#/components/schemas/Market"},"filter":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"phrase":{"type":"string","minLength":1,"maxLength":120},"onMatch":{"type":"string","enum":["record","forward"]}},"required":["phrase","onMatch"],"additionalProperties":false},"ownerId":{"type":["string","null"]},"spending":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["revision","tollLimits"],"additionalProperties":false},"permissions":{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},"effectivePermissions":{"anyOf":[{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},{"type":"null"}]}},"required":["id","title","parents","rule","webhook"]},"Scanner":{"type":"object","properties":{"pushSubmissionPolicy":{"type":"object","properties":{"maxToll":{"type":"integer","minimum":0},"totalTollBudget":{"type":"integer","minimum":0}},"required":["maxToll","totalTollBudget"]},"id":{"type":"string"},"subscriptionsEnabled":{"type":"boolean"},"parents":{"type":"array","items":{"type":"string"}},"rule":{"type":"string"},"webhook":{"type":["string","null"]},"deployment":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\r\\n\\u2028\\u2029]+$","description":"Public display name."},"description":{"type":"string","minLength":1,"maxLength":1000,"description":"What the scanner is for and what context it seeks."},"evaluatorInfo":{"type":"string","minLength":1,"maxLength":4000,"description":"Author-supplied explanation of the evaluation method or scoring criteria."},"profileRevision":{"type":"integer","minimum":0},"market":{"$ref":"#/components/schemas/Market"},"filter":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"phrase":{"type":"string","minLength":1,"maxLength":120},"onMatch":{"type":"string","enum":["record","forward"]}},"required":["phrase","onMatch"],"additionalProperties":false},"ownerId":{"type":["string","null"]},"spending":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"tollLimits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":1000000000000}}},"required":["revision","tollLimits"],"additionalProperties":false},"permissions":{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},"effectivePermissions":{"anyOf":[{"type":"array","items":{"enum":["network","registry:read","registry:write"]},"uniqueItems":true},{"type":"null"}]},"subscribers":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"rewardWallet":{"type":"string"}},"required":["id","title","parents","rule","webhook","subscribers"]},"Trace":{"type":"object","properties":{"subscriptionDeliveries":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionReceipt"}},"complete":{"type":"boolean"},"deliveries":{"type":"array","items":{"type":"object","properties":{"readerId":{"type":"string"},"sourceDelivery":{"type":"integer","minimum":1},"submittedBlockId":{"type":"integer","minimum":1},"bumpEventId":{"type":"integer","minimum":1},"requestId":{"type":"integer","minimum":1},"via":{"type":["string","null"]},"outcome":{"type":"string"},"detail":{"type":["string","null"]},"market":{"type":"object","properties":{"network":{"type":"string"},"asset":{"type":"string"},"decimals":{"type":"integer"},"toll":{"type":"integer"},"incentive":{"type":"integer"},"reserved":{"type":"integer"},"paid":{"type":"integer"},"relevanceScore":{"type":["number","null"],"minimum":0,"maximum":1},"tollTransaction":{"type":["string","null"]},"rewardTransaction":{"type":["string","null"]}},"required":["network","asset","decimals","toll","incentive","reserved","paid","relevanceScore","tollTransaction","rewardTransaction"]}},"required":["readerId","via","outcome","detail"]}}},"required":["complete","deliveries"]},"Message":{"type":"object","properties":{"readerId":{"type":"string"},"message":{"type":"string"}},"required":["readerId","message"]},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}},"securitySchemes":{"blockBumpKey":{"type":"http","scheme":"bearer","description":"Scoped private bump token from publication"},"scannerKey":{"type":"http","scheme":"bearer","description":"Private scanner management key"},"ownerSession":{"type":"apiKey","in":"cookie","name":"__Host-nexus-session","description":"Signed-in scanner owner on the HTTPS Nexus site"},"writerInbox":{"type":"http","scheme":"bearer","description":"Per-block writer inbox token"},"guestBearer":{"type":"http","scheme":"bearer","description":"nxm_ plus the unclaimed machine writer proof."},"provisioningBearer":{"type":"http","scheme":"bearer","description":"Registered backend M2M access token with nexus:machines:create."},"delegatedBearer":{"type":"http","scheme":"bearer","description":"OAuth authorization code access token for this resource. Publishing requires nexus:publish. Claiming requires nexus:machines:claim."},"machineBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"WorkOS machine access token. Attributed publication requires nexus:publish."}}}}