Klineo/Docs
Open app ↗

API reference

Treasury custody and project control

Paths on this page are relative to /api/liquidity-studio/v2. Authentication and required headers vary by operation.

API reference overview · OpenAPI download

Operations on this page#

Method Path Operation
GET /treasury/custody-evidence listTreasuryCustodyEvidence
POST /treasury/custody-evidence admitTreasuryCustodyEvidence
GET /treasury/custody-evidence/{evidenceId} getTreasuryCustodyEvidence
POST /treasury/project-control/challenges issueProjectControlChallenge
GET /treasury/project-control/challenges/{nonce} getProjectControlChallenge
POST /treasury/project-control/proofs acceptProjectControlProof

listTreasuryCustodyEvidence#

GET /treasury/custody-evidence

Operation ID: listTreasuryCustodyEvidence

Authentication: __Host-klineo_session cookie (sessionCookie)

Interactive current workspace membership required. Evidence is a historical finalized balance observation, not current spendable funds or financial permission. New admission requires separately provisioned current project/custody and provider authorities and configured independent RPC verification. Signed evidenceId is the tenant-scoped exact-content replay identity; callers cannot supply verification receipts.

Parameters#

Name Location Required Type Description and constraints
x-klineo-organization-id header Yes string —
cursor query No string Pattern: ^[a-zA-Z0-9][a-zA-Z0-9:_-]{2,159}$
limit query No integer Default: 20; Minimum: 1; Maximum: 20

Responses#

Status Description Content type and schema
200 Authorized historical custody evidence; spendability is not established. application/json: object
400 Invalid closed request. application/json: object
401 Interactive session and recent authentication for admission required. application/json: object
403 Current workspace role required. application/json: object
404 Evidence unavailable in this workspace. application/json: object
429 Request limit exceeded. application/json: object
503 Storage or verification unavailable. application/json: object

200 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

200 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes TreasuryEvidenceList —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

400 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

400 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

401 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

401 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

403 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

403 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

404 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

404 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

429 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

429 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

503 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

503 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

admitTreasuryCustodyEvidence#

POST /treasury/custody-evidence

Operation ID: admitTreasuryCustodyEvidence

Authentication: __Host-klineo_session cookie (sessionCookie)

Interactive current workspace membership required. Evidence is a historical finalized balance observation, not current spendable funds or financial permission. New admission requires separately provisioned current project/custody and provider authorities and configured independent RPC verification. Signed evidenceId is the tenant-scoped exact-content replay identity; callers cannot supply verification receipts.

Parameters#

Name Location Required Type Description and constraints
x-klineo-organization-id header Yes string —

Request body#

Required: yes.

application/json

SignedTreasuryEvidence

Responses#

Status Description Content type and schema
200 Authorized historical custody evidence; spendability is not established. application/json: object
201 Authorized historical custody evidence; spendability is not established. application/json: object
400 Invalid closed request. application/json: object
401 Interactive session and recent authentication for admission required. application/json: object
403 Current workspace role required. application/json: object
404 Evidence unavailable in this workspace. application/json: object
409 Evidence identity already binds different signed content. application/json: object
412 Current authority changed or expired. application/json: object
429 Request limit exceeded. application/json: object
503 Storage or verification unavailable. application/json: object

200 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

200 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes TreasuryEvidenceWrite —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

201 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

201 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes TreasuryEvidenceWrite —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

400 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

400 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

401 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

401 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

403 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

403 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

404 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

404 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

409 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

409 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

412 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

412 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

429 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

429 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

503 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

503 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

getTreasuryCustodyEvidence#

GET /treasury/custody-evidence/{evidenceId}

Operation ID: getTreasuryCustodyEvidence

Authentication: __Host-klineo_session cookie (sessionCookie)

Interactive current workspace membership required. Evidence is a historical finalized balance observation, not current spendable funds or financial permission. New admission requires separately provisioned current project/custody and provider authorities and configured independent RPC verification. Signed evidenceId is the tenant-scoped exact-content replay identity; callers cannot supply verification receipts.

Parameters#

Name Location Required Type Description and constraints
x-klineo-organization-id header Yes string —
evidenceId path Yes string Pattern: ^[a-zA-Z0-9][a-zA-Z0-9:_-]{2,159}$

Responses#

Status Description Content type and schema
200 Authorized historical custody evidence; spendability is not established. application/json: object
400 Invalid closed request. application/json: object
401 Interactive session and recent authentication for admission required. application/json: object
403 Current workspace role required. application/json: object
404 Evidence unavailable in this workspace. application/json: object
429 Request limit exceeded. application/json: object
503 Storage or verification unavailable. application/json: object

200 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

200 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes PersistedTreasuryEvidence —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

400 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

400 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

401 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

401 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

403 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

403 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

404 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

404 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

429 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

429 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

503 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

503 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

issueProjectControlChallenge#

POST /treasury/project-control/challenges

Operation ID: issueProjectControlChallenge

