{"openapi":"3.1.0","info":{"title":"Ripae room","version":"0.2.1","description":"Records a deal two companies' agents already agreed. POST /v1/{operation} runs the tool ripae_{operation}. A company that joins on or before 1 January 2027 records for free, for the life of the company. A company that joins after that pays nothing for its first 50 recordings and $0.50 for each agreed record after that, charged to the company that proposed it. Breaks and unconfirmed records are never charged. A tool refusal is HTTP 200 with ok false. HTTP 401 means the operation needs a party bearer or an OAuth token for the scope ripae. Signup still needs a person at the company to accept. Public operations are a free tier and need no API key: an agent reads them, including GET /v1/tools, with no credential. The party bearer comes back once from ripae_finish_signup after a person at the company accepts, and an OAuth client registers itself at /oauth/register. Credit offers are published on a sandbox deployment with sandbox set to true. Each address may send 120 requests a minute on room paths. Every response on those paths sends RateLimit-Policy and RateLimit (draft-ietf-httpapi-ratelimit-headers). RateLimit-Policy is default;q=120;w=60 unless the deployment sets another quota, and RateLimit is default;a=<remaining>;w=<seconds left in the 60-second window>. Over that limit the response is HTTP 429 with Retry-After set to the seconds left in that window. The version is the /v1/ path. Ripae does not remove or change the meaning of a /v1 operation without a Deprecation header (RFC 9745) and a Sunset header (RFC 8594), both sent at least 180 days before the sunset date. The current /v1 surface is not deprecated and does not send those headers. The policy is https://ripae.ai/versioning. The same operations are on the MCP servers at /room/public/mcp (no sign-in, nine tools) and /room/mcp. This document describes the room only."},"servers":[{"url":"https://record.ripae.ai"}],"tags":[{"name":"public","description":"No sign-in."},{"name":"party","description":"A party bearer, or an OAuth access token for the scope ripae."}],"components":{"securitySchemes":{"ripae":{"type":"oauth2","description":"Authorization code with PKCE S256. The client registers at /oauth/register. Server metadata is at /.well-known/oauth-authorization-server.","flows":{"authorizationCode":{"authorizationUrl":"https://record.ripae.ai/oauth/authorize","tokenUrl":"https://record.ripae.ai/oauth/token","scopes":{"ripae":"Act for the company that signed in."}}}},"ripaeBearer":{"type":"http","scheme":"bearer","description":"A party bearer, or an OAuth access token for the scope ripae."}},"schemas":{"Error":{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}},"Result":{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}}}},"paths":{"/v1/start":{"post":{"operationId":"ripae_start","summary":"Talk to Ripae's onboarding agent to join Ripae.","description":"Talk to Ripae's onboarding agent to join Ripae. Send what you know about your company; it asks for the rest. When the setup is ready, send submit: true and a person at your company gets an email to accept the signature agreement. Keep the claimToken for ripae_finish_signup.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"What you say to the onboarding agent."},"sessionId":{"type":"string","description":"The session from an earlier turn."},"invite":{"type":"string","description":"An invitation token from another company."},"submit":{"type":"boolean","description":"Send the finished setup to signup."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/finish_signup":{"post":{"operationId":"ripae_finish_signup","summary":"After a person at your company accepted the signature agreement, exchange the claimToken for your party bearer.","description":"After a person at your company accepted the signature agreement, exchange the claimToken for your party bearer. The bearer is returned once.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"claimToken":{"type":"string","description":"The claimToken ripae_start returned. It is exchanged once."}},"required":["claimToken"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/list_deal_types":{"post":{"operationId":"ripae_list_deal_types","summary":"List the deal types Ripae records, with each template's sides and fields.","description":"List the deal types Ripae records, with each template's sides and fields. A draft must fit its template exactly. Free.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/propose_record":{"post":{"operationId":"ripae_propose_record","summary":"Propose a record of a deal both companies already agreed.","description":"Propose a record of a deal both companies already agreed. Ripae mints the deal id unless you give one, stores the draft, and asks the other company to confirm by confirmBy. Unless confirm is false, your side confirms in the same call. Nothing is recorded until both sides confirm the same terms. A company that joins on or before 1 January 2027 records for free, for the life of the company. A company that joins after that pays nothing for its first 50 recordings and $0.50 for each agreed record after that, charged to the company that proposed it. Breaks and unconfirmed records are never charged.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dealType":{"type":"string","description":"A deal type from ripae_list_deal_types."},"counterparty":{"type":"string","description":"The other company's party id (its domain with dashes, such as globex-com) or its domain."},"side":{"type":"string","enum":["side_a","side_b"],"description":"Your side in the template. Omitted, it is read from the content's party fields."},"content":{"type":"object","description":"The fields of the deal type's template."},"confirmBy":{"type":"string","description":"UTC time, such as 2026-11-27T17:00:00.000Z, by which both sides must confirm."},"dealId":{"type":"string","description":"deal- and 20 lowercase hex characters. Needed when you sign in the same call."},"agentId":{"type":"string","description":"Your agent, agent:name. Omitted, your setup's agent."},"confirm":{"type":"boolean","description":"Confirm your side in the same call. Default true."},"signature":{"type":"string","description":"For agent_signed parties: the agent's Ed25519 signature, base64, over the message ripae_content_hash returns."},"keyId":{"type":"string","description":"The registered key that made the signature."}},"required":["dealType","counterparty","content","confirmBy"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recording_bill":{"post":{"operationId":"ripae_recording_bill","summary":"What your company owes for recordings.","description":"What your company owes for recordings. A company that joins on or before 1 January 2027 records for free, for the life of the company. A company that joins after that pays nothing for its first 50 recordings and $0.50 for each agreed record after that, charged to the company that proposed it. Breaks and unconfirmed records are never charged. Joining and responding are free, and a recording is charged once. When complimentary is true, next is 0.00 for every further recording. Otherwise next is 0.00 while freeRemaining is above zero, then price.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/confirm_record":{"post":{"operationId":"ripae_confirm_record","summary":"Confirm a draft for your company.","description":"Confirm a draft for your company. Without content you confirm the draft as written. With content you confirm your own version; if it differs, the case is a break and every differing field is listed. Free.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dealId":{"type":"string","description":"The deal id."},"agentId":{"type":"string","description":"Your agent, agent:name. Omitted, your setup's agent."},"content":{"type":"object","description":"Your version of the terms. Omitted, you confirm the draft as written."},"signature":{"type":"string","description":"For agent_signed parties: the agent's Ed25519 signature, base64, over the message ripae_content_hash returns."},"keyId":{"type":"string","description":"The registered key that made the signature."}},"required":["dealId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/get_record":{"post":{"operationId":"ripae_get_record","summary":"Read a deal: the draft, each side's confirm, the state, any differences, and the record id once agreed.","description":"Read a deal: the draft, each side's confirm, the state, any differences, and the record id once agreed. Only the two companies can read it.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dealId":{"type":"string","description":"The deal id."}},"required":["dealId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/export_record":{"post":{"operationId":"ripae_export_record","summary":"Export an agreed record as a bundle anyone can check offline, with both sides' content, the seal, and the inclusion proof.","description":"Export an agreed record as a bundle anyone can check offline, with both sides' content, the seal, and the inclusion proof.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dealId":{"type":"string","description":"The deal to export. Give this or recordId."},"recordId":{"type":"string","description":"The agreed record to export. Give this or dealId."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/verify_record":{"post":{"operationId":"ripae_verify_record","summary":"Check a record by id, or check a bundle.","description":"Check a record by id, or check a bundle. Returns each of the seven checks. Free.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recordId":{"type":"string","description":"An agreed record id. Give this or a bundle."},"bundle":{"type":"object","description":"A record bundle from ripae_export_record. Give this or a recordId."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/invite":{"post":{"operationId":"ripae_invite","summary":"Invite someone by work email.","description":"Invite someone by work email. A person at the other company in a deal gets a confirm link. A company not in Ripae gets a signup invitation. A colleague at your own domain is added as a contact.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"A work email."},"dealId":{"type":"string","description":"The deal the other company should confirm. Omitted, the email is a signup invitation or adds a colleague."},"note":{"type":"string","description":"A short note in the email."}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/register_agent_key":{"post":{"operationId":"ripae_register_agent_key","summary":"Register an Ed25519 public key (base64) for one of your agents.","description":"Register an Ed25519 public key (base64) for one of your agents. Signed confirms must use a registered key.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string","description":"The agent, agent:name."},"publicKey":{"type":"string","description":"The agent's Ed25519 public key, base64."}},"required":["agentId","publicKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/revoke_agent_key":{"post":{"operationId":"ripae_revoke_agent_key","summary":"Revoke an agent key.","description":"Revoke an agent key. Later confirms with it are refused. Records sealed before stay valid.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string","description":"The agent whose key is revoked."},"keyId":{"type":"string","description":"The registered key."}},"required":["agentId","keyId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/add_webhook":{"post":{"operationId":"ripae_add_webhook","summary":"Register an HTTPS URL that gets a signed POST when one of your deals is proposed, agreed, breaks, or closes unconfirmed.","description":"Register an HTTPS URL that gets a signed POST when one of your deals is proposed, agreed, breaks, or closes unconfirmed. The secret for checking the Ripae-Signature header is returned once.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"An https URL on a public host."},"events":{"type":"array","items":{"type":"string","enum":["proposed","agreed","break","unconfirmed"]},"description":"Omitted, all four."}},"required":["url"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/list_webhooks":{"post":{"operationId":"ripae_list_webhooks","summary":"List your company's webhooks with their last few deliveries.","description":"List your company's webhooks with their last few deliveries. Secrets are not shown.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/remove_webhook":{"post":{"operationId":"ripae_remove_webhook","summary":"Remove a webhook.","description":"Remove a webhook. Deliveries not yet made to it are dropped.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"webhookId":{"type":"string","description":"The webhook from ripae_list_webhooks."}},"required":["webhookId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/content_hash":{"post":{"operationId":"ripae_content_hash","summary":"Hash content the way Ripae does.","description":"Hash content the way Ripae does. With dealId and party, also returns the exact message an agent_signed party signs.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"object","description":"The fields to hash."},"dealId":{"type":"string","description":"With party, the deal the signature message is for."},"party":{"type":"string","description":"The party id the signature message is for."}},"required":["content"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/list_offers":{"post":{"operationId":"ripae_list_offers","summary":"List the credit offers open now.","description":"List the credit offers open now. Each is a signed file you can fetch and check. The lender is a partner bank; Ripae originates. A status other than published says why there are none.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/get_offer":{"post":{"operationId":"ripae_get_offer","summary":"Fetch one signed offer: amount and term ranges, APR, fees, the facts the lender requires, which terms you may propose and their bounds, and the disclosures.","description":"Fetch one signed offer: amount and term ranges, APR, fees, the facts the lender requires, which terms you may propose and their bounds, and the disclosures. Omit version for the current one. An offer is not a quote and not credit.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offerId":{"type":"string","description":"The offer id from ripae_list_offers."},"version":{"type":"integer","description":"The offer version. Omitted, the current one."}},"required":["offerId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/check_fit":{"post":{"operationId":"ripae_check_fit","summary":"Check an offer against a mandate: your company's recorded one, or limits you pass.","description":"Check an offer against a mandate: your company's recorded one, or limits you pass. Returns fits and the window both allow, or every field that does not fit and by how much. A fit is not a quote or an approval.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offerId":{"type":"string","description":"The offer id from ripae_list_offers."},"version":{"type":"integer","description":"The offer version. Omitted, the current one."},"mandate":{"type":"object","description":"Limits to check against instead of your recorded mandate. Same fields as a recorded mandate.","properties":{"agents":{"description":"\"all\" or a list of agent ids."},"currency":{"type":"string","enum":["USD"],"description":"USD."},"maxAmount":{"type":"string","description":"Two decimals, such as 100000.00."},"maxApr":{"type":"string","description":"Percent with two decimals, such as 13.00."},"maxAllIn":{"type":["string","null"],"description":"The all-in cap, two decimals, or null when there is none."},"term":{"type":"object","description":"The term the mandate allows, in months.","properties":{"minMonths":{"type":"integer","description":"Shortest term, in months."},"maxMonths":{"type":"integer","description":"Longest term, in months."}},"required":["minMonths","maxMonths"]},"products":{"type":"array","items":{"type":"string","enum":["operating_line","term_loan"]},"description":"operating_line, term_loan, or both."},"approvals":{"type":"array","items":{"type":"string","enum":["request_quote","accept_quote","sign"]},"description":"Must include sign."},"expiresAt":{"type":"string","description":"UTC."}},"required":["agents","currency","maxAmount","maxApr","maxAllIn","term","products","approvals","expiresAt"]}},"required":["offerId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/get_mandate":{"post":{"operationId":"ripae_get_mandate","summary":"Read the credit limits a person at your company set for your agents: amount, APR, term, products, and which steps need a person.","description":"Read the credit limits a person at your company set for your agents: amount, APR, term, products, and which steps need a person. Signing a loan always does.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/mandate_link":{"post":{"operationId":"ripae_mandate_link","summary":"Email a one-time link to a person at your company so they can set or change your agents' credit limits.","description":"Email a one-time link to a person at your company so they can set or change your agents' credit limits. The address must be one of your company's contacts. The link goes only to that inbox; you do not get it.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"A contact at your company. The link goes only to that inbox."}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/request_quote":{"post":{"operationId":"ripae_request_quote","summary":"Ask for a quote on one published offer version, inside your company's credit mandate.","description":"Ask for a quote on one published offer version, inside your company's credit mandate. Ripae prices it from the ratified law and the offer. The terms are firm until holdUntil, and conditional on the facts checking out and on the partner bank approving the loan. A value outside the offer or the mandate is refused, and every such value is named. Sandbox only. A quote is not credit.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offerId":{"type":"string","description":"The offer id from ripae_list_offers."},"version":{"type":"integer","description":"The offer version the quote is for."},"mandateId":{"type":"string","description":"Your company's credit mandate id from ripae_check_fit or ripae_get_mandate."},"amount":{"type":"string","description":"The amount you propose, two decimals, such as 50000.00."},"apr":{"type":"string","description":"The APR you propose, percent with two decimals, such as 12.00."},"termMonths":{"type":"integer","description":"The term you propose, in months."},"agentId":{"type":"string","description":"Your agent, agent:name. Required when the mandate names agents rather than all."}},"required":["offerId","version","mandateId","amount","apr","termMonths"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/signing_link":{"post":{"operationId":"ripae_signing_link","summary":"Email a one-time link so a person at your company can sign a firm quote.","description":"Email a one-time link so a person at your company can sign a firm quote. The address must be one of your company's contacts. The link is also returned, so you can hand it to that person. An agent cannot sign. The page is on Ripae.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","description":"The quoteId from ripae_request_quote."},"email":{"type":"string","description":"A contact at your company."}},"required":["quoteId","email"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/grant_partner":{"post":{"operationId":"ripae_grant_partner","summary":"Let a partner platform act for your company, or read your mandate and confirmed outcomes, until expiresAt.","description":"Let a partner platform act for your company, or read your mandate and confirmed outcomes, until expiresAt. You can revoke it. A grant is a ledger entry.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","description":"The platform id from its partner key."},"scopes":{"type":"array","items":{"type":"string","enum":["act","read_mandate","read_outcomes"]},"description":"act quotes and confirms. read_mandate and read_outcomes are read grants."},"expiresAt":{"type":"string","description":"UTC time the grant ends."}},"required":["platform","scopes","expiresAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/revoke_partner_grant":{"post":{"operationId":"ripae_revoke_partner_grant","summary":"Revoke a partner's grant.","description":"Revoke a partner's grant. Later calls by that platform for your company are refused. The revocation is a ledger entry.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","description":"The platform id whose grant ends."}},"required":["platform"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/read_granted":{"post":{"operationId":"ripae_read_granted","summary":"Read a business's credit mandate and confirmed outcomes.","description":"Read a business's credit mandate and confirmed outcomes. The caller is a partner key, the business has granted read, and the read is logged.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"party":{"type":"string","description":"The company that granted the read, its party id."}},"required":["party"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/export_history":{"post":{"operationId":"ripae_export_history","summary":"Export your company's confirmed records as one signed bundle anyone can check offline.","description":"Export your company's confirmed records as one signed bundle anyone can check offline. You decide who to hand it to.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/explain_quote":{"post":{"operationId":"ripae_explain_quote","summary":"Explain a quote the rulebook already issued.","description":"Explain a quote the rulebook already issued. The amount, the APR, the hold, and the rule are copied from the quote. This does not price and does not rule.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","description":"The quoteId from ripae_request_quote."}},"required":["quoteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/loan_plan":{"post":{"operationId":"ripae_loan_plan","summary":"Read your company's loan plan: the steps from offer to servicing, each read blocked, ready, waiting, or done from your records as of now, and the steps ready to take next.","description":"Read your company's loan plan: the steps from offer to servicing, each read blocked, ready, waiting, or done from your records as of now, and the steps ready to take next. The order is a query over what each step needs and leaves, not a stored workflow. The plan is computed from the record, never stored, and it does not rule, price, or sign. Free.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/find_party":{"post":{"operationId":"ripae_find_party","summary":"Check whether the company at a domain records deals on Ripae and chose to be found.","description":"Check whether the company at a domain records deals on Ripae and chose to be found. Returns its party id, legal name, deal types, and agent card if it is listed; otherwise listed is false, which also means it may not use Ripae. Use the party id to propose a deal. Free.","tags":["public"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"The company's domain, such as acme.com."}},"required":["domain"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/set_listing":{"post":{"operationId":"ripae_set_listing","summary":"Let other companies' agents find your company by its domain with ripae_find_party, or stop.","description":"Let other companies' agents find your company by its domain with ripae_find_party, or stop. Off until you turn it on. Optionally give your own agent card URL, on your domain, so their agents can reach yours.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listed":{"type":"boolean","description":"True lets other companies' agents find yours by domain."},"agentCard":{"type":["string","null"],"description":"HTTPS URL of your agent card on your domain, such as https://acme.com/.well-known/agent-card.json."}},"required":["listed"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/set_issuer":{"post":{"operationId":"ripae_set_issuer","summary":"Name the one issuer whose tokens are this company: an Entra tenant, a Google organization, or a SPIFFE trust domain.","description":"Name the one issuer whose tokens are this company: an Entra tenant, a Google organization, or a SPIFFE trust domain. A token from any other issuer is ignored. This does not replace the person who accepted at signup.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheme":{"type":"string","enum":["entra","google","spiffe"],"description":"entra, google, or spiffe."},"issuer":{"type":"string","description":"The issuer URL, exactly as it appears in the token's iss claim. HTTPS, no other company can name the same one."}},"required":["scheme","issuer"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/whoami":{"post":{"operationId":"ripae_whoami","summary":"Say which company you act for in Ripae, and how you signed in: with the company's bearer, or by an email link (then also the address that signed in).","description":"Say which company you act for in Ripae, and how you signed in: with the company's bearer, or by an email link (then also the address that signed in).","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/teller":{"post":{"operationId":"ripae_teller","summary":"Say something to Ripae.","description":"Say something to Ripae. Your words are kept on your company's history. The reply is the next action, a proposal from the rule table. It is not submitted, and it does not decide the deal. The history is not returned.","tags":["party"],"security":[{"ripae":["ripae"]},{"ripaeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"What you say."}},"required":["message"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool ran. ok true carries data. ok false is a refusal and still uses HTTP 200, with an error code.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["ok"],"properties":{"ok":{"const":true},"data":{"description":"The tool's result."}}},{"type":"object","required":["ok","error"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"string"}}}]}}}},"400":{"description":"The body was not JSON the tool could read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No party bearer or OAuth token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools":{"get":{"operationId":"list_tools","summary":"Every room tool, and which ones need no sign-in.","description":"Returns the tool name, description, and input schema. public lists the tools that need no bearer.","tags":["public"],"security":[],"responses":{"200":{"description":"Every room tool, and which ones need no sign-in.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/pricing.json":{"get":{"operationId":"get_pricing","summary":"The published prices.","description":"A company that joins on or before 1 January 2027 records for free, for the life of the company. A company that joins after that pays nothing for its first 50 recordings and $0.50 for each agreed record after that, charged to the company that proposed it. Breaks and unconfirmed records are never charged.","tags":["public"],"security":[],"responses":{"200":{"description":"The published prices.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/ripae/keys.json":{"get":{"operationId":"get_keys","summary":"Ripae's signing keys.","description":"The keys a verifier uses to check a record or an offer offline.","tags":["public"],"security":[],"responses":{"200":{"description":"Ripae's signing keys.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/ripae/jwks.json":{"get":{"operationId":"get_jwks","summary":"Ripae's signing keys as a JWK set.","description":"The same keys as /.well-known/ripae/keys.json, for a JWS library checking the agent card.","tags":["public"],"security":[],"responses":{"200":{"description":"Ripae's signing keys as a JWK set.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/ripae/checkpoint":{"get":{"operationId":"get_latest_checkpoint","summary":"The latest ledger checkpoint.","description":"The signed root of the ledger. An older checkpoint is GET /v1/checkpoints/{treeSize}.","tags":["public"],"security":[],"responses":{"200":{"description":"The latest ledger checkpoint.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/checkpoints/{treeSize}":{"get":{"operationId":"get_checkpoint","summary":"One ledger checkpoint, by the number of entries it covers.","description":"A checkpoint that was saved. treeSize is that checkpoint's size.","tags":["public"],"security":[],"parameters":[{"name":"treeSize","in":"path","required":true,"description":"The checkpoint size.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"One ledger checkpoint, by the number of entries it covers.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No checkpoint of that size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leaves":{"get":{"operationId":"get_leaves","summary":"Ledger leaves in a position range.","description":"from defaults to 0. to defaults to from plus 10000. The range is at most 10000 leaves.","tags":["public"],"security":[],"parameters":[{"name":"from","in":"query","required":false,"description":"First position. Defaults to 0.","schema":{"type":"integer","minimum":0}},{"name":"to","in":"query","required":false,"description":"Position to stop before. At most 10000 after from.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"Ledger leaves in a position range.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/consistency":{"get":{"operationId":"get_consistency","summary":"A proof that a later checkpoint keeps every earlier entry.","description":"from and to are checkpoint sizes. to is at least from, and both are at least 1.","tags":["public"],"security":[],"parameters":[{"name":"from","in":"query","required":true,"description":"The earlier checkpoint size.","schema":{"type":"integer","minimum":1}},{"name":"to","in":"query","required":true,"description":"The later checkpoint size.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"A proof that a later checkpoint keeps every earlier entry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/records/{recordId}/bundle":{"get":{"operationId":"get_record_bundle","summary":"An agreed record as a bundle anyone can check.","description":"The bundle holds both sides' content, the seal, and the inclusion proof. Checking it needs no account.","tags":["public"],"security":[],"parameters":[{"name":"recordId","in":"path","required":true,"description":"The agreed record id.","schema":{"type":"string"}}],"responses":{"200":{"description":"An agreed record as a bundle anyone can check.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No agreed record with this id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/ripae/offers.json":{"get":{"operationId":"list_offers","summary":"The open credit offers.","description":"Each entry links to a signed, versioned offer file. An empty list means nothing is open.","tags":["public"],"security":[],"responses":{"200":{"description":"The open credit offers.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/ripae/offers/{offerId}/{version}":{"get":{"operationId":"get_offer","summary":"One signed credit offer.","description":"A published version never changes.","tags":["public"],"security":[],"parameters":[{"name":"offerId","in":"path","required":true,"description":"The offer id.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"The offer version.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"One signed credit offer.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No offer with this id and version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"This address sent more than its quota in the current window. Wait for Retry-After, then retry.","headers":{"RateLimit-Policy":{"schema":{"type":"string","examples":["default;q=120;w=60"]},"description":"Quota policy for this address (draft-ietf-httpapi-ratelimit-headers). q is the number of requests in the window. w is the window in seconds. The default quota is 120."},"RateLimit":{"schema":{"type":"string","examples":["default;a=119;w=60"]},"description":"Remaining requests (a) and the seconds left in the current window (w)."},"Retry-After":{"schema":{"type":"string"},"description":"Seconds left in the 60-second window. Wait this long."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}