Build · Reference
Catalog routes
Listed products and their skills, submissions and withdrawals. Generated from the desk’s OpenAPI document; the overview has the conventions every route shares.
GET /v1/catalog
Section titled “GET /v1/catalog”Listed products, in order of name. Placement is never sold.
Responses
| Status | Meaning |
|---|---|
200 |
The catalog. |
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
POST /v1/catalog/submissions
Section titled “POST /v1/catalog/submissions”Submit a product, or an update, signed by its owner wallet. Every submission is reviewed.
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
at |
integer |
yes | |
signature |
string |
yes | |
product |
any |
yes | |
bundle |
any |
yes |
Responses
| Status | Meaning |
|---|---|
202 |
Queued for review. |
400 |
A field needs changing. |
401 |
Not the owner’s signature. |
403 |
Another wallet lists a product under that id. |
409 |
The statement was already used. |
413 |
The body is over the size this route reads. |
422 |
The product or its skill was refused; problems lists each reason. |
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 202 response
GET /v1/catalog/submissions/{id}
Section titled “GET /v1/catalog/submissions/{id}”A submission’s review state, and the reason when it was rejected.
| Parameter | In | Type | Required |
|---|---|---|---|
id |
path | uuid |
yes |
Responses
| Status | Meaning |
|---|---|
200 |
The submission. |
404 |
No submission has that id. |
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
GET /v1/catalog/{id}
Section titled “GET /v1/catalog/{id}”A listed product with every version and its hash, and the payees whose payments count toward it.
| Parameter | In | Type | Required |
|---|---|---|---|
id |
path | string |
yes |
Responses
| Status | Meaning |
|---|---|
200 |
The product. |
404 |
Nothing is listed under that id. |
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
GET /v1/catalog/{id}/bundle
Section titled “GET /v1/catalog/{id}/bundle”A listed version’s files, to check against its hash.
| Parameter | In | Type | Required |
|---|---|---|---|
id |
path | string |
yes |
version |
query | string |
no |
Responses
| Status | Meaning |
|---|---|
200 |
The bundle. |
404 |
No listed version. |
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
POST /v1/catalog/{id}/withdraw
Section titled “POST /v1/catalog/{id}/withdraw”Withdraw a product, signed by its owner over hashJson({ action: “catalog.withdraw”, product }).
| Parameter | In | Type | Required |
|---|---|---|---|
id |
path | string |
yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
at |
integer |
yes | |
signature |
string |
yes |
Responses
| Status | Meaning |
|---|---|
200 |
Withdrawn. |
400 |
A field needs changing. |
401 |
Not the owner’s signature. |
403 |
Another wallet owns the product. |
404 |
Nothing is listed under that id. |
409 |
The statement was already used. |
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 |
The desk is restarting. Try again in a few seconds. |
Fields of the 200 response
POST /v1/catalog/{id}/payees/{payee}
Section titled “POST /v1/catalog/{id}/payees/{payee}”As a payee wallet, sign that payments to it count toward the product its owner lists. EIP-712 Payee { product, owner, desk, deadline }, domain { name: “Shipped Agents”, version: “1”, chainId }; the deadline is at most 7 days ahead.
| Parameter | In | Type | Required |
|---|---|---|---|
id |
path | string |
yes |
payee |
path | address |
yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
owner |
string |
yes | The wallet that lists the product. |
deadline |
integer |
yes | Unix seconds: the last second the desk takes the statement. |
signature |
string |
yes | The payee wallet’s EIP-712 signature. |
Responses
| Status | Meaning |
|---|---|
200 |
Payments to the wallet count toward the product. |
400 |
A field needs changing, or the deadline is past or too far ahead. |
401 |
Not the payee wallet’s signature over this statement. |
404 |
No submission of the product by that owner names the wallet. |
409 |
The statement was already used, or payments to the wallet count toward another product: release it there first. |
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 |
The desk is restarting. Try again in a few seconds. |
Fields of the 200 response
POST /v1/catalog/{id}/payees/{payee}/release
Section titled “POST /v1/catalog/{id}/payees/{payee}/release”As a payee wallet, sign that payments to it do not count toward the product. EIP-712 PayeeRelease { product, desk, deadline }.
| Parameter | In | Type | Required |
|---|---|---|---|
id |
path | string |
yes |
payee |
path | address |
yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
deadline |
integer |
yes | Unix seconds: the last second the desk takes the statement. |
signature |
string |
yes | The payee wallet’s EIP-712 signature. |
Responses
| Status | Meaning |
|---|---|
200 |
Payments to the wallet no longer count toward the product. |
400 |
A field needs changing, or the deadline is past or too far ahead. |
401 |
Not the payee wallet’s signature over this statement. |
404 |
No submission of the product names the wallet. |
409 |
The statement was already used. |
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 |
The desk is restarting. Try again in a few seconds. |