{
  "openapi": "3.1.0",
  "info": {
    "title": "Sakartvelo Land Registry — Platform API",
    "version": "v1",
    "description": "For licensed platforms' servers. A platform signs every call with its own request key (ADR 0148): each call carries a DPoP proof made with that key and a token bound to it — the platform's own token, or the token a person granted it — and the OAuth endpoints take a client assertion signed with it. There is no API key or client secret.\n\nEvery answer carries `requestId` (and the `X-Request-Id` header); quote it when asking about a request. Generated from the routes by `npm run openapi:pin`: never edit by hand."
  },
  "servers": [
    {
      "url": "https://api-dev.sakartvelo.cc",
      "description": "dev"
    }
  ],
  "tags": [
    {
      "name": "Connected person"
    },
    {
      "name": "Events"
    },
    {
      "name": "Identity proofs"
    },
    {
      "name": "Investors"
    },
    {
      "name": "Listings"
    },
    {
      "name": "OAuth"
    },
    {
      "name": "Request keys"
    },
    {
      "name": "Tokenisation"
    },
    {
      "name": "Trades"
    }
  ],
  "paths": {
    "/v1/lp/events": {
      "get": {
        "operationId": "getLpEvents",
        "summary": "Read the platform's notices after a cursor",
        "description": "ADR 0149 (LPC-47): every notice for the platform waits here, oldest first, for 30 days. Ask with the `next` of the last answer; the first time, without `after`. A notice is served once it is 5 seconds old, so none is ever skipped. Keep the `eventId` of each notice you handled and skip one you see again. A suspended platform, and one offboarded less than 30 days ago, may still read (LPC-30). Each notice has the §6 envelope: `{ eventId, event, occurredAt, platformId, data }`. Events: `consent.revoked`, `listing.activated`, `listing.revoked`, `listing.expired`, `listing.exhausted`, `listing.suspended`, `fill.status_changed`, `platform.status_changed`, `platform.key_added`, `platform.key_retired`, `platform.key_expiring`, `tokenisation.completed` (ADR 0116, TKZ-22: the shares of an application this platform handed over have been created), `tokenisation.failed` (ADR 0167, TKZ-22: an application this platform handed over ended without shares; `data` = `{applicationId, applicationReference, platformReference, cadastralNumber, status (FAILED or EXPIRED), endReason {code, message}, endedAt}`).",
        "tags": [
          "Events"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "The `next` of the last answer; none the first time.",
            "schema": {
              "type": "string",
              "maxLength": 20
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many notices (1–100; 100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The notices after the cursor, and the cursor to ask from next (the same one when there were none).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "events": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "eventId": {
                                "type": "string"
                              },
                              "event": {
                                "type": "string"
                              },
                              "occurredAt": {
                                "type": "string"
                              },
                              "platformId": {
                                "type": "string"
                              },
                              "data": {}
                            },
                            "required": [
                              "eventId",
                              "event",
                              "occurredAt",
                              "platformId",
                              "data"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "next": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "events",
                        "next"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE, and not stopped within its reading window (suspended, offboarding, or offboarded under 30 days); a SANDBOX platform is admitted on dev only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE, and not stopped within its reading window (suspended, offboarding, or offboarded under 30 days); a SANDBOX platform is admitted on dev only."
              }
            ]
          },
          "410": {
            "description": "`CURSOR_EXPIRED`: The cursor's notice is older than 30 days or gone: resync, then read without `after`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "CURSOR_EXPIRED",
                "when": "The cursor's notice is older than 30 days or gone: resync, then read without `after`."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-30"
      }
    },
    "/v1/lp/fills": {
      "post": {
        "operationId": "postLpFills",
        "summary": "Submit a sale (a fill) for registration and settlement",
        "description": "The platform submits the buyer's signed intent with its own signed FillOrder. The registry checks it, has NAPR register it, co-signs and settles. The answer comes when the sale ends, within 20 seconds; otherwise 202 with the fill as it stands, and the platform learns the end from the `fill.status_changed` notice on its feed or `GET /v1/lp/fills/{id}`.\n\nA refused sale is a 200 with `status: REJECTED` (or `FAILED`) and `rejection.code`, not an HTTP error: the same codes as the pre-check, plus intent and settlement codes.",
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8 to 128 letters, digits or . _ : - (SRF-41). A retry with the same key gets the first answer again, with `Idempotent-Replayed: true`; the same key with a different body is refused. Licensed platforms: until 2027-04-11 a request without one is accepted and logged.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "listingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "intentId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "buyerAddress": {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]{40}$"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "pricePerFraction": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "GEL"
                  },
                  "fillNonce": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "deadline": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "lpSignature": {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]{130}$"
                  }
                },
                "required": [
                  "listingId",
                  "intentId",
                  "buyerAddress",
                  "amount",
                  "pricePerFraction",
                  "currency",
                  "fillNonce",
                  "deadline",
                  "lpSignature"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sale ended: SETTLED, REJECTED or FAILED (or COSIGNED with the bundle).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "fillId": {
                          "type": "string"
                        },
                        "fillHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "32 bytes, 0x-prefixed hex."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "SUBMITTED",
                            "CHECKS_PASSED",
                            "REGISTERING",
                            "COSIGNED",
                            "SETTLED",
                            "REJECTED",
                            "FAILED"
                          ]
                        },
                        "rejection": {
                          "description": "Why the fill was REJECTED or FAILED; absent otherwise.",
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ],
                          "additionalProperties": false
                        },
                        "settlement": {
                          "description": "Once settled, or once co-signed when the platform pays its own settlement.",
                          "type": "object",
                          "properties": {
                            "txHash": {
                              "type": "string",
                              "description": "Empty while the platform's own settlement is pending."
                            },
                            "naprReference": {
                              "type": "string"
                            },
                            "settledAt": {
                              "type": "string",
                              "description": "ISO 8601 once settled; empty while the platform's own settlement is pending."
                            },
                            "payer": {
                              "description": "Who submits settleFill: the registry, or the platform.",
                              "type": "string",
                              "enum": [
                                "SAK",
                                "LP"
                              ]
                            },
                            "bundle": {
                              "type": "object",
                              "properties": {
                                "controllerAddress": {
                                  "type": "string"
                                },
                                "calldata": {
                                  "type": "string"
                                },
                                "listing": {
                                  "type": "object",
                                  "properties": {
                                    "fractionToken": {
                                      "type": "string"
                                    },
                                    "seller": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "type": "string"
                                    },
                                    "minPricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "expiry": {
                                      "type": "string"
                                    },
                                    "nonce": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "fractionToken",
                                    "seller",
                                    "maxAmount",
                                    "minPricePerFraction",
                                    "currency",
                                    "lpId",
                                    "expiry",
                                    "nonce"
                                  ],
                                  "additionalProperties": false
                                },
                                "intent": {
                                  "type": "object",
                                  "properties": {
                                    "listingHash": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "type": "string"
                                    },
                                    "maxPricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "expiry": {
                                      "type": "string"
                                    },
                                    "nonce": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "listingHash",
                                    "buyer",
                                    "maxAmount",
                                    "maxPricePerFraction",
                                    "currency",
                                    "lpId",
                                    "expiry",
                                    "nonce"
                                  ],
                                  "additionalProperties": false
                                },
                                "fill": {
                                  "type": "object",
                                  "properties": {
                                    "listingHash": {
                                      "type": "string"
                                    },
                                    "intentHash": {
                                      "type": "string"
                                    },
                                    "fractionToken": {
                                      "type": "string"
                                    },
                                    "seller": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "amount": {
                                      "type": "string"
                                    },
                                    "pricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "fillNonce": {
                                      "type": "string"
                                    },
                                    "deadline": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "listingHash",
                                    "intentHash",
                                    "fractionToken",
                                    "seller",
                                    "buyer",
                                    "amount",
                                    "pricePerFraction",
                                    "currency",
                                    "lpId",
                                    "fillNonce",
                                    "deadline"
                                  ],
                                  "additionalProperties": false
                                },
                                "napr": {
                                  "type": "object",
                                  "properties": {
                                    "fillHash": {
                                      "type": "string"
                                    },
                                    "lrRequestId": {
                                      "type": "string"
                                    },
                                    "validUntil": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "fillHash",
                                    "lrRequestId",
                                    "validUntil"
                                  ],
                                  "additionalProperties": false
                                },
                                "signatures": {
                                  "type": "object",
                                  "properties": {
                                    "seller": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "platform": {
                                      "type": "string"
                                    },
                                    "napr": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "seller",
                                    "buyer",
                                    "platform",
                                    "napr"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "controllerAddress",
                                "calldata",
                                "listing",
                                "intent",
                                "fill",
                                "napr",
                                "signatures"
                              ],
                              "additionalProperties": false,
                              "description": "When the platform pays its own settlement: everything it submits to the controller's settleFill."
                            }
                          },
                          "required": [
                            "txHash",
                            "naprReference",
                            "settledAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "fillId",
                        "fillHash",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Still running after 20 seconds: the fill as it stands.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "fillId": {
                          "type": "string"
                        },
                        "fillHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "32 bytes, 0x-prefixed hex."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "SUBMITTED",
                            "CHECKS_PASSED",
                            "REGISTERING",
                            "COSIGNED",
                            "SETTLED",
                            "REJECTED",
                            "FAILED"
                          ]
                        },
                        "rejection": {
                          "description": "Why the fill was REJECTED or FAILED; absent otherwise.",
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ],
                          "additionalProperties": false
                        },
                        "settlement": {
                          "description": "Once settled, or once co-signed when the platform pays its own settlement.",
                          "type": "object",
                          "properties": {
                            "txHash": {
                              "type": "string",
                              "description": "Empty while the platform's own settlement is pending."
                            },
                            "naprReference": {
                              "type": "string"
                            },
                            "settledAt": {
                              "type": "string",
                              "description": "ISO 8601 once settled; empty while the platform's own settlement is pending."
                            },
                            "payer": {
                              "description": "Who submits settleFill: the registry, or the platform.",
                              "type": "string",
                              "enum": [
                                "SAK",
                                "LP"
                              ]
                            },
                            "bundle": {
                              "type": "object",
                              "properties": {
                                "controllerAddress": {
                                  "type": "string"
                                },
                                "calldata": {
                                  "type": "string"
                                },
                                "listing": {
                                  "type": "object",
                                  "properties": {
                                    "fractionToken": {
                                      "type": "string"
                                    },
                                    "seller": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "type": "string"
                                    },
                                    "minPricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "expiry": {
                                      "type": "string"
                                    },
                                    "nonce": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "fractionToken",
                                    "seller",
                                    "maxAmount",
                                    "minPricePerFraction",
                                    "currency",
                                    "lpId",
                                    "expiry",
                                    "nonce"
                                  ],
                                  "additionalProperties": false
                                },
                                "intent": {
                                  "type": "object",
                                  "properties": {
                                    "listingHash": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "type": "string"
                                    },
                                    "maxPricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "expiry": {
                                      "type": "string"
                                    },
                                    "nonce": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "listingHash",
                                    "buyer",
                                    "maxAmount",
                                    "maxPricePerFraction",
                                    "currency",
                                    "lpId",
                                    "expiry",
                                    "nonce"
                                  ],
                                  "additionalProperties": false
                                },
                                "fill": {
                                  "type": "object",
                                  "properties": {
                                    "listingHash": {
                                      "type": "string"
                                    },
                                    "intentHash": {
                                      "type": "string"
                                    },
                                    "fractionToken": {
                                      "type": "string"
                                    },
                                    "seller": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "amount": {
                                      "type": "string"
                                    },
                                    "pricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "fillNonce": {
                                      "type": "string"
                                    },
                                    "deadline": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "listingHash",
                                    "intentHash",
                                    "fractionToken",
                                    "seller",
                                    "buyer",
                                    "amount",
                                    "pricePerFraction",
                                    "currency",
                                    "lpId",
                                    "fillNonce",
                                    "deadline"
                                  ],
                                  "additionalProperties": false
                                },
                                "napr": {
                                  "type": "object",
                                  "properties": {
                                    "fillHash": {
                                      "type": "string"
                                    },
                                    "lrRequestId": {
                                      "type": "string"
                                    },
                                    "validUntil": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "fillHash",
                                    "lrRequestId",
                                    "validUntil"
                                  ],
                                  "additionalProperties": false
                                },
                                "signatures": {
                                  "type": "object",
                                  "properties": {
                                    "seller": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "platform": {
                                      "type": "string"
                                    },
                                    "napr": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "seller",
                                    "buyer",
                                    "platform",
                                    "napr"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "controllerAddress",
                                "calldata",
                                "listing",
                                "intent",
                                "fill",
                                "napr",
                                "signatures"
                              ],
                              "additionalProperties": false,
                              "description": "When the platform pays its own settlement: everything it submits to the controller's settleFill."
                            }
                          },
                          "required": [
                            "txHash",
                            "naprReference",
                            "settledAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "fillId",
                        "fillHash",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field. Or: The Idempotency-Key is not 8 to 128 letters, digits or . _ : -\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`IDEMPOTENCY_KEY_REQUIRED`: No Idempotency-Key header. Licensed platforms: until 2027-04-11 the request is accepted and logged; from then on it is refused.\n\n`INVALID_DEADLINE`: `deadline` is in the past.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field. Or: The Idempotency-Key is not 8 to 128 letters, digits or . _ : -"
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "IDEMPOTENCY_KEY_REQUIRED",
                "when": "No Idempotency-Key header. Licensed platforms: until 2027-04-11 the request is accepted and logged; from then on it is refused."
              },
              {
                "code": "INVALID_DEADLINE",
                "when": "`deadline` is in the past."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: The platform has no registered signing address.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`INVALID_SIGNATURE`: `lpSignature` was not made by the platform's signing address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: The platform has no registered signing address."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "INVALID_SIGNATURE",
                "when": "`lpSignature` was not made by the platform's signing address."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              }
            ]
          },
          "404": {
            "description": "`LISTING_NOT_FOUND`: No listing has this id.\n\n`INTENT_MISSING`: No intent has this id on this platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_NOT_FOUND",
                "when": "No listing has this id."
              },
              {
                "code": "INTENT_MISSING",
                "when": "No intent has this id on this platform."
              }
            ]
          },
          "409": {
            "description": "`IDEMPOTENCY_IN_PROGRESS`: A request with this Idempotency-Key is still running; retry shortly.\n\n`INTENT_NOT_SIGNED`: The buyer has not signed the intent.\n\n`DUPLICATE_FILL_HASH`: This fill was already submitted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "IDEMPOTENCY_IN_PROGRESS",
                "when": "A request with this Idempotency-Key is still running; retry shortly."
              },
              {
                "code": "INTENT_NOT_SIGNED",
                "when": "The buyer has not signed the intent."
              },
              {
                "code": "DUPLICATE_FILL_HASH",
                "when": "This fill was already submitted."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`IDEMPOTENCY_MISMATCH`: This Idempotency-Key was used for a different request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "IDEMPOTENCY_MISMATCH",
                "when": "This Idempotency-Key was used for a different request."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`SYSTEM_PAUSED`: Fraction transfers and settlement are paused (`details`: area, switches).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "SYSTEM_PAUSED",
                "when": "Fraction transfers and settlement are paused (`details`: area, switches)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/fills/{id}": {
      "get": {
        "operationId": "getLpFillsById",
        "summary": "Read one of the platform's fills",
        "description": "A platform reads only its own fills; any other id answers 404, so ids cannot be probed.",
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fill as it stands.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "fillId": {
                          "type": "string"
                        },
                        "fillHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "32 bytes, 0x-prefixed hex."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "SUBMITTED",
                            "CHECKS_PASSED",
                            "REGISTERING",
                            "COSIGNED",
                            "SETTLED",
                            "REJECTED",
                            "FAILED"
                          ]
                        },
                        "rejection": {
                          "description": "Why the fill was REJECTED or FAILED; absent otherwise.",
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ],
                          "additionalProperties": false
                        },
                        "settlement": {
                          "description": "Once settled, or once co-signed when the platform pays its own settlement.",
                          "type": "object",
                          "properties": {
                            "txHash": {
                              "type": "string",
                              "description": "Empty while the platform's own settlement is pending."
                            },
                            "naprReference": {
                              "type": "string"
                            },
                            "settledAt": {
                              "type": "string",
                              "description": "ISO 8601 once settled; empty while the platform's own settlement is pending."
                            },
                            "payer": {
                              "description": "Who submits settleFill: the registry, or the platform.",
                              "type": "string",
                              "enum": [
                                "SAK",
                                "LP"
                              ]
                            },
                            "bundle": {
                              "type": "object",
                              "properties": {
                                "controllerAddress": {
                                  "type": "string"
                                },
                                "calldata": {
                                  "type": "string"
                                },
                                "listing": {
                                  "type": "object",
                                  "properties": {
                                    "fractionToken": {
                                      "type": "string"
                                    },
                                    "seller": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "type": "string"
                                    },
                                    "minPricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "expiry": {
                                      "type": "string"
                                    },
                                    "nonce": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "fractionToken",
                                    "seller",
                                    "maxAmount",
                                    "minPricePerFraction",
                                    "currency",
                                    "lpId",
                                    "expiry",
                                    "nonce"
                                  ],
                                  "additionalProperties": false
                                },
                                "intent": {
                                  "type": "object",
                                  "properties": {
                                    "listingHash": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "type": "string"
                                    },
                                    "maxPricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "expiry": {
                                      "type": "string"
                                    },
                                    "nonce": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "listingHash",
                                    "buyer",
                                    "maxAmount",
                                    "maxPricePerFraction",
                                    "currency",
                                    "lpId",
                                    "expiry",
                                    "nonce"
                                  ],
                                  "additionalProperties": false
                                },
                                "fill": {
                                  "type": "object",
                                  "properties": {
                                    "listingHash": {
                                      "type": "string"
                                    },
                                    "intentHash": {
                                      "type": "string"
                                    },
                                    "fractionToken": {
                                      "type": "string"
                                    },
                                    "seller": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "amount": {
                                      "type": "string"
                                    },
                                    "pricePerFraction": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "lpId": {
                                      "type": "string"
                                    },
                                    "fillNonce": {
                                      "type": "string"
                                    },
                                    "deadline": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "listingHash",
                                    "intentHash",
                                    "fractionToken",
                                    "seller",
                                    "buyer",
                                    "amount",
                                    "pricePerFraction",
                                    "currency",
                                    "lpId",
                                    "fillNonce",
                                    "deadline"
                                  ],
                                  "additionalProperties": false
                                },
                                "napr": {
                                  "type": "object",
                                  "properties": {
                                    "fillHash": {
                                      "type": "string"
                                    },
                                    "lrRequestId": {
                                      "type": "string"
                                    },
                                    "validUntil": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "fillHash",
                                    "lrRequestId",
                                    "validUntil"
                                  ],
                                  "additionalProperties": false
                                },
                                "signatures": {
                                  "type": "object",
                                  "properties": {
                                    "seller": {
                                      "type": "string"
                                    },
                                    "buyer": {
                                      "type": "string"
                                    },
                                    "platform": {
                                      "type": "string"
                                    },
                                    "napr": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "seller",
                                    "buyer",
                                    "platform",
                                    "napr"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "controllerAddress",
                                "calldata",
                                "listing",
                                "intent",
                                "fill",
                                "napr",
                                "signatures"
                              ],
                              "additionalProperties": false,
                              "description": "When the platform pays its own settlement: everything it submits to the controller's settleFill."
                            }
                          },
                          "required": [
                            "txHash",
                            "naprReference",
                            "settledAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "fillId",
                        "fillHash",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE, and not stopped within its reading window (suspended, offboarding, or offboarded under 30 days); a SANDBOX platform is admitted on dev only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE, and not stopped within its reading window (suspended, offboarding, or offboarded under 30 days); a SANDBOX platform is admitted on dev only."
              }
            ]
          },
          "404": {
            "description": "`FILL_NOT_FOUND`: No fill of this platform has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "FILL_NOT_FOUND",
                "when": "No fill of this platform has this id."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/identity/proof-requests": {
      "post": {
        "operationId": "postLpIdentityProofRequests",
        "summary": "Push a proof request for the person's digital identity",
        "description": "ADR 0154 (IDP-01 … IDP-13): the platform's own call. `request` is an iden3comm authorization request (`typ` application/iden3comm-plain-json), `from` your registered verifierDid, `body.callbackUrl` one of your registered proofCallbackUris. Every scope item must ask about the registry's credential only: `credentialAtomicQueryV3` (or `-16-16-64`), `allowedIssuers` exactly the registry's issuer, its context and `RegistryKycCredential`, one field per item (`birthday`, `nationalityCode`, `nationalIdHash`), and any iden3 operator or `{}` to ask for the value. A nullifier goes in the item's `params.nullifierSessionId`. Then send the person to `{site}/identity/present?request_uri=<requestUri>`. The proof comes from their browser to `callbackUrl`; look your request up by the response's `thid`, `fullVerify` it, and use it once.",
        "tags": [
          "Identity proofs"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {},
                    "description": "The iden3comm authorization request (lp-api §1.9)."
                  },
                  "redirectUri": {
                    "type": "string",
                    "maxLength": 2048,
                    "description": "Where the person returns: one of your OAuth client's redirectUris, exactly."
                  }
                },
                "required": [
                  "request",
                  "redirectUri"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Kept for 5 minutes, answerable once. `requestUri` is a bearer reference: hand it only to the person's browser.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "requestUri": {
                          "type": "string"
                        },
                        "thid": {
                          "type": "string"
                        },
                        "expiresIn": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "requestUri",
                        "thid",
                        "expiresIn"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`PROOF_REQUEST_INVALID`: The request fails a check; `details.check` names it: envelope, verifier, callback, return, reason, scope, circuit, credential, fields, revocation, expiry, nullifier.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "PROOF_REQUEST_INVALID",
                "when": "The request fails a check; `details.check` names it: envelope, verifier, callback, return, reason, scope, circuit, credential, fields, revocation, expiry, nullifier."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The platform is not set up for proofs (identity:proof and a verifierDid, by the LP program administrator).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The platform is not set up for proofs (identity:proof and a verifierDid, by the LP program administrator)."
              }
            ]
          },
          "409": {
            "description": "`PROOF_REQUEST_DUPLICATE`: A request with this thid was pushed already.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PROOF_REQUEST_DUPLICATE",
                "when": "A request with this thid was pushed already."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`PROOF_REQUESTS_UNAVAILABLE`: This deployment does not take proof requests.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "PROOF_REQUESTS_UNAVAILABLE",
                "when": "This deployment does not take proof requests."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-10"
      }
    },
    "/v1/lp/intents/confirm": {
      "post": {
        "operationId": "postLpIntentsConfirm",
        "summary": "Has the buyer signed the intent?",
        "description": "The platform asks whether the buyer has signed the prepared intent. Until they have, the answer is 409 INTENT_NOT_SIGNED: poll, or wait for the buyer to return. Carries no signature: only the buyer's own screen on the registry submits one.",
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "trades:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "preparedIntentId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "preparedIntentId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The buyer signed: the intent is LIVE.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "intentId": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "description": "`LIVE`."
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "listingId": {
                          "type": "string"
                        },
                        "maxAmount": {
                          "type": "string",
                          "pattern": "^[0-9]+$",
                          "description": "An unsigned integer as a decimal string (uint256 fits)."
                        },
                        "maxPricePerFraction": {
                          "type": "string",
                          "pattern": "^[0-9]+$",
                          "description": "An unsigned integer as a decimal string (uint256 fits)."
                        },
                        "intentHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "32 bytes, 0x-prefixed hex."
                        }
                      },
                      "required": [
                        "intentId",
                        "status",
                        "expiresAt",
                        "listingId",
                        "maxAmount"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform. Or: The citizen's token names no person or no platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform. Or: The citizen's token names no person or no platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`INVALID_CLIENT`: The intent belongs to another person, or was made through another platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The intent belongs to another person, or was made through another platform."
              }
            ]
          },
          "404": {
            "description": "`INTENT_MISSING`: No prepared intent has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTENT_MISSING",
                "when": "No prepared intent has this id."
              }
            ]
          },
          "409": {
            "description": "`INTENT_NOT_SIGNED`: The buyer has not signed yet: the usual answer while waiting.\n\n`INTENT_EXPIRED`: The intent expired before it was signed, or is already used.\n\n`INTENT_CANCELLED`: The intent was cancelled.\n\n`INTENT_MISSING`: The intent predates signed intents and cannot be used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTENT_NOT_SIGNED",
                "when": "The buyer has not signed yet: the usual answer while waiting."
              },
              {
                "code": "INTENT_EXPIRED",
                "when": "The intent expired before it was signed, or is already used."
              },
              {
                "code": "INTENT_CANCELLED",
                "when": "The intent was cancelled."
              },
              {
                "code": "INTENT_MISSING",
                "when": "The intent predates signed intents and cannot be used."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/intents/prepare": {
      "post": {
        "operationId": "postLpIntentsPrepare",
        "summary": "Prepare the purchase intent the buyer signs",
        "description": "The platform proposes the terms of a purchase that passed its pre-check. The answer is the EIP-712 PurchaseIntent the BUYER's own wallet signs on the registry's screen; nothing is authorised until then. It also carries the listing's on-chain terms, so the platform can sign its FillOrder without keeping a copy.\n\nUses the pre-check: one pre-check, one preparation.",
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "trades:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8 to 128 letters, digits or . _ : - (SRF-41). A retry with the same key gets the first answer again, with `Idempotent-Replayed: true`; the same key with a different body is refused. Licensed platforms: until 2027-04-11 a request without one is accepted and logged.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "precheckId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "listingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "maxAmount": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "maxPricePerFraction": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "ttlSeconds": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 900
                  },
                  "returnUri": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": [
                  "precheckId",
                  "listingId",
                  "maxAmount",
                  "maxPricePerFraction",
                  "ttlSeconds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The intent to sign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "preparedIntentId": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "description": "`PREPARED`."
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "intentHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "The PurchaseIntent struct hash; the FillOrder names it."
                        },
                        "typedData": {
                          "type": "object",
                          "properties": {
                            "domain": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "`FractionTradeController`."
                                },
                                "version": {
                                  "type": "string",
                                  "description": "`1`."
                                },
                                "chainId": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "verifyingContract": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{40}$",
                                  "description": "A 20-byte address, 0x-prefixed hex."
                                }
                              },
                              "required": [
                                "name",
                                "version",
                                "chainId",
                                "verifyingContract"
                              ],
                              "additionalProperties": false
                            },
                            "types": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "description": "One key, `PurchaseIntent`: listingHash, buyer, maxAmount, maxPricePerFraction, currency, lpId, expiry, nonce, in hashing order."
                            },
                            "primaryType": {
                              "type": "string",
                              "description": "`PurchaseIntent`."
                            },
                            "message": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The eight PurchaseIntent fields as strings: integers in decimal, expiry in unix seconds."
                            }
                          },
                          "required": [
                            "domain",
                            "types",
                            "primaryType",
                            "message"
                          ],
                          "additionalProperties": false
                        },
                        "terms": {
                          "type": "object",
                          "properties": {
                            "listingId": {
                              "type": "string"
                            },
                            "listingHash": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "32 bytes, 0x-prefixed hex."
                            },
                            "maxAmount": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "maxPricePerFraction": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "currency": {
                              "type": "string",
                              "description": "`GEL`."
                            },
                            "expiry": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991,
                              "description": "Unix seconds."
                            },
                            "nonce": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "buyer": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "The only wallet whose signature over these terms is accepted."
                            }
                          },
                          "required": [
                            "listingId",
                            "listingHash",
                            "maxAmount",
                            "maxPricePerFraction",
                            "currency",
                            "expiry",
                            "nonce",
                            "buyer"
                          ],
                          "additionalProperties": false
                        },
                        "listing": {
                          "description": "Present on this route.",
                          "type": "object",
                          "properties": {
                            "listingHash": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "32 bytes, 0x-prefixed hex."
                            },
                            "fractionToken": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "seller": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "maxAmount": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "minPricePerFraction": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "lpId": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "32 bytes, 0x-prefixed hex."
                            },
                            "expiry": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "Unix seconds."
                            },
                            "nonce": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "remaining": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "What the listing has left to sell."
                            }
                          },
                          "required": [
                            "listingHash",
                            "fractionToken",
                            "seller",
                            "maxAmount",
                            "minPricePerFraction",
                            "currency",
                            "lpId",
                            "expiry",
                            "nonce",
                            "remaining"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "preparedIntentId",
                        "status",
                        "expiresAt",
                        "intentHash",
                        "typedData",
                        "terms"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field. Or: The Idempotency-Key is not 8 to 128 letters, digits or . _ : -\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`IDEMPOTENCY_KEY_REQUIRED`: No Idempotency-Key header. Licensed platforms: until 2027-04-11 the request is accepted and logged; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field. Or: The Idempotency-Key is not 8 to 128 letters, digits or . _ : -"
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "IDEMPOTENCY_KEY_REQUIRED",
                "when": "No Idempotency-Key header. Licensed platforms: until 2027-04-11 the request is accepted and logged; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform. Or: The citizen's token names no person or no platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform. Or: The citizen's token names no person or no platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`INVALID_CLIENT`: The listing is on another platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The listing is on another platform."
              }
            ]
          },
          "404": {
            "description": "`LISTING_NOT_FOUND`: No listing has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_NOT_FOUND",
                "when": "No listing has this id."
              }
            ]
          },
          "409": {
            "description": "`IDEMPOTENCY_IN_PROGRESS`: A request with this Idempotency-Key is still running; retry shortly.\n\n`BUYER_NOT_READY`: The buyer has not claimed a wallet.\n\n`SELF_DEAL_FORBIDDEN`: The buyer is the seller.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "IDEMPOTENCY_IN_PROGRESS",
                "when": "A request with this Idempotency-Key is still running; retry shortly."
              },
              {
                "code": "BUYER_NOT_READY",
                "when": "The buyer has not claimed a wallet."
              },
              {
                "code": "SELF_DEAL_FORBIDDEN",
                "when": "The buyer is the seller."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`IDEMPOTENCY_MISMATCH`: This Idempotency-Key was used for a different request.\n\n`LISTING_NOT_FILLABLE`: The listing is not ACTIVE, or has expired.\n\n`PRICE_BELOW_MIN`: `maxPricePerFraction` is below the listing's minimum.\n\n`INVALID_AMOUNT`: `maxAmount` is 0.\n\n`PRECHECK_MISMATCH`: The pre-check is unknown, or was for another platform, buyer or terms.\n\n`PRECHECK_EXPIRED`: The pre-check's 5 minutes have passed.\n\n`PRECHECK_USED`: The pre-check was already used.\n\n`RETURN_URI_NOT_REGISTERED`: `returnUri` is not one of the platform's registered redirect URIs.\n\n`LISTING_EXHAUSTED`: `maxAmount` is more than the listing has left.\n\n`CAPACITY_HELD`: Other buyers' sales in progress hold what the listing has left (LPC-43): `details.available` is how many can be bought now. Nothing is prepared for the buyer to sign. The pre-check is not used, but the same Idempotency-Key replays this answer: pre-check again and send a new key.\n\n`SELLER_BALANCE_INSUFFICIENT`: The seller's free fractions on chain, less this listing's own sales in progress, do not cover the purchase (LPC-43): `details.available` is how many can be bought now. Nothing is prepared for the buyer to sign. The pre-check is not used, but the same Idempotency-Key replays this answer: pre-check again and send a new key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "IDEMPOTENCY_MISMATCH",
                "when": "This Idempotency-Key was used for a different request."
              },
              {
                "code": "LISTING_NOT_FILLABLE",
                "when": "The listing is not ACTIVE, or has expired."
              },
              {
                "code": "PRICE_BELOW_MIN",
                "when": "`maxPricePerFraction` is below the listing's minimum."
              },
              {
                "code": "INVALID_AMOUNT",
                "when": "`maxAmount` is 0."
              },
              {
                "code": "PRECHECK_MISMATCH",
                "when": "The pre-check is unknown, or was for another platform, buyer or terms."
              },
              {
                "code": "PRECHECK_EXPIRED",
                "when": "The pre-check's 5 minutes have passed."
              },
              {
                "code": "PRECHECK_USED",
                "when": "The pre-check was already used."
              },
              {
                "code": "RETURN_URI_NOT_REGISTERED",
                "when": "`returnUri` is not one of the platform's registered redirect URIs."
              },
              {
                "code": "LISTING_EXHAUSTED",
                "when": "`maxAmount` is more than the listing has left."
              },
              {
                "code": "CAPACITY_HELD",
                "when": "Other buyers' sales in progress hold what the listing has left (LPC-43): `details.available` is how many can be bought now. Nothing is prepared for the buyer to sign. The pre-check is not used, but the same Idempotency-Key replays this answer: pre-check again and send a new key."
              },
              {
                "code": "SELLER_BALANCE_INSUFFICIENT",
                "when": "The seller's free fractions on chain, less this listing's own sales in progress, do not cover the purchase (LPC-43): `details.available` is how many can be bought now. Nothing is prepared for the buyer to sign. The pre-check is not used, but the same Idempotency-Key replays this answer: pre-check again and send a new key."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`INTENT_MISSING`: The settlement contract is not configured on this deployment.\n\n`CHAIN_UNAVAILABLE`: The chain could not be read when the seller's free fractions were checked; retry with the same Idempotency-Key (a 503 is not stored). The pre-check is not used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "INTENT_MISSING",
                "when": "The settlement contract is not configured on this deployment."
              },
              {
                "code": "CHAIN_UNAVAILABLE",
                "when": "The chain could not be read when the seller's free fractions were checked; retry with the same Idempotency-Key (a 503 is not stored). The pre-check is not used."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/investors/lookup": {
      "post": {
        "operationId": "postLpInvestorsLookup",
        "summary": "Does this person already have a registry account?",
        "description": "Before connecting a person, the platform can ask whether their email belongs to a registry account that may connect (a property owner, or an investor a platform referred). The person is not asked: this is a stated trust assumption, kept for now and removed again before production (ADR 0157). The email travels in the body so it never reaches a URL or an access log. A match on more than one account answers `found: false`. Every check is recorded against the platform.\n\nLimits: 30 a minute, and 500 in any 24 hours per platform counted together with its pushed connect requests.",
        "tags": [
          "Investors"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Whether the person has an account that may connect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "found": {
                              "type": "boolean",
                              "const": false
                            }
                          },
                          "required": [
                            "found"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "found": {
                              "type": "boolean",
                              "const": true
                            },
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string",
                              "description": "May be empty."
                            },
                            "email": {
                              "type": "string",
                              "description": "The address as stored."
                            },
                            "userAccountStatus": {
                              "type": "string",
                              "description": "`ACTIVE` when the person is ready to trade, else `INACTIVE`."
                            }
                          },
                          "required": [
                            "found",
                            "firstName",
                            "lastName",
                            "email",
                            "userAccountStatus"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`LOOKUP_DAILY_LIMIT`: This platform made 500 lookups and pushed connect requests together in the last 24 hours.\n\n`RATE_LIMIT_EXCEEDED`: More than 30 lookups a minute from this platform. Or: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LOOKUP_DAILY_LIMIT",
                "when": "This platform made 500 lookups and pushed connect requests together in the last 24 hours."
              },
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "More than 30 lookups a minute from this platform. Or: Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-13"
      }
    },
    "/v1/lp/investors/onboard": {
      "post": {
        "operationId": "postLpInvestorsOnboard",
        "summary": "Refer a person to register with the registry",
        "description": "The platform names a person by email address and nothing else. No account is created (LPC-49, ADR 0092): a new address is emailed a single-use registration link (24 hours, for that address only); an address that already has an account is emailed a note to sign in. While this platform's referral of an address is live, referring it again sends nothing. The answer is the same in every case, so it never says whether the person is registered. The referring platform is the one whose key calls.\n\nLimit: 1,000 referrals per platform in any 24 hours (a registry setting).",
        "tags": [
          "Investors"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The referral is accepted; the person may be emailed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "referralId": {
                          "type": "string",
                          "description": "The referral's id, `ref_` and 32 hex characters."
                        }
                      },
                      "required": [
                        "referralId"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`REFERRAL_LIMIT_REACHED`: This platform made 1,000 referrals in the last 24 hours; nothing is written and nobody is emailed.\n\n`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REFERRAL_LIMIT_REACHED",
                "when": "This platform made 1,000 referrals in the last 24 hours; nothing is written and nobody is emailed."
              },
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-22"
      }
    },
    "/v1/lp/keys": {
      "get": {
        "operationId": "getLpKeys",
        "summary": "List the platform's request keys",
        "description": "Public facts only — kid, algorithm, thumbprint, state and dates; never key material.",
        "tags": [
          "Request keys"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "The platform's keys, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "keys": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kid": {
                                "type": "string"
                              },
                              "alg": {
                                "type": "string",
                                "enum": [
                                  "ES256",
                                  "EdDSA"
                                ]
                              },
                              "thumbprint": {
                                "type": "string",
                                "description": "RFC 7638 SHA-256 thumbprint, base64url: what a key-bound token names (`cnf.jkt`)."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED",
                                  "REVOKED",
                                  "EXPIRED"
                                ]
                              },
                              "createdAt": {
                                "type": "string"
                              },
                              "retiresAt": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "expiresAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "kid",
                              "alg",
                              "thumbprint",
                              "status",
                              "createdAt",
                              "retiresAt",
                              "expiresAt"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "keys"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-05"
      },
      "post": {
        "operationId": "postLpKeys",
        "summary": "Add the platform's next request key",
        "description": "LPO-17: the call is signed with a key in force; `possessionProof` is a JWT signed by the NEW key — header `{ typ: \"JWT\", alg }`, payload `{ aud: \"<registry>/v1/lp/keys\", iat (within 60 s), jti (used once) }` — so nobody can add a key they do not hold. At most two keys are in force; every older one retires 7 days later. The change is emailed to the platform's security contact and the LP program administrators and published in the feed.",
        "tags": [
          "Request keys"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kid": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "publicJwk": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {},
                    "description": "The PUBLIC key: P-256 (kty EC) or Ed25519 (kty OKP). Never a private key."
                  },
                  "possessionProof": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  }
                },
                "required": [
                  "kid",
                  "publicJwk",
                  "possessionProof"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The key, in force; the older keys and when they retire.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "kid": {
                          "type": "string"
                        },
                        "alg": {
                          "type": "string",
                          "enum": [
                            "ES256",
                            "EdDSA"
                          ]
                        },
                        "thumbprint": {
                          "type": "string",
                          "description": "RFC 7638 SHA-256 thumbprint, base64url: what a key-bound token names (`cnf.jkt`)."
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "retiresAt": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "expiresAt": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "const": "ACTIVE"
                        },
                        "retiring": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kid": {
                                "type": "string"
                              },
                              "retiresAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "kid",
                              "retiresAt"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "kid",
                        "alg",
                        "thumbprint",
                        "createdAt",
                        "retiresAt",
                        "expiresAt",
                        "status",
                        "retiring"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`PRIVATE_KEY_MATERIAL`: The JWK carries a private member.\n\n`INVALID_PUBLIC_KEY`: Not a P-256 or Ed25519 public key.\n\n`INVALID_POSSESSION_PROOF`: The possession proof is not the new key's, not for this address, stale, or used before.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "PRIVATE_KEY_MATERIAL",
                "when": "The JWK carries a private member."
              },
              {
                "code": "INVALID_PUBLIC_KEY",
                "when": "Not a P-256 or Ed25519 public key."
              },
              {
                "code": "INVALID_POSSESSION_PROOF",
                "when": "The possession proof is not the new key's, not for this address, stale, or used before."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`REQUEST_KEY_REQUIRED`: The call was not signed with one of the platform's request keys: a platform changes its keys only with a call signed by one of them.\n\n`KEYS_NEED_ADMIN`: After a revoke-all the next key is registered by the LP program administrator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "REQUEST_KEY_REQUIRED",
                "when": "The call was not signed with one of the platform's request keys: a platform changes its keys only with a call signed by one of them."
              },
              {
                "code": "KEYS_NEED_ADMIN",
                "when": "After a revoke-all the next key is registered by the LP program administrator."
              }
            ]
          },
          "409": {
            "description": "`TOO_MANY_KEYS`: Two keys are in force: retire one first.\n\n`KEY_IN_USE`: This key is registered already.\n\n`KID_IN_USE`: The platform already has a key with this kid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "TOO_MANY_KEYS",
                "when": "Two keys are in force: retire one first."
              },
              {
                "code": "KEY_IN_USE",
                "when": "This key is registered already."
              },
              {
                "code": "KID_IN_USE",
                "when": "The platform already has a key with this kid."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-05"
      }
    },
    "/v1/lp/keys/{kid}": {
      "delete": {
        "operationId": "deleteLpKeysByKid",
        "summary": "Retire one of the platform's request keys now",
        "description": "The key stops at once. The platform's last key in force cannot be retired: revoke all instead.",
        "tags": [
          "Request keys"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "parameters": [
          {
            "name": "kid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The key, retired.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "kid": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "retiredAt": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "kid",
                        "status",
                        "retiredAt"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`LAST_KEY`: It is the platform's only key in force.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "LAST_KEY",
                "when": "It is the platform's only key in force."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`REQUEST_KEY_REQUIRED`: The call was not signed with one of the platform's request keys: a platform changes its keys only with a call signed by one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "REQUEST_KEY_REQUIRED",
                "when": "The call was not signed with one of the platform's request keys: a platform changes its keys only with a call signed by one of them."
              }
            ]
          },
          "404": {
            "description": "`KEY_NOT_FOUND`: The platform has no key in force with this kid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "KEY_NOT_FOUND",
                "when": "The platform has no key in force with this kid."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-05"
      }
    },
    "/v1/lp/keys/revoke-all": {
      "post": {
        "operationId": "postLpKeysRevokeAll",
        "summary": "Revoke every request key of the platform at once",
        "description": "LPO-18: from the next request nothing the platform holds works. Its next key is registered only by the LP program administrator, after a fingerprint check. A suspended platform may call this too, and an offboarded one for 30 days.",
        "tags": [
          "Request keys"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 500
                  }
                },
                "required": [
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many keys were revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "revokedCount": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "revokedCount"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE, and not stopped within its reading window (suspended, offboarding, or offboarded under 30 days); a SANDBOX platform is admitted on dev only.\n\n`REQUEST_KEY_REQUIRED`: The call was not signed with one of the platform's request keys: a platform changes its keys only with a call signed by one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE, and not stopped within its reading window (suspended, offboarding, or offboarded under 30 days); a SANDBOX platform is admitted on dev only."
              },
              {
                "code": "REQUEST_KEY_REQUIRED",
                "when": "The call was not signed with one of the platform's request keys: a platform changes its keys only with a call signed by one of them."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-06"
      }
    },
    "/v1/lp/listings/{id}/revoke": {
      "post": {
        "operationId": "postLpListingsByIdRevoke",
        "summary": "Cancel a listing, as the platform",
        "description": "The platform cancels a listing that names it, on its own initiative; the record says the platform cancelled. To relay the seller's own request, use `seller-revoke` instead. Sales stop at once.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "requestKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The listing, now REVOKED.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "listingId": {
                          "type": "string"
                        },
                        "listingHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "32 bytes, 0x-prefixed hex."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "REVOKED",
                            "EXPIRED",
                            "EXHAUSTED",
                            "SUSPENDED",
                            "INVALIDATED"
                          ]
                        },
                        "bounds": {
                          "type": "object",
                          "properties": {
                            "fractionToken": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "tokenId": {
                              "type": "string"
                            },
                            "maxAmount": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "minPricePerFraction": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "currency": {
                              "type": "string",
                              "description": "`GEL`."
                            },
                            "expiry": {
                              "type": "string",
                              "format": "date-time",
                              "description": "ISO 8601, UTC."
                            },
                            "nonce": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            }
                          },
                          "required": [
                            "fractionToken",
                            "tokenId",
                            "maxAmount",
                            "minPricePerFraction",
                            "currency",
                            "expiry",
                            "nonce"
                          ],
                          "additionalProperties": false,
                          "description": "The terms the seller authorised, as people read them."
                        },
                        "onChain": {
                          "type": "object",
                          "properties": {
                            "listingHash": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "The contract's struct hash of these eight fields."
                            },
                            "fractionToken": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "seller": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "maxAmount": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "minPricePerFraction": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "The payment token's address (the zero address today), not `GEL`."
                            },
                            "lpId": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "keccak256 of the platform's registry id: the platform as the contract knows it."
                            },
                            "expiry": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "Unix seconds."
                            },
                            "nonce": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            }
                          },
                          "required": [
                            "listingHash",
                            "fractionToken",
                            "seller",
                            "maxAmount",
                            "minPricePerFraction",
                            "currency",
                            "lpId",
                            "expiry",
                            "nonce"
                          ],
                          "additionalProperties": false,
                          "description": "The same terms as the contract hashes them: copy these into a FillOrder as they are."
                        },
                        "consumed": {
                          "type": "string",
                          "pattern": "^[0-9]+$",
                          "description": "Fractions already sold under this listing."
                        },
                        "platform": {
                          "type": "object",
                          "properties": {
                            "lpId": {
                              "type": "string",
                              "description": "The registry's id of the platform (not the bytes32 in `onChain.lpId`)."
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "lpId",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "cadastralCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "suspendedReason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "COURT_FREEZE",
                                "PLATFORM_SUSPENDED",
                                "OTHER"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Why the listing is SUSPENDED, as of now; null for every other status."
                        },
                        "revokedBy": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "SELLER",
                                "PLATFORM",
                                "RECOVERY",
                                "CANCELLATION"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Who cancelled it; null while it is not revoked."
                        },
                        "onchain": {
                          "type": "object",
                          "properties": {
                            "listingHash": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "revoked": {
                              "type": "boolean",
                              "description": "True once a verified revokeListing receipt is recorded."
                            },
                            "revokeTxHash": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "revokedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "description": "ISO 8601, UTC."
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "listingHash",
                            "revoked",
                            "revokeTxHash",
                            "revokedAt"
                          ],
                          "additionalProperties": false,
                          "description": "The contract-side view of the listing."
                        }
                      },
                      "required": [
                        "listingId",
                        "listingHash",
                        "status",
                        "bounds",
                        "onChain",
                        "consumed",
                        "platform",
                        "cadastralCode",
                        "suspendedReason",
                        "revokedBy",
                        "onchain"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_CLIENT`: The listing does not name the calling platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The listing does not name the calling platform."
              }
            ]
          },
          "404": {
            "description": "`LISTING_NOT_FOUND`: No listing has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_NOT_FOUND",
                "when": "No listing has this id."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`LISTING_REVOKED`: The listing is already revoked.\n\n`LISTING_EXPIRED`: The listing has expired.\n\n`LISTING_EXHAUSTED`: Everything the listing offered is sold.\n\n`LISTING_INVALIDATED`: The listing was invalidated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_REVOKED",
                "when": "The listing is already revoked."
              },
              {
                "code": "LISTING_EXPIRED",
                "when": "The listing has expired."
              },
              {
                "code": "LISTING_EXHAUSTED",
                "when": "Everything the listing offered is sold."
              },
              {
                "code": "LISTING_INVALIDATED",
                "when": "The listing was invalidated."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/listings/{id}/seller-revoke": {
      "post": {
        "operationId": "postLpListingsByIdSellerRevoke",
        "summary": "Cancel a listing for the seller who asked",
        "description": "The seller pressed cancel in the platform's app; the platform relays it with the seller's grant, and the record says the seller cancelled. The answer also carries the revokeListing transaction for the seller's wallet, which cancels the listing on chain too (`revokeTx`; null with `revokeTxUnavailable` when it cannot be prepared).",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "listings:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The listing, now REVOKED, and the wallet step.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "listingId": {
                          "type": "string"
                        },
                        "listingHash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$",
                          "description": "32 bytes, 0x-prefixed hex."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "REVOKED",
                            "EXPIRED",
                            "EXHAUSTED",
                            "SUSPENDED",
                            "INVALIDATED"
                          ]
                        },
                        "bounds": {
                          "type": "object",
                          "properties": {
                            "fractionToken": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "tokenId": {
                              "type": "string"
                            },
                            "maxAmount": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "minPricePerFraction": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "currency": {
                              "type": "string",
                              "description": "`GEL`."
                            },
                            "expiry": {
                              "type": "string",
                              "format": "date-time",
                              "description": "ISO 8601, UTC."
                            },
                            "nonce": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            }
                          },
                          "required": [
                            "fractionToken",
                            "tokenId",
                            "maxAmount",
                            "minPricePerFraction",
                            "currency",
                            "expiry",
                            "nonce"
                          ],
                          "additionalProperties": false,
                          "description": "The terms the seller authorised, as people read them."
                        },
                        "onChain": {
                          "type": "object",
                          "properties": {
                            "listingHash": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "The contract's struct hash of these eight fields."
                            },
                            "fractionToken": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "seller": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "maxAmount": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "minPricePerFraction": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "The payment token's address (the zero address today), not `GEL`."
                            },
                            "lpId": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{64}$",
                              "description": "keccak256 of the platform's registry id: the platform as the contract knows it."
                            },
                            "expiry": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "Unix seconds."
                            },
                            "nonce": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            }
                          },
                          "required": [
                            "listingHash",
                            "fractionToken",
                            "seller",
                            "maxAmount",
                            "minPricePerFraction",
                            "currency",
                            "lpId",
                            "expiry",
                            "nonce"
                          ],
                          "additionalProperties": false,
                          "description": "The same terms as the contract hashes them: copy these into a FillOrder as they are."
                        },
                        "consumed": {
                          "type": "string",
                          "pattern": "^[0-9]+$",
                          "description": "Fractions already sold under this listing."
                        },
                        "platform": {
                          "type": "object",
                          "properties": {
                            "lpId": {
                              "type": "string",
                              "description": "The registry's id of the platform (not the bytes32 in `onChain.lpId`)."
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "lpId",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "cadastralCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "suspendedReason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "COURT_FREEZE",
                                "PLATFORM_SUSPENDED",
                                "OTHER"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Why the listing is SUSPENDED, as of now; null for every other status."
                        },
                        "revokedBy": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "SELLER",
                                "PLATFORM",
                                "RECOVERY",
                                "CANCELLATION"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Who cancelled it; null while it is not revoked."
                        },
                        "onchain": {
                          "type": "object",
                          "properties": {
                            "listingHash": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "revoked": {
                              "type": "boolean",
                              "description": "True once a verified revokeListing receipt is recorded."
                            },
                            "revokeTxHash": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "revokedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "description": "ISO 8601, UTC."
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "listingHash",
                            "revoked",
                            "revokeTxHash",
                            "revokedAt"
                          ],
                          "additionalProperties": false,
                          "description": "The contract-side view of the listing."
                        },
                        "onchainListingHash": {
                          "description": "Present on this route.",
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$"
                        },
                        "revokeTx": {
                          "description": "Present on this route: the transaction the seller's wallet sends, or null.",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "to": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{40}$",
                                  "description": "A 20-byte address, 0x-prefixed hex."
                                },
                                "data": {
                                  "type": "string",
                                  "pattern": "^0x([0-9a-fA-F]{2})*$",
                                  "description": "Bytes, 0x-prefixed hex."
                                },
                                "value": {
                                  "type": "string",
                                  "const": "0"
                                }
                              },
                              "required": [
                                "to",
                                "data",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "revokeTxUnavailable": {
                          "description": "Why `revokeTx` is null; absent otherwise.",
                          "type": "string",
                          "enum": [
                            "CONTROLLER_NOT_CONFIGURED",
                            "LISTING_FORMAT_CHANGED"
                          ]
                        }
                      },
                      "required": [
                        "listingId",
                        "listingHash",
                        "status",
                        "bounds",
                        "onChain",
                        "consumed",
                        "platform",
                        "cadastralCode",
                        "suspendedReason",
                        "revokedBy",
                        "onchain"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`INVALID_CLIENT`: The person is not the listing's seller, or the listing does not name the calling platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The person is not the listing's seller, or the listing does not name the calling platform."
              }
            ]
          },
          "404": {
            "description": "`LISTING_NOT_FOUND`: No listing has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_NOT_FOUND",
                "when": "No listing has this id."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`LISTING_REVOKED`: The listing is already revoked.\n\n`LISTING_EXPIRED`: The listing has expired.\n\n`LISTING_EXHAUSTED`: Everything the listing offered is sold.\n\n`LISTING_INVALIDATED`: The listing was invalidated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_REVOKED",
                "when": "The listing is already revoked."
              },
              {
                "code": "LISTING_EXPIRED",
                "when": "The listing has expired."
              },
              {
                "code": "LISTING_EXHAUSTED",
                "when": "Everything the listing offered is sold."
              },
              {
                "code": "LISTING_INVALIDATED",
                "when": "The listing was invalidated."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/listings/prepare": {
      "post": {
        "operationId": "postLpListingsPrepare",
        "summary": "Prepare a listing for a connected seller to sign",
        "description": "The platform proposes terms for one of its connected sellers. The answer is the EIP-712 ListingAuthorization the seller signs on the registry's screen, the approval transaction the seller's wallet sends first, and the sum rule: what the seller holds, has already promised, and can still list. Nothing is listed until the seller signs.\n\nOnly a property NAPR's token registry can record as listed: one it has recorded, or the first listing of one it registered (its going live is reported to NAPR, and its shares trade only once NAPR has recorded it). After the registry's own checks, NAPR is asked whether the listing may go ahead (A1.2); only its yes prepares the terms.",
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "listings:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fractionToken": {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]{40}$"
                  },
                  "tokenId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 78
                  },
                  "maxAmount": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "minPricePerFraction": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "GEL"
                  },
                  "expiry": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "returnUri": {
                    "type": "string",
                    "format": "uri"
                  },
                  "state": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": [
                  "fractionToken",
                  "tokenId",
                  "maxAmount",
                  "minPricePerFraction",
                  "currency",
                  "expiry"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The terms to sign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "preparedListingId": {
                          "type": "string"
                        },
                        "typedData": {
                          "type": "object",
                          "properties": {
                            "domain": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "`FractionTradeController`."
                                },
                                "version": {
                                  "type": "string",
                                  "description": "`1`."
                                },
                                "chainId": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "verifyingContract": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{40}$",
                                  "description": "A 20-byte address, 0x-prefixed hex."
                                }
                              },
                              "required": [
                                "name",
                                "version",
                                "chainId",
                                "verifyingContract"
                              ],
                              "additionalProperties": false
                            },
                            "types": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "description": "One key, `ListingAuthorization`: its eight fields in hashing order (fractionToken, seller, maxAmount, minPricePerFraction, currency, lpId, expiry, nonce). No `EIP712Domain` entry."
                            },
                            "primaryType": {
                              "type": "string",
                              "description": "`ListingAuthorization`."
                            },
                            "message": {
                              "type": "object",
                              "properties": {
                                "fractionToken": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{40}$",
                                  "description": "A 20-byte address, 0x-prefixed hex."
                                },
                                "seller": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{40}$",
                                  "description": "A 20-byte address, 0x-prefixed hex."
                                },
                                "maxAmount": {
                                  "type": "string",
                                  "pattern": "^[0-9]+$",
                                  "description": "An unsigned integer as a decimal string (uint256 fits)."
                                },
                                "minPricePerFraction": {
                                  "type": "string",
                                  "pattern": "^[0-9]+$",
                                  "description": "An unsigned integer as a decimal string (uint256 fits)."
                                },
                                "currency": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{40}$",
                                  "description": "A 20-byte address, 0x-prefixed hex."
                                },
                                "lpId": {
                                  "type": "string",
                                  "pattern": "^0x[0-9a-fA-F]{64}$",
                                  "description": "32 bytes, 0x-prefixed hex."
                                },
                                "expiry": {
                                  "type": "string",
                                  "pattern": "^[0-9]+$",
                                  "description": "Unix seconds."
                                },
                                "nonce": {
                                  "type": "string",
                                  "pattern": "^[0-9]+$",
                                  "description": "An unsigned integer as a decimal string (uint256 fits)."
                                }
                              },
                              "required": [
                                "fractionToken",
                                "seller",
                                "maxAmount",
                                "minPricePerFraction",
                                "currency",
                                "lpId",
                                "expiry",
                                "nonce"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "domain",
                            "types",
                            "primaryType",
                            "message"
                          ],
                          "additionalProperties": false
                        },
                        "approveTx": {
                          "type": "object",
                          "properties": {
                            "to": {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            "data": {
                              "type": "string",
                              "pattern": "^0x([0-9a-fA-F]{2})*$",
                              "description": "Bytes, 0x-prefixed hex."
                            },
                            "value": {
                              "type": "string",
                              "const": "0"
                            }
                          },
                          "required": [
                            "to",
                            "data",
                            "value"
                          ],
                          "additionalProperties": false,
                          "description": "The ERC-20 approve the seller's wallet sends, so the controller can move what is promised."
                        },
                        "sumRule": {
                          "type": "object",
                          "properties": {
                            "held": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "alreadyPromised": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            },
                            "available": {
                              "type": "string",
                              "pattern": "^[0-9]+$",
                              "description": "An unsigned integer as a decimal string (uint256 fits)."
                            }
                          },
                          "required": [
                            "held",
                            "alreadyPromised",
                            "available"
                          ],
                          "additionalProperties": false,
                          "description": "Before this listing: what the seller holds, has promised in live listings, and may still list."
                        }
                      },
                      "required": [
                        "preparedListingId",
                        "typedData",
                        "approveTx",
                        "sumRule"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`INVALID_EXPIRY`: `expiry` is not in the future, or is more than 180 days ahead (LPC-03).\n\n`INVALID_MAX_AMOUNT`: `maxAmount` is 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "INVALID_EXPIRY",
                "when": "`expiry` is not in the future, or is more than 180 days ahead (LPC-03)."
              },
              {
                "code": "INVALID_MAX_AMOUNT",
                "when": "`maxAmount` is 0."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`BUYER_NOT_READY`: The seller is not ready, by the buyer's rule (LPC-55): identity verification not in force, or the wallet not claimed, active and confirmed on chain, or a recovery open (`details`: party `seller`, kycVerified, walletStatus).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "BUYER_NOT_READY",
                "when": "The seller is not ready, by the buyer's rule (LPC-55): identity verification not in force, or the wallet not claimed, active and confirmed on chain, or a recovery open (`details`: party `seller`, kycVerified, walletStatus)."
              }
            ]
          },
          "404": {
            "description": "`TITLE_NOT_FOUND`: No property has this `tokenId`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "TITLE_NOT_FOUND",
                "when": "No property has this `tokenId`."
              }
            ]
          },
          "409": {
            "description": "`PROPERTY_NOT_PLACED`: NAPR has not yet answered the report of this property's first listing, or has not yet been told its shares exist (`details.placement`: AWAITING_NAPR); try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PROPERTY_NOT_PLACED",
                "when": "NAPR has not yet answered the report of this property's first listing, or has not yet been told its shares exist (`details.placement`: AWAITING_NAPR); try again later."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`PROPERTY_RESTRICTED`: The property is burned, court-frozen or encumbered, in the registry or on chain (`details` says which).\n\n`HOLDER_FROZEN`: The seller is frozen: a person freeze, read on chain (HFZ-16).\n\n`FRACTION_TOKEN_MISMATCH`: This property's fraction token is not `fractionToken`.\n\n`PROPERTY_NOT_PLACED`: NAPR can never record this property's listing: it was not registered through NAPR's token registry, or NAPR recorded its listing as failed (`details.placement`: NO_TOKREG_REGISTRATION, PLACEMENT_FAILED).\n\n`RETURN_URI_NOT_REGISTERED`: `returnUri` is not one of the platform's registered redirect URIs.\n\n`SUM_RULE_EXCEEDED`: `maxAmount` is more than the seller can still list (`details`: held, alreadyPromised, available, requested). `held` counts only fractions the seller can sell: frozen ones are left out (LPC-17).\n\n`SELLER_LEGAL_BLOCK`: NAPR refused the listing (A1.2; `details`: denialReasons, naprReference), or has no tokenised property under this cadastral number (denialReasons NOT_TOKENISED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PROPERTY_RESTRICTED",
                "when": "The property is burned, court-frozen or encumbered, in the registry or on chain (`details` says which)."
              },
              {
                "code": "HOLDER_FROZEN",
                "when": "The seller is frozen: a person freeze, read on chain (HFZ-16)."
              },
              {
                "code": "FRACTION_TOKEN_MISMATCH",
                "when": "This property's fraction token is not `fractionToken`."
              },
              {
                "code": "PROPERTY_NOT_PLACED",
                "when": "NAPR can never record this property's listing: it was not registered through NAPR's token registry, or NAPR recorded its listing as failed (`details.placement`: NO_TOKREG_REGISTRATION, PLACEMENT_FAILED)."
              },
              {
                "code": "RETURN_URI_NOT_REGISTERED",
                "when": "`returnUri` is not one of the platform's registered redirect URIs."
              },
              {
                "code": "SUM_RULE_EXCEEDED",
                "when": "`maxAmount` is more than the seller can still list (`details`: held, alreadyPromised, available, requested). `held` counts only fractions the seller can sell: frozen ones are left out (LPC-17)."
              },
              {
                "code": "SELLER_LEGAL_BLOCK",
                "when": "NAPR refused the listing (A1.2; `details`: denialReasons, naprReference), or has no tokenised property under this cadastral number (denialReasons NOT_TOKENISED)."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`CHAIN_UNAVAILABLE`: The chain could not be read to check the property, the seller or the seller's free fractions; retry.\n\n`NAPR_UNAVAILABLE`: NAPR did not answer in 3 seconds, refused to be asked, or answered unverifiably; nothing is prepared, retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "CHAIN_UNAVAILABLE",
                "when": "The chain could not be read to check the property, the seller or the seller's free fractions; retry."
              },
              {
                "code": "NAPR_UNAVAILABLE",
                "when": "NAPR did not answer in 3 seconds, refused to be asked, or answered unverifiably; nothing is prepared, retry."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-28"
      }
    },
    "/v1/lp/me/compliance-status": {
      "get": {
        "operationId": "getLpMeComplianceStatus",
        "summary": "Is the connected person ready to list or buy?",
        "description": "The check a platform makes at its List and Buy gates. Exactly three fields, from the registry's one readiness rule; the wallet address only when the wallet is READY. Nothing else about the person is shared.",
        "tags": [
          "Connected person"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "identity:introspect"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "The person's readiness.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "kycVerified": {
                          "type": "boolean",
                          "description": "Identity verification is complete."
                        },
                        "walletStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_CLAIMED",
                            "PENDING",
                            "READY"
                          ]
                        },
                        "walletAddress": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^0x[0-9a-fA-F]{40}$",
                              "description": "A 20-byte address, 0x-prefixed hex."
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Only when `walletStatus` is READY; null otherwise."
                        }
                      },
                      "required": [
                        "kycVerified",
                        "walletStatus",
                        "walletAddress"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown. Or: The person the grant names no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown. Or: The person the grant names no longer exists."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/me/holdings": {
      "get": {
        "operationId": "getLpMeHoldings",
        "summary": "What the connected person holds",
        "description": "Every property share the person holds (balance above 0), so they can choose what to sell. Ordered by fraction token. Only for a ready person: anyone else is refused with NOT_READY, never answered in part.",
        "tags": [
          "Connected person"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "listings:write"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "The person's holdings; an empty list when they hold nothing.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tokenId": {
                            "type": "string"
                          },
                          "cadastralCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "propertyType": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "areaSquareMeters": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "districtCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "fractionToken": {
                            "type": "string",
                            "pattern": "^0x[0-9a-fA-F]{40}$",
                            "description": "A 20-byte address, 0x-prefixed hex."
                          },
                          "balance": {
                            "type": "string",
                            "pattern": "^[0-9]+$",
                            "description": "An unsigned integer as a decimal string (uint256 fits)."
                          },
                          "totalShares": {
                            "type": "string",
                            "pattern": "^[0-9]+$",
                            "description": "An unsigned integer as a decimal string (uint256 fits)."
                          },
                          "basisPoints": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "The share of the property: 10000 is 100%."
                          },
                          "tradable": {
                            "type": "boolean",
                            "description": "The vault is active, the property is free to trade, and the person is not frozen."
                          },
                          "holdingPeriodEndsAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "description": "ISO 8601, UTC."
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "When the holding period ends; null when none."
                          }
                        },
                        "required": [
                          "tokenId",
                          "cadastralCode",
                          "propertyType",
                          "areaSquareMeters",
                          "districtCode",
                          "fractionToken",
                          "balance",
                          "totalShares",
                          "basisPoints",
                          "tradable",
                          "holdingPeriodEndsAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown. Or: The person the grant names no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown. Or: The person the grant names no longer exists."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              }
            ]
          },
          "409": {
            "description": "`NOT_READY`: The person is not ready: identity not verified, the wallet not ready, or a wallet recovery is open.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "NOT_READY",
                "when": "The person is not ready: identity not verified, the wallet not ready, or a wallet recovery is open."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/me/kyc-share-token": {
      "post": {
        "operationId": "postLpMeKycShareToken",
        "summary": "Collect a one-time Sumsub share token for the connected person's verified ID check",
        "description": "LPC-51 (ADR 0095). Only after the person ticked \"Share a copy of my verified ID check\" on Sakartvelo's consent screen (scope `kyc:share`, asked in the pushed connect request), and only within ten minutes of the code exchange. Each tick allows one token; a second copy needs the person to connect again and tick again.\n\nThe answer is Sumsub's share token, made out to the platform's own Sumsub client (`forClientId`, recorded when the platform's sharing was set up) and valid for ten minutes and one use. Redeem it at once with the platform's own Sumsub keys (Sumsub Reusable KYC Share). Sakartvelo returns no identity details, and never stores or logs the token; treat it as a credential and never pass it through a browser.\n\nOnly a 201 uses the consent up: after a 409 or 503 the platform may retry while the ten minutes last.",
        "tags": [
          "Connected person"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "kyc:share"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The share token.",
            "headers": {
              "Cache-Control": {
                "description": "no-store: the answer carries a credential.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "shareToken": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1024,
                          "description": "Sumsub's share token: opaque, single use."
                        },
                        "forClientId": {
                          "type": "string",
                          "description": "The platform's own Sumsub client the token is made out to."
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the token stops working."
                        }
                      },
                      "required": [
                        "shareToken",
                        "forClientId",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`KYC_SHARE_NOT_ENABLED`: The platform's sharing is not set up (no Sumsub client or no data-sharing agreement recorded).\n\n`KYC_SHARE_CONSENT_REQUIRED`: No unused consent on this connection: already used, older than ten minutes, or the line was not ticked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "KYC_SHARE_NOT_ENABLED",
                "when": "The platform's sharing is not set up (no Sumsub client or no data-sharing agreement recorded)."
              },
              {
                "code": "KYC_SHARE_CONSENT_REQUIRED",
                "when": "No unused consent on this connection: already used, older than ten minutes, or the line was not ticked."
              }
            ]
          },
          "409": {
            "description": "`KYC_NOT_VERIFIED`: The person's identity check is not in force, on Sakartvelo's record or on Sumsub's. No reason is given.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "KYC_NOT_VERIFIED",
                "when": "The person's identity check is not in force, on Sakartvelo's record or on Sumsub's. No reason is given."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`KYC_PROVIDER_UNAVAILABLE`: Sumsub could not be reached or did not issue the token. The consent stays usable: try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "KYC_PROVIDER_UNAVAILABLE",
                "when": "Sumsub could not be reached or did not issue the token. The consent stays usable: try again."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-27"
      }
    },
    "/v1/lp/me/listings": {
      "get": {
        "operationId": "getLpMeListings",
        "summary": "The connected person's listings on this platform",
        "description": "The person's listings that name this platform, newest first; never their listings on other platforms.\n\nPaging: send the last item's `listingId` as `cursor` for the next page. A page shorter than `limit` is the last; a full page may still be the last (the answer carries no next cursor). A listing past its expiry reads EXPIRED once the registry's minute sweep has marked it and sent `listing.expired`; no sale can use it meanwhile.",
        "tags": [
          "Connected person"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "listings:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "REVOKED",
                "EXPIRED",
                "EXHAUSTED",
                "SUSPENDED",
                "INVALIDATED"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of listings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "listingId": {
                            "type": "string"
                          },
                          "listingHash": {
                            "type": "string",
                            "pattern": "^0x[0-9a-fA-F]{64}$",
                            "description": "32 bytes, 0x-prefixed hex."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "REVOKED",
                              "EXPIRED",
                              "EXHAUSTED",
                              "SUSPENDED",
                              "INVALIDATED"
                            ]
                          },
                          "bounds": {
                            "type": "object",
                            "properties": {
                              "fractionToken": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]{40}$",
                                "description": "A 20-byte address, 0x-prefixed hex."
                              },
                              "tokenId": {
                                "type": "string"
                              },
                              "maxAmount": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "An unsigned integer as a decimal string (uint256 fits)."
                              },
                              "minPricePerFraction": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "An unsigned integer as a decimal string (uint256 fits)."
                              },
                              "currency": {
                                "type": "string",
                                "description": "`GEL`."
                              },
                              "expiry": {
                                "type": "string",
                                "format": "date-time",
                                "description": "ISO 8601, UTC."
                              },
                              "nonce": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "An unsigned integer as a decimal string (uint256 fits)."
                              }
                            },
                            "required": [
                              "fractionToken",
                              "tokenId",
                              "maxAmount",
                              "minPricePerFraction",
                              "currency",
                              "expiry",
                              "nonce"
                            ],
                            "additionalProperties": false,
                            "description": "The terms the seller authorised, as people read them."
                          },
                          "onChain": {
                            "type": "object",
                            "properties": {
                              "listingHash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]{64}$",
                                "description": "The contract's struct hash of these eight fields."
                              },
                              "fractionToken": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]{40}$",
                                "description": "A 20-byte address, 0x-prefixed hex."
                              },
                              "seller": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]{40}$",
                                "description": "A 20-byte address, 0x-prefixed hex."
                              },
                              "maxAmount": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "An unsigned integer as a decimal string (uint256 fits)."
                              },
                              "minPricePerFraction": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "An unsigned integer as a decimal string (uint256 fits)."
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]{40}$",
                                "description": "The payment token's address (the zero address today), not `GEL`."
                              },
                              "lpId": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]{64}$",
                                "description": "keccak256 of the platform's registry id: the platform as the contract knows it."
                              },
                              "expiry": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "Unix seconds."
                              },
                              "nonce": {
                                "type": "string",
                                "pattern": "^[0-9]+$",
                                "description": "An unsigned integer as a decimal string (uint256 fits)."
                              }
                            },
                            "required": [
                              "listingHash",
                              "fractionToken",
                              "seller",
                              "maxAmount",
                              "minPricePerFraction",
                              "currency",
                              "lpId",
                              "expiry",
                              "nonce"
                            ],
                            "additionalProperties": false,
                            "description": "The same terms as the contract hashes them: copy these into a FillOrder as they are."
                          },
                          "consumed": {
                            "type": "string",
                            "pattern": "^[0-9]+$",
                            "description": "Fractions already sold under this listing."
                          },
                          "platform": {
                            "type": "object",
                            "properties": {
                              "lpId": {
                                "type": "string",
                                "description": "The registry's id of the platform (not the bytes32 in `onChain.lpId`)."
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "lpId",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          "cadastralCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "suspendedReason": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "COURT_FREEZE",
                                  "PLATFORM_SUSPENDED",
                                  "OTHER"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Why the listing is SUSPENDED, as of now; null for every other status."
                          },
                          "revokedBy": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SELLER",
                                  "PLATFORM",
                                  "RECOVERY",
                                  "CANCELLATION"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Who cancelled it; null while it is not revoked."
                          },
                          "onchain": {
                            "type": "object",
                            "properties": {
                              "listingHash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "revoked": {
                                "type": "boolean",
                                "description": "True once a verified revokeListing receipt is recorded."
                              },
                              "revokeTxHash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "revokedAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "ISO 8601, UTC."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "listingHash",
                              "revoked",
                              "revokeTxHash",
                              "revokedAt"
                            ],
                            "additionalProperties": false,
                            "description": "The contract-side view of the listing."
                          }
                        },
                        "required": [
                          "listingId",
                          "listingHash",
                          "status",
                          "bounds",
                          "onChain",
                          "consumed",
                          "platform",
                          "cadastralCode",
                          "suspendedReason",
                          "revokedBy",
                          "onchain"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown. Or: The person the grant names no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown. Or: The person the grant names no longer exists."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              }
            ]
          },
          "409": {
            "description": "`NOT_READY`: The person is not ready: identity not verified, the wallet not ready, or a wallet recovery is open.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "NOT_READY",
                "when": "The person is not ready: identity not verified, the wallet not ready, or a wallet recovery is open."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/lp/properties/{cadastralNumber}": {
      "get": {
        "operationId": "getLpPropertiesByCadastralNumber",
        "summary": "Look up a property for the connected owner",
        "description": "Runs the owner check (TKZ-03) and answers the property's facts with the owner removed. A person not shown to be the owner and a property NAPR does not know get the same 404. Nothing is recorded.",
        "tags": [
          "Tokenisation"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "tokenisation:apply"
            ]
          }
        ],
        "parameters": [
          {
            "name": "cadastralNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64,
              "pattern": "^\\d{2}\\.\\d{2}\\.\\d{2}\\.\\d{3}(\\.\\d{2,3})*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The property's facts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "cadastralNumber": {
                          "type": "string"
                        },
                        "propertyType": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "areaSquareMeters": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "status": {
                          "type": "string"
                        },
                        "isCourtFrozen": {
                          "type": "boolean"
                        },
                        "tokenizationNotation": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string"
                        },
                        "retrievedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "cadastralNumber",
                        "propertyType",
                        "areaSquareMeters",
                        "status",
                        "isCourtFrozen",
                        "tokenizationNotation",
                        "source",
                        "retrievedAt"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              }
            ]
          },
          "404": {
            "description": "`PROPERTY_NOT_FOUND`: Not the owner, or NAPR has no record (same answer for both).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PROPERTY_NOT_FOUND",
                "when": "Not the owner, or NAPR has no record (same answer for both)."
              }
            ]
          },
          "422": {
            "description": "`ACCOUNT_NOT_VERIFIED`: The account status is not VERIFIED.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "ACCOUNT_NOT_VERIFIED",
                "when": "The account status is not VERIFIED."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`NAPR_UNAVAILABLE`: NAPR did not answer within the timeout.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "NAPR_UNAVAILABLE",
                "when": "NAPR did not answer within the timeout."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-11"
      }
    },
    "/v1/lp/tokenisation-applications": {
      "post": {
        "operationId": "postLpTokenisationApplications",
        "summary": "Hand an application over for the connected owner",
        "description": "The owner check (TKZ-03) and every gate of TKZ-02 – TKZ-05 run unchanged. Records the platform's id, share count and holder limit on the application. 201 when created, 200 for the same request again.",
        "tags": [
          "Tokenisation"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "tokenisation:apply"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8 to 128 letters, digits or . _ : - (SRF-41). A retry with the same key gets the first answer again, with `Idempotent-Replayed: true`; the same key with a different body is refused. Licensed platforms: until 2027-04-11 a request without one is accepted and logged.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "applicationReference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,64}$"
                  },
                  "cadastralNumber": {
                    "type": "string",
                    "maxLength": 64,
                    "pattern": "^\\d{2}\\.\\d{2}\\.\\d{2}\\.\\d{3}(\\.\\d{2,3})*$"
                  },
                  "numberOfFractions": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 10000
                  },
                  "maxHolders": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  }
                },
                "required": [
                  "applicationReference",
                  "cadastralNumber",
                  "numberOfFractions",
                  "maxHolders"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Same request again: the existing row.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "applicationReference": {
                          "type": "string"
                        },
                        "cadastralNumber": {
                          "type": "string"
                        },
                        "platformReference": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "requestedShares": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxHolders": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "tokregReference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tokenId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fractionTokenAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "totalShares": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "waitingOn": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "NAPR",
                                "REGISTRY_STAFF",
                                "BLOCKCHAIN"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "While RECEIVED or REGISTERING, what the application waits on: NAPR (handed over, or NAPR deciding), REGISTRY_STAFF (it cannot be sent, or NAPR's instruction was refused here and a registrar settles it with NAPR), BLOCKCHAIN (the shares are being created). The owner cannot clear any of these. Null once the application has ended."
                        },
                        "endReason": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "enum": [
                                    "TOKREG_REFUSED",
                                    "TOKREG_UNKNOWN_APPLICATION",
                                    "TOKREG_NOT_WAITING",
                                    "LEGAL_CHECK_FAILED",
                                    "CLOSED_BY_REGISTRAR",
                                    "EXPIRED"
                                  ]
                                },
                                "message": {
                                  "type": "string",
                                  "description": "A plain sentence of ours, for the owner. Never a registrar's words or NAPR's text."
                                }
                              },
                              "required": [
                                "code",
                                "message"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Why an application ended without shares (FAILED or EXPIRED); null otherwise. Treat an unknown code as a generic ending."
                        }
                      },
                      "required": [
                        "id",
                        "applicationReference",
                        "cadastralNumber",
                        "platformReference",
                        "status",
                        "requestedShares",
                        "maxHolders",
                        "createdAt",
                        "updatedAt",
                        "tokregReference",
                        "tokenId",
                        "fractionTokenAddress",
                        "totalShares",
                        "waitingOn",
                        "endReason"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Application recorded, A2.1 queued.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "applicationReference": {
                          "type": "string"
                        },
                        "cadastralNumber": {
                          "type": "string"
                        },
                        "platformReference": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "requestedShares": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxHolders": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "tokregReference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tokenId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fractionTokenAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "totalShares": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "waitingOn": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "NAPR",
                                "REGISTRY_STAFF",
                                "BLOCKCHAIN"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "While RECEIVED or REGISTERING, what the application waits on: NAPR (handed over, or NAPR deciding), REGISTRY_STAFF (it cannot be sent, or NAPR's instruction was refused here and a registrar settles it with NAPR), BLOCKCHAIN (the shares are being created). The owner cannot clear any of these. Null once the application has ended."
                        },
                        "endReason": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "enum": [
                                    "TOKREG_REFUSED",
                                    "TOKREG_UNKNOWN_APPLICATION",
                                    "TOKREG_NOT_WAITING",
                                    "LEGAL_CHECK_FAILED",
                                    "CLOSED_BY_REGISTRAR",
                                    "EXPIRED"
                                  ]
                                },
                                "message": {
                                  "type": "string",
                                  "description": "A plain sentence of ours, for the owner. Never a registrar's words or NAPR's text."
                                }
                              },
                              "required": [
                                "code",
                                "message"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Why an application ended without shares (FAILED or EXPIRED); null otherwise. Treat an unknown code as a generic ending."
                        }
                      },
                      "required": [
                        "id",
                        "applicationReference",
                        "cadastralNumber",
                        "platformReference",
                        "status",
                        "requestedShares",
                        "maxHolders",
                        "createdAt",
                        "updatedAt",
                        "tokregReference",
                        "tokenId",
                        "fractionTokenAddress",
                        "totalShares",
                        "waitingOn",
                        "endReason"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field. Or: The Idempotency-Key is not 8 to 128 letters, digits or . _ : - Or: Body fails strict schema or maxHolders > numberOfFractions.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.\n\n`IDEMPOTENCY_KEY_REQUIRED`: No Idempotency-Key header. Licensed platforms: until 2027-04-11 the request is accepted and logged; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field. Or: The Idempotency-Key is not 8 to 128 letters, digits or . _ : - Or: Body fails strict schema or maxHolders > numberOfFractions."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              },
              {
                "code": "IDEMPOTENCY_KEY_REQUIRED",
                "when": "No Idempotency-Key header. Licensed platforms: until 2027-04-11 the request is accepted and logged; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`WALLET_NOT_CLAIMED`: The owner has no claimed wallet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "WALLET_NOT_CLAIMED",
                "when": "The owner has no claimed wallet."
              }
            ]
          },
          "404": {
            "description": "`PROPERTY_NOT_FOUND`: Owner check failed (not owner or NAPR has no record).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PROPERTY_NOT_FOUND",
                "when": "Owner check failed (not owner or NAPR has no record)."
              }
            ]
          },
          "409": {
            "description": "`IDEMPOTENCY_IN_PROGRESS`: A request with this Idempotency-Key is still running; retry shortly.\n\n`APPLICATION_ALREADY_OPEN`: Another open application exists for this property or this number is open from another channel.\n\n`APPLICATION_ALREADY_HANDED_OVER`: This owner already has an open application for a different property.\n\n`APPLICATION_TAKEN`: This application number is open under another account.\n\n`ALREADY_TOKENISED`: The property is already tokenised.\n\n`WALLET_NOT_READY`: Wallet not confirmed on chain or recovery open.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "IDEMPOTENCY_IN_PROGRESS",
                "when": "A request with this Idempotency-Key is still running; retry shortly."
              },
              {
                "code": "APPLICATION_ALREADY_OPEN",
                "when": "Another open application exists for this property or this number is open from another channel."
              },
              {
                "code": "APPLICATION_ALREADY_HANDED_OVER",
                "when": "This owner already has an open application for a different property."
              },
              {
                "code": "APPLICATION_TAKEN",
                "when": "This application number is open under another account."
              },
              {
                "code": "ALREADY_TOKENISED",
                "when": "The property is already tokenised."
              },
              {
                "code": "WALLET_NOT_READY",
                "when": "Wallet not confirmed on chain or recovery open."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`IDEMPOTENCY_MISMATCH`: This Idempotency-Key was used for a different request.\n\n`ACCOUNT_NOT_VERIFIED`: The account status is not VERIFIED.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "IDEMPOTENCY_MISMATCH",
                "when": "This Idempotency-Key was used for a different request."
              },
              {
                "code": "ACCOUNT_NOT_VERIFIED",
                "when": "The account status is not VERIFIED."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`NAPR_UNAVAILABLE`: NAPR did not answer within the timeout.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "NAPR_UNAVAILABLE",
                "when": "NAPR did not answer within the timeout."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-30"
      }
    },
    "/v1/lp/tokenisation-applications/{id}": {
      "get": {
        "operationId": "getLpTokenisationApplicationsById",
        "summary": "Read an application's stage",
        "description": "Only an application this platform handed over for this owner (platformId and userId must match); anything else answers 404. Once MINTED, the answer includes the token registry reference, token id, fraction token address and total shares. While RECEIVED or REGISTERING, `waitingOn` says what it waits on; once FAILED or EXPIRED, `endReason` says why (ADR 0167). MINTED, FAILED and EXPIRED are final; `tokenisation.completed` and `tokenisation.failed` on the events feed announce them.",
        "tags": [
          "Tokenisation"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "tokenisation:apply"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{20,40}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The application.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "applicationReference": {
                          "type": "string"
                        },
                        "cadastralNumber": {
                          "type": "string"
                        },
                        "platformReference": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "requestedShares": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxHolders": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO 8601, UTC."
                        },
                        "tokregReference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tokenId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fractionTokenAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "totalShares": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "waitingOn": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "NAPR",
                                "REGISTRY_STAFF",
                                "BLOCKCHAIN"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "While RECEIVED or REGISTERING, what the application waits on: NAPR (handed over, or NAPR deciding), REGISTRY_STAFF (it cannot be sent, or NAPR's instruction was refused here and a registrar settles it with NAPR), BLOCKCHAIN (the shares are being created). The owner cannot clear any of these. Null once the application has ended."
                        },
                        "endReason": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "enum": [
                                    "TOKREG_REFUSED",
                                    "TOKREG_UNKNOWN_APPLICATION",
                                    "TOKREG_NOT_WAITING",
                                    "LEGAL_CHECK_FAILED",
                                    "CLOSED_BY_REGISTRAR",
                                    "EXPIRED"
                                  ]
                                },
                                "message": {
                                  "type": "string",
                                  "description": "A plain sentence of ours, for the owner. Never a registrar's words or NAPR's text."
                                }
                              },
                              "required": [
                                "code",
                                "message"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Why an application ended without shares (FAILED or EXPIRED); null otherwise. Treat an unknown code as a generic ending."
                        }
                      },
                      "required": [
                        "id",
                        "applicationReference",
                        "cadastralNumber",
                        "platformReference",
                        "status",
                        "requestedShares",
                        "maxHolders",
                        "createdAt",
                        "updatedAt",
                        "tokregReference",
                        "tokenId",
                        "fractionTokenAddress",
                        "totalShares",
                        "waitingOn",
                        "endReason"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              }
            ]
          },
          "404": {
            "description": "`APPLICATION_NOT_FOUND`: Unknown id, or not this platform's application, or not this owner's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "APPLICATION_NOT_FOUND",
                "when": "Unknown id, or not this platform's application, or not this owner's."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-11-30"
      }
    },
    "/v1/lp/trades/precheck": {
      "post": {
        "operationId": "postLpTradesPrecheck",
        "summary": "Check a purchase before it is prepared",
        "description": "Before the purchase is prepared: may this buyer buy these terms? The registry runs its own checks (listing, price, seller's holding, buyer's readiness and connection, whether NAPR can be told who the buyer is, property and its placement with NAPR, holder cap), then asks NAPR (A1.2). A yes carries a `precheckId`, valid for 5 minutes and usable once, which `intents/prepare` requires. A no is the refusal's code. It starts nothing, so it takes no Idempotency-Key.",
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "requestKey": [],
            "citizenGrant": [
              "trades:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "listingId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "maxAmount": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  },
                  "maxPricePerFraction": {
                    "type": "string",
                    "pattern": "^[0-9]{1,78}$"
                  }
                },
                "required": [
                  "listingId",
                  "maxAmount",
                  "maxPricePerFraction"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase may proceed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data",
                    "requestId"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "success": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "decision": {
                          "type": "string",
                          "const": "ALLOW"
                        },
                        "precheckId": {
                          "type": "string",
                          "description": "`pc-` and a UUID; send it to intents/prepare."
                        },
                        "validUntil": {
                          "type": "string",
                          "format": "date-time",
                          "description": "5 minutes from now."
                        },
                        "naprReference": {
                          "type": "string",
                          "description": "NAPR's reference for its answer."
                        },
                        "registrationWindowSeconds": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "How long the buyer's intent and the fill's deadline must stay valid when the sale is submitted."
                        }
                      },
                      "required": [
                        "decision",
                        "precheckId",
                        "validUntil",
                        "naprReference",
                        "registrationWindowSeconds"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`VALIDATION_ERROR`: A field is missing or malformed; `details` lists each field.\n\n`UNKNOWN_FIELD`: A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "VALIDATION_ERROR",
                "when": "A field is missing or malformed; `details` lists each field."
              },
              {
                "code": "UNKNOWN_FIELD",
                "when": "A field the route does not know. Licensed platforms: until 2027-04-11 such a field is logged and dropped and the request goes on; from then on it is refused."
              }
            ]
          },
          "401": {
            "description": "`INVALID_DPOP_PROOF`: The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3).\n\n`INVALID_CLIENT`: The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform. Or: The citizen's token names no person or no platform.\n\n`INVALID_TOKEN`: The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform.\n\n`CONSENT_REVOKED`: The citizen's access token is revoked, expired or unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_DPOP_PROOF",
                "when": "The DPoP proof is missing, malformed, stale, used before, or not for this call (RFC 9449 §4.3)."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The proof is not signed by a request key in force of a licensed platform, or the token is not sent as `Authorization: DPoP <token>`. Or: No `Authorization: DPoP <access token>` for a person, or the grant was issued to a different platform. Or: The citizen's token names no person or no platform."
              },
              {
                "code": "INVALID_TOKEN",
                "when": "The token is not the kind this route takes (the platform's own, or a person's), or is bound to another key or platform."
              },
              {
                "code": "CONSENT_REVOKED",
                "when": "The citizen's access token is revoked, expired or unknown."
              }
            ]
          },
          "403": {
            "description": "`PLATFORM_SUSPENDED`: The platform is not LIVE (applied, suspended or offboarded).\n\n`INVALID_SCOPE`: The grant does not carry the scope this route needs.\n\n`INVALID_CLIENT`: The listing is on another platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PLATFORM_SUSPENDED",
                "when": "The platform is not LIVE (applied, suspended or offboarded)."
              },
              {
                "code": "INVALID_SCOPE",
                "when": "The grant does not carry the scope this route needs."
              },
              {
                "code": "INVALID_CLIENT",
                "when": "The listing is on another platform."
              }
            ]
          },
          "404": {
            "description": "`LISTING_NOT_FOUND`: No listing has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "LISTING_NOT_FOUND",
                "when": "No listing has this id."
              }
            ]
          },
          "409": {
            "description": "`BUYER_NOT_READY`: The buyer has not claimed a wallet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "BUYER_NOT_READY",
                "when": "The buyer has not claimed a wallet."
              }
            ]
          },
          "413": {
            "description": "`PAYLOAD_TOO_LARGE`: The body is larger than 1 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "PAYLOAD_TOO_LARGE",
                "when": "The body is larger than 1 MB."
              }
            ]
          },
          "415": {
            "description": "`UNSUPPORTED_CONTENT_TYPE`: The body is in a content type the route does not take.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "UNSUPPORTED_CONTENT_TYPE",
                "when": "The body is in a content type the route does not take."
              }
            ]
          },
          "422": {
            "description": "`INVALID_AMOUNT`: `maxAmount` is 0.\n\n`LISTING_REVOKED`: The listing is revoked.\n\n`LISTING_EXPIRED`: The listing has expired.\n\n`LISTING_EXHAUSTED`: The listing is sold out, or `maxAmount` is more than it has left.\n\n`LISTING_SUSPENDED`: The listing is suspended (court freeze or platform suspension).\n\n`LISTING_INVALIDATED`: The listing was invalidated.\n\n`LISTING_NOT_FILLABLE`: The listing is in no state a purchase can use.\n\n`SELF_DEAL_FORBIDDEN`: The buyer is the seller.\n\n`PRICE_BELOW_MIN`: `maxPricePerFraction` is below the listing's minimum.\n\n`SUM_RULE_EXCEEDED`: The seller no longer holds enough (`details`: held, requested).\n\n`BUYER_NOT_READY`: The buyer's wallet is not a registry account, or the buyer is not ready (`details`: kycVerified, walletStatus).\n\n`SELLER_NOT_READY`: The listing's seller is not ready, by the buyer's rule (LPC-55): identity verification not in force, or the wallet not claimed, active and confirmed on chain, or a recovery open (`details`: kycVerified, walletStatus). The buyer has nothing to do.\n\n`BUYER_NOT_CONNECTED`: The buyer has no active grant to this platform.\n\n`BUYER_IDENTITY_UNVERIFIED`: NAPR registers the buyer by a Georgian personal number or, for a foreign citizen, a passport number, read by their own identity check on Sakartvelo, with the account's name and email (ADR 0112, ADR 0160); this buyer cannot be named that way. No detail says which part is missing.\n\n`PROPERTY_NOT_PLACED`: NAPR has not recorded the property's listing, so its shares do not trade yet — or never can: it was not registered through NAPR's token registry, or its listing failed (`details.placement`: AWAITING_NAPR, NO_TOKREG_REGISTRATION, PLACEMENT_FAILED).\n\n`PROPERTY_RESTRICTED`: The property is burned, frozen or encumbered, in the registry or on chain, or its token is paused on chain (`details.paused`).\n\n`HOLDER_FROZEN`: The seller or the buyer is frozen, read on chain: a person freeze (HFZ-16), or their wallet frozen on the property's token.\n\n`SETTLEMENT_HALTED`: Settlement is halted registry-wide (LPC-24). Do not prepare the purchase; pre-check again after the halt is lifted. NAPR was not asked.\n\n`SELLER_RESALE_LOCKED`: The seller's fractions are under a resale lock set for the property: `details.lockedUntil` says until when. Do not prepare the purchase; pre-check again after that time. NAPR was not asked.\n\n`HOLDER_CAP_EXCEEDED`: A new holder would pass the property's holder limit.\n\n`CAPACITY_HELD`: Other buyers' sales in progress hold what the listing has left (LPC-43): `details.available` is how many can be bought now. Do not prepare the purchase; offer no more than `available`, or pre-check again later. NAPR was not asked.\n\n`SELLER_BALANCE_INSUFFICIENT`: The seller's free fractions on chain, less this listing's own sales in progress, do not cover the purchase (LPC-43): `details.available` is how many can be bought now. Do not prepare the purchase; offer no more than `available`, or pre-check again later. NAPR was not asked.\n\n`SELLER_LEGAL_BLOCK`: NAPR refused the sale (`details`: denialReasons, naprReference), or the property has no cadastral number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INVALID_AMOUNT",
                "when": "`maxAmount` is 0."
              },
              {
                "code": "LISTING_REVOKED",
                "when": "The listing is revoked."
              },
              {
                "code": "LISTING_EXPIRED",
                "when": "The listing has expired."
              },
              {
                "code": "LISTING_EXHAUSTED",
                "when": "The listing is sold out, or `maxAmount` is more than it has left."
              },
              {
                "code": "LISTING_SUSPENDED",
                "when": "The listing is suspended (court freeze or platform suspension)."
              },
              {
                "code": "LISTING_INVALIDATED",
                "when": "The listing was invalidated."
              },
              {
                "code": "LISTING_NOT_FILLABLE",
                "when": "The listing is in no state a purchase can use."
              },
              {
                "code": "SELF_DEAL_FORBIDDEN",
                "when": "The buyer is the seller."
              },
              {
                "code": "PRICE_BELOW_MIN",
                "when": "`maxPricePerFraction` is below the listing's minimum."
              },
              {
                "code": "SUM_RULE_EXCEEDED",
                "when": "The seller no longer holds enough (`details`: held, requested)."
              },
              {
                "code": "BUYER_NOT_READY",
                "when": "The buyer's wallet is not a registry account, or the buyer is not ready (`details`: kycVerified, walletStatus)."
              },
              {
                "code": "SELLER_NOT_READY",
                "when": "The listing's seller is not ready, by the buyer's rule (LPC-55): identity verification not in force, or the wallet not claimed, active and confirmed on chain, or a recovery open (`details`: kycVerified, walletStatus). The buyer has nothing to do."
              },
              {
                "code": "BUYER_NOT_CONNECTED",
                "when": "The buyer has no active grant to this platform."
              },
              {
                "code": "BUYER_IDENTITY_UNVERIFIED",
                "when": "NAPR registers the buyer by a Georgian personal number or, for a foreign citizen, a passport number, read by their own identity check on Sakartvelo, with the account's name and email (ADR 0112, ADR 0160); this buyer cannot be named that way. No detail says which part is missing."
              },
              {
                "code": "PROPERTY_NOT_PLACED",
                "when": "NAPR has not recorded the property's listing, so its shares do not trade yet — or never can: it was not registered through NAPR's token registry, or its listing failed (`details.placement`: AWAITING_NAPR, NO_TOKREG_REGISTRATION, PLACEMENT_FAILED)."
              },
              {
                "code": "PROPERTY_RESTRICTED",
                "when": "The property is burned, frozen or encumbered, in the registry or on chain, or its token is paused on chain (`details.paused`)."
              },
              {
                "code": "HOLDER_FROZEN",
                "when": "The seller or the buyer is frozen, read on chain: a person freeze (HFZ-16), or their wallet frozen on the property's token."
              },
              {
                "code": "SETTLEMENT_HALTED",
                "when": "Settlement is halted registry-wide (LPC-24). Do not prepare the purchase; pre-check again after the halt is lifted. NAPR was not asked."
              },
              {
                "code": "SELLER_RESALE_LOCKED",
                "when": "The seller's fractions are under a resale lock set for the property: `details.lockedUntil` says until when. Do not prepare the purchase; pre-check again after that time. NAPR was not asked."
              },
              {
                "code": "HOLDER_CAP_EXCEEDED",
                "when": "A new holder would pass the property's holder limit."
              },
              {
                "code": "CAPACITY_HELD",
                "when": "Other buyers' sales in progress hold what the listing has left (LPC-43): `details.available` is how many can be bought now. Do not prepare the purchase; offer no more than `available`, or pre-check again later. NAPR was not asked."
              },
              {
                "code": "SELLER_BALANCE_INSUFFICIENT",
                "when": "The seller's free fractions on chain, less this listing's own sales in progress, do not cover the purchase (LPC-43): `details.available` is how many can be bought now. Do not prepare the purchase; offer no more than `available`, or pre-check again later. NAPR was not asked."
              },
              {
                "code": "SELLER_LEGAL_BLOCK",
                "when": "NAPR refused the sale (`details`: denialReasons, naprReference), or the property has no cadastral number."
              }
            ]
          },
          "429": {
            "description": "`RATE_LIMIT_EXCEEDED`: Too many requests from this caller; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "RATE_LIMIT_EXCEEDED",
                "when": "Too many requests from this caller; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`INTERNAL_ERROR`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "INTERNAL_ERROR",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`REQUEST_KEYS_UNAVAILABLE`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`CHAIN_UNAVAILABLE`: The chain could not be read; retry.\n\n`NAPR_UNAVAILABLE`: NAPR did not answer in 3 seconds, refused, or answered unexpectedly; retry. Also for an amount above 2^53 − 1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "REQUEST_KEYS_UNAVAILABLE",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "CHAIN_UNAVAILABLE",
                "when": "The chain could not be read; retry."
              },
              {
                "code": "NAPR_UNAVAILABLE",
                "when": "NAPR did not answer in 3 seconds, refused, or answered unexpectedly; retry. Also for an amount above 2^53 − 1."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-28"
      }
    },
    "/v1/oauth/introspect": {
      "post": {
        "operationId": "postOauthIntrospect",
        "summary": "Is this access token active, and is its person ready?",
        "description": "Readiness only: the person's verification status and whether their wallet is claimed, never personal data. A token of another platform, an unknown, expired or revoked token, or one without `identity:introspect`, answers `active: false` with status 200: a token's state is never an error.\n\nThe client assertion names the platform; a token of another platform answers `active: false`.\n\nEvery answer carries `Cache-Control: no-store` and `Pragma: no-cache`. The client authenticates with a client assertion signed by its request key (`private_key_jwt`, RFC 7523); there is no client secret (ADR 0148).",
        "tags": [
          "OAuth"
        ],
        "security": [
          {
            "clientAssertion": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "token_type_hint": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  }
                },
                "required": [
                  "token",
                  "client_id",
                  "client_assertion_type",
                  "client_assertion"
                ],
                "additionalProperties": false
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "token_type_hint": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  }
                },
                "required": [
                  "token",
                  "client_id",
                  "client_assertion_type",
                  "client_assertion"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The token's state.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "const": true
                        },
                        "sub": {
                          "type": "string",
                          "description": "The person's subject for this platform: a hash of the platform and the person, the same on every call, different for every platform (ADR 0148)."
                        },
                        "scope": {
                          "type": "string"
                        },
                        "verification_status": {
                          "type": "string",
                          "enum": [
                            "VERIFIED",
                            "PENDING"
                          ]
                        },
                        "wallet_claimed": {
                          "type": "boolean"
                        },
                        "wallet_address": {
                          "description": "Only when `wallet_claimed`.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "active",
                        "sub",
                        "scope",
                        "verification_status",
                        "wallet_claimed"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "active"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "const": false
                        },
                        "verification_status": {
                          "type": "string",
                          "const": "REVOKED",
                          "description": "The grant behind the token is no longer active."
                        }
                      },
                      "required": [
                        "active",
                        "verification_status"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "properties": {
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`invalid_request`: The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped."
              }
            ]
          },
          "401": {
            "description": "`invalid_client`: No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_client",
                "when": "No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion."
              }
            ]
          },
          "403": {
            "description": "`unauthorized_client`: The platform is not LIVE (a SANDBOX platform may obtain tokens on dev only).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "unauthorized_client",
                "when": "The platform is not LIVE (a SANDBOX platform may obtain tokens on dev only)."
              }
            ]
          },
          "413": {
            "description": "`invalid_request`: The body is too large (a form body: 4 KB; JSON: 1 MB).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is too large (a form body: 4 KB; JSON: 1 MB)."
              }
            ]
          },
          "415": {
            "description": "`invalid_request`: The body is neither application/x-www-form-urlencoded nor application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is neither application/x-www-form-urlencoded nor application/json."
              }
            ]
          },
          "429": {
            "description": "`temporarily_unavailable`: Too many requests from this platform; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "Too many requests from this platform; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`server_error`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "server_error",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`temporarily_unavailable`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/oauth/par": {
      "post": {
        "operationId": "postOauthPar",
        "summary": "Push a connect request for one of your accounts (LPC-50)",
        "description": "Before sending a person to Sakartvelo to connect, push the request here with the verified email of your own account (RFC 9126). Then send the browser to the site's `/oauth/consent?client_id=…&request_uri=…` and nothing else. Only the Sakartvelo account with that email can approve; the request works once, at the person's decision, and lapses after 600 seconds. The answer is the same whether or not the address has a Sakartvelo account. Each push counts with your email lookups against one limit of 500 in any 24 hours.\n\nEvery answer carries `Cache-Control: no-store` and `Pragma: no-cache`. The client authenticates with a client assertion signed by its request key (`private_key_jwt`, RFC 7523); there is no client secret (ADR 0148).",
        "tags": [
          "OAuth"
        ],
        "security": [
          {
            "clientAssertion": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "response_type": {
                    "type": "string",
                    "const": "code"
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "dpop_jkt": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{43}$"
                  },
                  "redirect_uri": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "scope": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "state": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "code_challenge": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "code_challenge_method": {
                    "type": "string",
                    "const": "S256"
                  },
                  "account_email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "response_type",
                  "client_id",
                  "client_assertion_type",
                  "client_assertion",
                  "dpop_jkt",
                  "redirect_uri",
                  "scope",
                  "state",
                  "code_challenge",
                  "code_challenge_method",
                  "account_email"
                ],
                "additionalProperties": false
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "response_type": {
                    "type": "string",
                    "const": "code"
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "dpop_jkt": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{43}$"
                  },
                  "redirect_uri": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "scope": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "state": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "code_challenge": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "code_challenge_method": {
                    "type": "string",
                    "const": "S256"
                  },
                  "account_email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "response_type",
                  "client_id",
                  "client_assertion_type",
                  "client_assertion",
                  "dpop_jkt",
                  "redirect_uri",
                  "scope",
                  "state",
                  "code_challenge",
                  "code_challenge_method",
                  "account_email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The request's reference.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "request_uri": {
                      "type": "string",
                      "description": "`urn:ietf:params:oauth:request_uri:` and 64 hex characters."
                    },
                    "expires_in": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Seconds: 600."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "request_uri",
                    "expires_in",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "`invalid_request`: The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped.\n\n`invalid_scope`: A scope outside the client's grant or the §9 set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped."
              },
              {
                "code": "invalid_scope",
                "when": "A scope outside the client's grant or the §9 set."
              }
            ]
          },
          "401": {
            "description": "`invalid_client`: No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_client",
                "when": "No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion."
              }
            ]
          },
          "403": {
            "description": "`unauthorized_client`: The platform is not LIVE (a SANDBOX platform may obtain tokens on dev only).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "unauthorized_client",
                "when": "The platform is not LIVE (a SANDBOX platform may obtain tokens on dev only)."
              }
            ]
          },
          "413": {
            "description": "`invalid_request`: The body is too large (a form body: 4 KB; JSON: 1 MB).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is too large (a form body: 4 KB; JSON: 1 MB)."
              }
            ]
          },
          "415": {
            "description": "`invalid_request`: The body is neither application/x-www-form-urlencoded nor application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is neither application/x-www-form-urlencoded nor application/json."
              }
            ]
          },
          "429": {
            "description": "`temporarily_unavailable`: `code: LOOKUP_DAILY_LIMIT` — 500 email lookups and pushed requests together in the last 24 hours. Or: Too many requests from this platform; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "`code: LOOKUP_DAILY_LIMIT` — 500 email lookups and pushed requests together in the last 24 hours. Or: Too many requests from this platform; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`server_error`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "server_error",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`temporarily_unavailable`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-22"
      }
    },
    "/v1/oauth/revoke": {
      "post": {
        "operationId": "postOauthRevoke",
        "summary": "End a citizen's connection to the platform",
        "description": "Revokes the whole grant behind an access or refresh token, at once, and records `consent.revoked` on the platform's feed. Idempotent: an unknown, expired or already-revoked token of this platform answers the same. A token of another platform is refused and nothing is revoked.\n\nEvery answer carries `Cache-Control: no-store` and `Pragma: no-cache`. The client authenticates with a client assertion signed by its request key (`private_key_jwt`, RFC 7523); there is no client secret (ADR 0148).",
        "tags": [
          "OAuth"
        ],
        "security": [
          {
            "clientAssertion": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "token_type_hint": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  }
                },
                "required": [
                  "token",
                  "client_id",
                  "client_assertion_type",
                  "client_assertion"
                ],
                "additionalProperties": false
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "token_type_hint": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                  },
                  "client_assertion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  }
                },
                "required": [
                  "token",
                  "client_id",
                  "client_assertion_type",
                  "client_assertion"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Revoked, or nothing to revoke.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean",
                      "const": true
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "revoked",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "`invalid_request`: The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped.\n\n`unauthorized_client`: The token was not issued to the calling platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped."
              },
              {
                "code": "unauthorized_client",
                "when": "The token was not issued to the calling platform."
              }
            ]
          },
          "401": {
            "description": "`invalid_client`: No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_client",
                "when": "No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion."
              }
            ]
          },
          "403": {
            "description": "`unauthorized_client`: The platform is not LIVE (a SANDBOX platform may obtain tokens on dev only).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "unauthorized_client",
                "when": "The platform is not LIVE (a SANDBOX platform may obtain tokens on dev only)."
              }
            ]
          },
          "413": {
            "description": "`invalid_request`: The body is too large (a form body: 4 KB; JSON: 1 MB).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is too large (a form body: 4 KB; JSON: 1 MB)."
              }
            ]
          },
          "415": {
            "description": "`invalid_request`: The body is neither application/x-www-form-urlencoded nor application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is neither application/x-www-form-urlencoded nor application/json."
              }
            ]
          },
          "429": {
            "description": "`temporarily_unavailable`: Too many requests from this platform; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "Too many requests from this platform; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`server_error`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "server_error",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`temporarily_unavailable`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-14"
      }
    },
    "/v1/oauth/token": {
      "post": {
        "operationId": "postOauthToken",
        "summary": "Exchange an authorization code, or a refresh token, for tokens",
        "description": "The authorization code (with its PKCE verifier) or a refresh token, for an access token and a new refresh token, or `client_credentials` for the platform's own token. Send `client_id`, `client_assertion_type` and `client_assertion` in the body, and a DPoP proof header (RFC 9449): the tokens are bound to its key.\n\nThe access token lives 15 minutes; the refresh token 7 days and is single-use: each use returns a new one, and replaying a used one revokes the whole grant. An authorization code lives 60 seconds and is single-use.\n\nLPC-53: a refresh carries only the scopes that the connection carried, the person still agrees to and the client still has; it never adds one. When none are left it is refused with `invalid_scope`: connect the person again.\n\nEvery answer carries `Cache-Control: no-store` and `Pragma: no-cache`. The client authenticates with a client assertion signed by its request key (`private_key_jwt`, RFC 7523); there is no client secret (ADR 0148).",
        "tags": [
          "OAuth"
        ],
        "security": [
          {
            "clientAssertion": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "authorization_code"
                      },
                      "client_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "client_assertion_type": {
                        "type": "string",
                        "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                      },
                      "client_assertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "code": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "code_verifier": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._~-]{43,128}$"
                      },
                      "redirect_uri": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "grant_type",
                      "client_id",
                      "client_assertion_type",
                      "client_assertion",
                      "code",
                      "code_verifier",
                      "redirect_uri"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "refresh_token"
                      },
                      "client_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "client_assertion_type": {
                        "type": "string",
                        "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                      },
                      "client_assertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "refresh_token": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "grant_type",
                      "client_id",
                      "client_assertion_type",
                      "client_assertion",
                      "refresh_token"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "client_credentials"
                      },
                      "client_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "client_assertion_type": {
                        "type": "string",
                        "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                      },
                      "client_assertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "scope": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "grant_type",
                      "client_id",
                      "client_assertion_type",
                      "client_assertion"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "authorization_code"
                      },
                      "client_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "client_assertion_type": {
                        "type": "string",
                        "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                      },
                      "client_assertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "code": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "code_verifier": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._~-]{43,128}$"
                      },
                      "redirect_uri": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "grant_type",
                      "client_id",
                      "client_assertion_type",
                      "client_assertion",
                      "code",
                      "code_verifier",
                      "redirect_uri"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "refresh_token"
                      },
                      "client_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "client_assertion_type": {
                        "type": "string",
                        "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                      },
                      "client_assertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "refresh_token": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "grant_type",
                      "client_id",
                      "client_assertion_type",
                      "client_assertion",
                      "refresh_token"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "client_credentials"
                      },
                      "client_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "client_assertion_type": {
                        "type": "string",
                        "const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                      },
                      "client_assertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "scope": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "grant_type",
                      "client_id",
                      "client_assertion_type",
                      "client_assertion"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tokens. ADR 0148: `token_type` is `DPoP` and the access token is bound to the key of the call's DPoP proof; `client_credentials` returns no refresh token and no connection.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string",
                      "description": "A signed JWT, sent as `Authorization: DPoP <token>` with a DPoP proof on every call (ADR 0148)."
                    },
                    "token_type": {
                      "type": "string",
                      "const": "DPoP"
                    },
                    "expires_in": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Seconds: 900."
                    },
                    "refresh_token": {
                      "description": "`lprt_` and 64 hex characters; none for client_credentials.",
                      "type": "string"
                    },
                    "scope": {
                      "type": "string",
                      "description": "The granted scopes, separated by spaces."
                    },
                    "connection_id": {
                      "description": "LPC-50: the connection these tokens belong to, the same across its refreshes. Keep it on your account and act on `consent.revoked` by it. Connecting the same person again ends the older connection.",
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "access_token",
                    "token_type",
                    "expires_in",
                    "scope",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "`invalid_request`: The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped.\n\n`unsupported_grant_type`: `grant_type` is not authorization_code, refresh_token or client_credentials.\n\n`invalid_grant`: The code is unknown, used, expired, for another client, redirect_uri or key (`dpop_jkt`), or fails PKCE; or (`code: CONNECTION_EXPIRED`, LPC-57) the connection is 180 days old and the person must approve again; or the refresh token is unknown, revoked, expired or replayed (which revokes the grant); or the person no longer exists; or (`code: ACCOUNT_EMAIL_MISMATCH`, LPC-50) the account that approved a pushed request no longer has its email.\n\n`invalid_scope`: LPC-53: a refresh whose connection is left with no scope the person still agrees to and the client still has.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body cannot be read, a form parameter appears twice, a field is missing or malformed, or (from 2027-04-11) a field the route does not know. Until 2027-04-11 an unknown field is logged and dropped."
              },
              {
                "code": "unsupported_grant_type",
                "when": "`grant_type` is not authorization_code, refresh_token or client_credentials."
              },
              {
                "code": "invalid_grant",
                "when": "The code is unknown, used, expired, for another client, redirect_uri or key (`dpop_jkt`), or fails PKCE; or (`code: CONNECTION_EXPIRED`, LPC-57) the connection is 180 days old and the person must approve again; or the refresh token is unknown, revoked, expired or replayed (which revokes the grant); or the person no longer exists; or (`code: ACCOUNT_EMAIL_MISMATCH`, LPC-50) the account that approved a pushed request no longer has its email."
              },
              {
                "code": "invalid_scope",
                "when": "LPC-53: a refresh whose connection is left with no scope the person still agrees to and the client still has."
              }
            ]
          },
          "401": {
            "description": "`invalid_client`: No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion.\n\n`invalid_grant`: The citizen's consent, or this connection, is no longer active.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_client",
                "when": "No client assertion, or one that is malformed, expired, used before or not signed by a request key in force of the client's platform; at the token endpoint also a DPoP proof that is missing, does not verify or names another platform. Or: The client is unknown or inactive, its platform may not hold tokens, or the client belongs to another platform than the request key that signed the assertion."
              },
              {
                "code": "invalid_grant",
                "when": "The citizen's consent, or this connection, is no longer active."
              }
            ]
          },
          "403": {
            "description": "`unauthorized_client`: The platform is not LIVE (a SANDBOX platform may exchange tokens on dev).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "unauthorized_client",
                "when": "The platform is not LIVE (a SANDBOX platform may exchange tokens on dev)."
              }
            ]
          },
          "413": {
            "description": "`invalid_request`: The body is too large (a form body: 4 KB; JSON: 1 MB).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is too large (a form body: 4 KB; JSON: 1 MB)."
              }
            ]
          },
          "415": {
            "description": "`invalid_request`: The body is neither application/x-www-form-urlencoded nor application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "invalid_request",
                "when": "The body is neither application/x-www-form-urlencoded nor application/json."
              }
            ]
          },
          "429": {
            "description": "`temporarily_unavailable`: Too many requests from this platform; slow down and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "Too many requests from this platform; slow down and retry."
              }
            ]
          },
          "500": {
            "description": "`server_error`: Something failed on our side; the log holds the detail under the requestId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "server_error",
                "when": "Something failed on our side; the log holds the detail under the requestId."
              }
            ]
          },
          "503": {
            "description": "`temporarily_unavailable`: This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset).\n\n`server_error`: Signing is unavailable for a moment; retry. A code used in that attempt cannot be used again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "x-error-codes": [
              {
                "code": "temporarily_unavailable",
                "when": "This copy is not set up for request keys (LP_PUBLIC_BASE_URL unset)."
              },
              {
                "code": "server_error",
                "when": "Signing is unavailable for a moment; retry. A code used in that attempt cannot be used again."
              }
            ]
          }
        },
        "x-documented": true,
        "x-reviewed": "2026-10-28"
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Every refusal (SRF-39): a stable code, a message for people, and the request id to quote.",
        "required": [
          "success",
          "error"
        ],
        "additionalProperties": false,
        "properties": {
          "success": {
            "const": false
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable; listed per operation and in docs/reference/errors.md."
              },
              "message": {
                "type": "string"
              },
              "details": {
                "description": "Per-field problems for VALIDATION_ERROR and UNKNOWN_FIELD; absent otherwise."
              },
              "requestId": {
                "type": "string"
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "description": "Set by the API's error handler; absent on a refusal a route writes by hand (the SES callback)."
              }
            }
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "description": "An RFC 9457 problem document (`application/problem+json`): the NAPR channel's refusals.",
        "required": [
          "type",
          "title",
          "status"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "`https://sakartvelo.girnaartech.com/problems/<slug>`; the slug is listed per operation."
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string",
            "description": "The request's path."
          },
          "requestId": {
            "type": "string"
          }
        }
      },
      "OAuthError": {
        "type": "object",
        "description": "The standard OAuth error (RFC 6749 §5.2), with the request id to quote.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "error_description": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "requestKey": {
        "type": "http",
        "scheme": "DPoP",
        "description": "ADR 0148 — the platform's own request key (ES256 or EdDSA), whose public half the registry holds. Every call sends `Authorization: DPoP <access token>` and a `DPoP` header: a proof (RFC 9449) signed with the key, made for this one method and URL, within 60 s, used once, carrying the token's SHA-256 (`ath`). On the platform's own calls the token is its client-credentials token (`clientAssertion`); on a call for a person it is that person's token (`citizenGrant`), bound to the same key. No X-API-Key."
      },
      "clientAssertion": {
        "type": "oauth2",
        "description": "ADR 0148 — at PAR, token, introspect and revoke the platform proves it is its OAuth client with a client assertion (RFC 7523, `private_key_jwt`) signed with its request key: `client_id`, `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer` and `client_assertion` (`iss` = `sub` = the client id, `aud` = the API's origin, `exp` at most 60 s ahead, a one-use `jti`). The token endpoint also takes a DPoP proof, and binds the tokens to its key; `grant_type=client_credentials` there gives the platform its own token. No client secret.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api-dev.sakartvelo.cc/v1/oauth/token",
            "scopes": {}
          }
        }
      },
      "citizenGrant": {
        "type": "oauth2",
        "description": "The access token a person granted this platform, from the authorization code flow with PKCE (pushed with PAR), valid only for its scopes. It is bound to the platform's request key and sent as `Authorization: DPoP <token>` with a proof carrying its hash (`requestKey`).",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://dev.sakartvelo.cc/oauth/consent",
            "tokenUrl": "https://api-dev.sakartvelo.cc/v1/oauth/token",
            "refreshUrl": "https://api-dev.sakartvelo.cc/v1/oauth/token",
            "scopes": {
              "listings:write": "Prepare property listings for you to sign",
              "trades:write": "Prepare trades for you to approve",
              "identity:introspect": "Check your verification status",
              "tokenisation:apply": "Look up your property and apply to NAPR, from this platform, to tokenise it"
            }
          }
        }
      }
    }
  }
}