Authentication: __Host-klineo_session cookie (sessionCookie)

Current interactive owner or treasury administrator only. Mutations require recent authentication. The server verifies a separately provisioned identity publisher and both controller/custody signatures against fresh canonical finalized chain state. Challenge nonce, actor and source identities are server bound. Acceptance consumes the nonce atomically and rechecks current authority. No spending, public disclosure, or paid entitlement is granted.

Parameters#

Name Location Required Type Description and constraints
x-klineo-organization-id header Yes string —
Idempotency-Key header Yes string Pattern: ^[\x21-\x7E]+$; Min length: 8; Max length: 200

Request body#

Required: yes.

application/json

ProjectControlIssue

Responses#

Status Description Content type and schema
200 Private actor-bound proof record. Grants no financial or publication authority. application/json: object
201 Private actor-bound proof record. Grants no financial or publication authority. application/json: object
400 Invalid canonical input or required request key. application/json: object
401 Interactive session and recent authentication for mutations required. application/json: object
403 Current workspace treasury role required. application/json: object
404 Actor-bound challenge unavailable. application/json: object
409 Request key or consumed nonce binds different content. application/json: object
412 Challenge expired or current project/publisher authority changed. application/json: object
429 Request limit exceeded. application/json: object
503 Verification or storage unavailable. application/json: object

200 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

200 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes ProjectControlChallengeWrite —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

201 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

201 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes ProjectControlChallengeWrite —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

400 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

400 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

401 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

401 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

403 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

403 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

404 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

404 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

409 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

409 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

412 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

412 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

429 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

429 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

503 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

503 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

getProjectControlChallenge#

GET /treasury/project-control/challenges/{nonce}

Operation ID: getProjectControlChallenge

Authentication: __Host-klineo_session cookie (sessionCookie)

Current interactive owner or treasury administrator only. Mutations require recent authentication. The server verifies a separately provisioned identity publisher and both controller/custody signatures against fresh canonical finalized chain state. Challenge nonce, actor and source identities are server bound. Acceptance consumes the nonce atomically and rechecks current authority. No spending, public disclosure, or paid entitlement is granted.

Parameters#

Name Location Required Type Description and constraints
x-klineo-organization-id header Yes string —
nonce path Yes string Pattern: ^0x[0-9a-f]{64}$

Responses#

Status Description Content type and schema
200 Private actor-bound proof record. Grants no financial or publication authority. application/json: object
400 Invalid canonical input or required request key. application/json: object
401 Interactive session and recent authentication for mutations required. application/json: object
403 Current workspace treasury role required. application/json: object
404 Actor-bound challenge unavailable. application/json: object
409 Request key or consumed nonce binds different content. application/json: object
412 Challenge expired or current project/publisher authority changed. application/json: object
429 Request limit exceeded. application/json: object
503 Verification or storage unavailable. application/json: object

200 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

200 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes PersistedProjectControlChallenge —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

400 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

400 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

401 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

401 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

403 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

403 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

404 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

404 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

409 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

409 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

412 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

412 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

429 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

429 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

503 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

503 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

acceptProjectControlProof#

POST /treasury/project-control/proofs

Operation ID: acceptProjectControlProof

Authentication: __Host-klineo_session cookie (sessionCookie)

Current interactive owner or treasury administrator only. Mutations require recent authentication. The server verifies a separately provisioned identity publisher and both controller/custody signatures against fresh canonical finalized chain state. Challenge nonce, actor and source identities are server bound. Acceptance consumes the nonce atomically and rechecks current authority. No spending, public disclosure, or paid entitlement is granted.

Parameters#

Name Location Required Type Description and constraints
x-klineo-organization-id header Yes string —

Request body#

Required: yes.

application/json

ProjectControlProof

Responses#

Status Description Content type and schema
200 Private actor-bound proof record. Grants no financial or publication authority. application/json: object
201 Private actor-bound proof record. Grants no financial or publication authority. application/json: object
400 Invalid canonical input or required request key. application/json: object
401 Interactive session and recent authentication for mutations required. application/json: object
403 Current workspace treasury role required. application/json: object
404 Actor-bound challenge unavailable. application/json: object
409 Request key or consumed nonce binds different content. application/json: object
412 Challenge expired or current project/publisher authority changed. application/json: object
429 Request limit exceeded. application/json: object
503 Verification or storage unavailable. application/json: object

200 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

200 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes ProjectControlAcceptance —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

201 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —
ETag Yes string Pattern: ^"0x[0-9a-f]{64}"$

201 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
data Yes ProjectControlAcceptance —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

400 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

400 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

401 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

401 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

403 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

403 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

404 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

404 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

409 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

409 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

412 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

412 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

429 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

429 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.

503 response headers

Header Required Type Description and constraints
Cache-Control Yes Constant private, no-store —

503 application/json body

object — Additional properties rejected

Field Required at this level Type Description and constraints
error Yes ApiError —

Nested required fields apply when their parent object or matching union branch is present. Named types link to their complete schema.