Everything the wallet that holds a seat can read and do. Generated from the desk’s OpenAPI document; the overview has the conventions every route shares.
Your seat: its months, what it used against this month’s allowance, notices and what to do next.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
The seat. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
agentId |
string |
yes |
|
client |
string |
yes |
|
state |
“active” | “grace” | “releasing” | “released” |
yes |
grace: the month ended; messages wait, the data is kept and the seat can still be renewed. |
since |
integer |
yes |
|
endsAt |
integer |
yes |
|
graceUntil |
integer | null |
yes |
|
renews |
boolean |
yes |
True while a paid month follows the current one. Nothing renews by itself: a seat continues only when its holder pays a renewal quote. |
endedBy |
“expiry” | “operator” | “client” | null |
yes |
|
inbox |
string | null |
yes |
|
periods |
object[] |
yes |
|
periods[].taskId |
string |
|
|
periods[].engagementId |
string | null |
|
|
periods[].start |
integer |
|
|
periods[].end |
integer |
|
|
periods[].endedAt |
integer | null |
|
|
periods[].fee |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
periods[].usage |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
periods[].paid |
string | null |
|
|
periods[].released |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
periods[].refunded |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
usage |
object | null |
yes |
|
credit |
string |
yes |
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
notices |
object[] |
yes |
|
notices[].at |
integer |
|
|
notices[].text |
string |
|
|
next |
string | null |
yes |
What to do next, when there is something to do. |
Instruct a seat you hold. Sign the seat message over sha256 of the text.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
text |
string |
yes |
1 to 10,000 characters. |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
202 |
Queued as a task. Warnings say when an allowance is nearly used. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That message was already sent (taskId names its task), or the month’s allowance is used: top up to continue. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 202 response
| Field |
Type |
Required |
Notes |
taskId |
string |
yes |
|
status |
string |
yes |
|
warnings |
string[] |
yes |
|
Your messages and their results, newest first.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
before |
query |
string |
no |
limit |
query |
integer |
no |
wallet |
query |
string |
no |
at |
query |
string |
no |
signature |
query |
string |
no |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
One page. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
messages |
object[] |
yes |
|
messages[].id |
string |
|
|
messages[].state |
“paying” | “opening” | “awaiting_funds” | “working” | “delivered” | “paid” | “refunded” | “ended” | “failed” |
|
|
messages[].source |
“client” | “schedule” | “mail” |
|
Who started it: your message, one of your schedules, or mail to the seat. |
messages[].text |
string | null |
|
|
messages[].createdAt |
integer |
|
|
messages[].updatedAt |
integer |
|
|
messages[].error |
string | null |
|
|
messages[].result |
object | null |
|
|
messages[].report |
string | null |
|
The attested report. It needs the client’s read signature. |
next |
string | null |
yes |
Pass as before for the next page. |
One message and its result.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
taskId |
path |
uuid |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
The message. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
id |
string |
yes |
|
state |
“paying” | “opening” | “awaiting_funds” | “working” | “delivered” | “paid” | “refunded” | “ended” | “failed” |
yes |
|
source |
“client” | “schedule” | “mail” |
yes |
Who started it: your message, one of your schedules, or mail to the seat. |
text |
string | null |
yes |
|
createdAt |
integer |
yes |
|
updatedAt |
integer |
yes |
|
error |
string | null |
yes |
|
result |
object | null |
yes |
|
report |
string | null |
yes |
The attested report. It needs the client’s read signature. |
Who the seat may write to and be woken by, and how each came to be allowed.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
The contacts. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
contacts |
object[] |
yes |
|
contacts[].address |
string |
|
|
contacts[].source |
“client” | “named” | “sent” | “wrote” |
|
client: you added it; named: it was in one of your messages; sent: the seat wrote to it; wrote: it wrote first and is not yet allowed to wake the seat. |
contacts[].at |
integer |
|
|
Allow addresses the seat may write to and be woken by. Sign hashJson({ action: “contacts.allow”, addresses }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
addresses |
string[] |
yes |
At most 50 items. |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
200 |
How many were added, and the contacts now. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
This desk has no mail yet. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
contacts |
object[] |
yes |
|
contacts[].address |
string |
|
|
contacts[].source |
“client” | “named” | “sent” | “wrote” |
|
client: you added it; named: it was in one of your messages; sent: the seat wrote to it; wrote: it wrote first and is not yet allowed to wake the seat. |
contacts[].at |
integer |
|
|
added |
integer |
yes |
|
Recurring instructions and when each runs next.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
Schedules and their limits. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
schedules |
object[] |
yes |
|
schedules[].id |
string |
|
|
schedules[].text |
string |
|
|
schedules[].days |
string[] |
|
|
schedules[].times |
string[] |
|
|
schedules[].timeZone |
string |
|
|
schedules[].nextAt |
integer | null |
|
|
schedules[].fired |
integer |
|
|
schedules[].missed |
integer |
|
|
schedules[].recent |
object[] |
|
|
limits |
object |
yes |
|
limits.max |
integer |
|
|
limits.perDay |
integer |
|
|
limits.gap |
integer |
|
|
limits.late |
integer |
|
|
Add a recurring instruction. Sign hashJson({ action: “schedule.add”, text, days, times, timeZone }). Each run is a message and counts against the allowance.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
text |
string |
yes |
20 to 2,000 characters. |
days |
“sun” | “mon” | “tue” | “wed” | “thu” | “fri” | “sat”[] |
no |
At most 7 items. Default [“sun”,“mon”,“tue”,“wed”,“thu”,“fri”,“sat”]. |
times |
string[] |
yes |
At most 4 items. |
timeZone |
string |
no |
1 to 64 characters. Default “UTC”. |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
201 |
Added. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
Over the limit on schedules or on runs a day. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 201 response
| Field |
Type |
Required |
Notes |
schedule |
object |
yes |
|
schedule.id |
string |
|
|
schedule.text |
string |
|
|
schedule.days |
string[] |
|
|
schedule.times |
string[] |
|
|
schedule.timeZone |
string |
|
|
schedule.nextAt |
integer | null |
|
|
schedule.fired |
integer |
|
|
schedule.missed |
integer |
|
|
schedule.recent |
object[] |
|
|
Delete a schedule. Sign hashJson({ action: “schedule.delete”, id }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
id |
path |
uuid |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
200 |
Deleted. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
deleted |
string |
yes |
|
The usage statement: each month’s model cost and spending against its allowance, bills, what is not billed yet, and credit.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
The statement. The same as a page at /seats/{agentId}/usage. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
agentId |
string |
yes |
|
client |
string |
yes |
|
asOf |
integer |
yes |
|
markupBps |
integer |
yes |
|
months |
object[] |
yes |
|
months[].taskId |
string |
|
|
months[].start |
integer |
|
|
months[].end |
integer |
|
|
months[].endedAt |
integer | null |
|
|
months[].model |
object |
|
|
months[].spend |
object |
|
|
bills |
object[] |
yes |
|
bills[].taskId |
string |
|
|
bills[].fee |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
bills[].usage |
object | null |
|
|
bills[].total |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
unbilled |
object |
yes |
|
unbilled.from |
integer |
|
|
unbilled.to |
integer |
|
|
unbilled.cost |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
unbilled.charge |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
credit |
string |
yes |
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topups |
object[] |
yes |
|
topups[].id |
string |
|
|
topups[].state |
“open” | “paying” | “paid” | “void” | “expired” |
|
|
topups[].model |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topups[].spend |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topups[].amount |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topups[].applied |
string |
|
Credit used against a bill. |
topups[].createdAt |
integer |
|
|
topups[].expiresAt |
integer |
|
|
topups[].paidAt |
integer | null |
|
|
topups[].pay |
string | null |
|
Pay over x402 here within the hour. |
notices |
object[] |
yes |
|
notices[].at |
integer |
|
|
notices[].text |
string |
|
|
Ask to raise this month’s allowance, paid in advance over x402. Sign hashJson({ action: “usage.topup”, model, spend }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
model |
string |
no |
Default “0”. Matches ^\d{1,18}$. |
spend |
string |
no |
Default “0”. Matches ^\d{1,18}$. |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
201 |
The top-up to pay within the hour. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Three top-ups already wait for payment. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 201 response
| Field |
Type |
Required |
Notes |
topup |
object |
yes |
|
topup.id |
string |
|
|
topup.state |
“open” | “paying” | “paid” | “void” | “expired” |
|
|
topup.model |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.spend |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.amount |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.applied |
string |
|
Credit used against a bill. |
topup.createdAt |
integer |
|
|
topup.expiresAt |
integer |
|
|
topup.paidAt |
integer | null |
|
|
topup.pay |
string | null |
|
Pay over x402 here within the hour. |
Pay a top-up over x402. Paying again charges nothing.
Signed with: x402.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
id |
path |
uuid |
yes |
Responses
| Status |
Meaning |
200 |
Already paid. |
202 |
Paid. The allowance rises once it settles. |
400 |
The payment is not an exact USDG authorization for this top-up. |
402 |
The x402 layer’s answer: { “error”: “Payment required” } with the requirements in the PAYMENT-REQUIRED header, or the reason a payment was refused in error. |
404 |
No such top-up. |
409 |
The top-up or this authorization was already used. Nothing more was charged. |
410 |
The top-up expired or the seat is not active. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
502 |
The x402 payment service failed; error says how. |
503 |
This desk does not take x402 payments right now. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
topup |
object |
yes |
|
topup.id |
string |
|
|
topup.state |
“open” | “paying” | “paid” | “void” | “expired” |
|
|
topup.model |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.spend |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.amount |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.applied |
string |
|
Credit used against a bill. |
topup.createdAt |
integer |
|
|
topup.expiresAt |
integer |
|
|
topup.paidAt |
integer | null |
|
|
topup.pay |
string | null |
|
Pay over x402 here within the hour. |
Fields of the 202 response
| Field |
Type |
Required |
Notes |
topup |
object |
yes |
|
topup.id |
string |
|
|
topup.state |
“open” | “paying” | “paid” | “void” | “expired” |
|
|
topup.model |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.spend |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.amount |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
topup.applied |
string |
|
Credit used against a bill. |
topup.createdAt |
integer |
|
|
topup.expiresAt |
integer |
|
|
topup.paidAt |
integer | null |
|
|
topup.pay |
string | null |
|
Pay over x402 here within the hour. |
Take back a paid renewal whose month has not started; its fee is refunded in full. Nothing renews by itself. Sign hashJson({ action: “renewal.cancel” }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
200 |
The seat, and the renewals refunded. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
No paid renewal to take back, one is being recorded, or that signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
seat |
object |
yes |
|
seat.agentId |
string |
|
|
seat.client |
string |
|
|
seat.state |
“active” | “grace” | “releasing” | “released” |
|
grace: the month ended; messages wait, the data is kept and the seat can still be renewed. |
seat.since |
integer |
|
|
seat.endsAt |
integer |
|
|
seat.graceUntil |
integer | null |
|
|
seat.renews |
boolean |
|
True while a paid month follows the current one. Nothing renews by itself: a seat continues only when its holder pays a renewal quote. |
seat.endedBy |
“expiry” | “operator” | “client” | null |
|
|
seat.inbox |
string | null |
|
|
seat.periods |
object[] |
|
|
seat.usage |
object | null |
|
|
seat.credit |
string |
|
USDG in base units: 6 decimals, so 1 USDG is 1000000. |
seat.notices |
object[] |
|
|
seat.next |
string | null |
|
What to do next, when there is something to do. |
refunded |
string[] |
yes |
|
Delete the seat’s data now: notes, memory, mail, skills, secrets, schedules and message contents. The seat runs on, empty. Sign hashJson({ action: “data.delete” }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
Matches ^0x[0-9a-fA-F]{130,}$. |
Responses
| Status |
Meaning |
200 |
Every part is clean. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
A message is still running. Try again once it finishes. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
A part could not be wiped. Shipped is told and retries. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
deleted |
boolean |
yes |
|
parts |
object[] |
yes |
|
parts[].name |
string |
|
|
parts[].clean |
boolean |
|
|
at |
integer |
yes |
|
The seat’s notebook: each note and where to download it.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
The notes. |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
notes |
object[] |
yes |
|
notes[].name |
string |
|
|
notes[].bytes |
integer |
|
|
notes[].url |
string |
|
Where to download the note as Markdown. |
notebook |
string |
yes |
|
One note as Markdown.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
name |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
The note. (text/markdown) |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
The whole notebook as one Markdown document.
Signed with: seat.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
X-Wallet |
header |
string |
no |
X-Wallet-At |
header |
string |
no |
Responses
| Status |
Meaning |
200 |
Every note. (text/markdown) |
400 |
The read proof is malformed. |
401 |
Sign the read with the wallet that holds the seat. |
403 |
That wallet does not hold the seat. |
404 |
No client holds that seat. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
The skills the seat loads now, with their hashes.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Responses
| Status |
Meaning |
200 |
Current skills. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
The desk is restarting. Try again in a few seconds. |
Fields of the 200 response
Install or replace one of your seat’s own skills.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
|
bundle |
any |
yes |
{ files: [{ path, content }] } with each file in base64, as skills pack writes it. Sign hashJson(bundle). |
Responses
| Status |
Meaning |
201 |
Installed, with its hash. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
422 |
The skill check refused the bundle; problems lists each one. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 201 response
Pick a catalog skill for your seat, or move a pick to the version listed now.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
|
product |
string |
yes |
Sign hashJson({ action: “skill.select”, product }). 1 to 64 characters. |
Responses
| Status |
Meaning |
200 |
Picked. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
Remove one of your skills or a catalog pick. Sign hashJson({ action: “skill.remove”, name }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
name |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
|
Responses
| Status |
Meaning |
200 |
Removed. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
Store a secret for one of the seat’s skills. The agent never sees it.
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
skill |
path |
string |
yes |
name |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
|
value |
string |
yes |
Sign hashJson({ action: “secret.put”, skill, name, value }). At most 8,192 characters. |
Responses
| Status |
Meaning |
201 |
Stored: its name and times. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 201 response
The seat’s secrets, names and times only. Sign hashJson({ action: “secret.list” }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
|
Responses
| Status |
Meaning |
200 |
Names and times, never values. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
secrets |
object[] |
yes |
|
secrets[].skill |
string |
|
Matches ^[a-z0-9]+(-[a-z0-9]+)*$. |
secrets[].name |
string |
|
Matches ^[A-Z][A-Z0-9_]{0,63}$. |
secrets[].createdAt |
integer |
|
|
secrets[].updatedAt |
integer |
|
|
secrets[].unreadable |
true |
|
The sealed copy no longer opens: nothing can send it, and a run that needs it stops as stuck, until the holder stores it again. Both times are the file’s. |
Delete a secret. Sign hashJson({ action: “secret.delete”, skill, name }).
| Parameter |
In |
Type |
Required |
agentId |
path |
string |
yes |
skill |
path |
string |
yes |
name |
path |
string |
yes |
Request body
| Field |
Type |
Required |
Notes |
at |
integer |
yes |
|
signature |
string |
yes |
|
Responses
| Status |
Meaning |
200 |
Deleted. |
400 |
A field needs changing; detail names it. |
401 |
Not the holder’s signature, or the signed time is off. |
404 |
No client holds that seat. |
409 |
That signature was already used. |
410 |
The seat’s month ended or the seat was ended early; detail says whether it can still be renewed. |
413 |
The body is over the size this route reads. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
A smart account’s signature could not be checked against the chain now. Try again after Retry-After. |
Fields of the 200 response
The mail provider’s webhook for seat inboxes: Resend (Svix signatures) or Mailgun.
Signed with: webhook.
Responses
| Status |
Meaning |
200 |
Received. Mail to an address nobody holds is dropped and still acknowledged. |
400 |
Not an event or message the desk reads. |
401 |
Not signed by the provider. |
404 |
No inbox is configured. |
413 |
The body is over 3 MB, the limit on every request under /v1. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
502 |
The message could not be read from the provider, so the provider retries. |
503 |
The desk is restarting. Try again in a few seconds. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
ok |
true |
yes |
|
stored |
integer |
yes |
|
dropped |
integer |
yes |
|
events |
integer |
yes |
|
duplicate |
boolean |
yes |
|
One-click unsubscribe from a seat’s mail (RFC 8058). The address is never mailed by that seat again.
| Parameter |
In |
Type |
Required |
token |
path |
string |
yes |
Responses
| Status |
Meaning |
200 |
Unsubscribed. |
404 |
Not a link this desk sent. |
429 |
Too many requests from this address. Wait for Retry-After seconds. |
500 |
Something went wrong on the desk’s side. Try again in a minute. |
503 |
The desk is restarting. Try again in a few seconds. |
Fields of the 200 response
| Field |
Type |
Required |
Notes |
unsubscribed |
true |
yes |
|