Let the exchange read you (pull)
On the pull lane you serve two JSON documents at https addresses, and the exchange reads them. You open no connection and keep no session. Use pull when you cannot keep a WebSocket open, or when you want one document for text, image and speech models.
On push, your software opens a WebSocket to the exchange and sends quotes. On pull, the exchange reads your document every 5 minutes and your offer list every 30 seconds, and it rests your offers. On both lanes the exchange sends each awarded job to your dispatch address. See Send quotes over a WebSocket (push) for the other lane.
Facts
| Question | Answer |
|---|---|
| Who opens the connection? | The exchange, to your server. |
| What do you serve? | A provider document, an offer list, and a dispatch address that takes jobs. |
| How often does it read? | The offer list every 30 seconds and the document every 5 minutes, each with 20 percent jitter. You can ask for a read now: 1 request in 10 seconds, 60 in an hour. |
| What keeps an offer alive? | A higher revision in the offer list before the expires_at of the entry. |
| What if a read fails? | The offer rests while the last good list read is younger than 3 list periods and the last good document read is younger than 3 document periods. |
| How do jobs authenticate? | The exchange sends Authorization: Bearer <dispatch token>. The console makes the token. |
| What waits for a person? | A new dispatch address, offer list address, dialect or key waits for you. A new model waits for an operator. |
| What does the exchange ask for? | Public keys only. It never asks for a private key. |
| Where do you act? | In the console, on the Delivery page, Pull tab. These actions need a console session. An API key or a CLI token does not work. |
Set it up
- Register the provider and its deployments. The deployments in your document must match the deployments that you register.
- Serve the document, the offer list and a dispatch address over https.
- In the console, paste the document and the offer list in Check a document. The tool runs the checks of the exchange. It reads no network and stores nothing.
- Enter the https address of the document on the Pull tab.
- Make a dispatch token and set it in your service.
- Declare the
pullprotocol. After that, the exchange refuses a WebSocket login of this provider. Declarepushagain to go back. - Select Read now to ask for a read at once.
The exchange trusts the first document that it reads from your address, because you chose the address. A later change to the address, the offer list address or the dialect waits in the Review queue until you release it. A new model waits for an operator. A price, is_ready and a removed model apply at once.
The provider document
The document says what you serve and where jobs go. It states no price.
{
"version": 1,
"keys": [
{
"id": "2026-11",
"algorithm": "ed25519",
"public_key": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8="
}
],
"dialect": "openai",
"dispatch_url": "https://api.example-lab.test/v1",
"offers_url": "https://api.example-lab.test/offers.json",
"models": [
{
"deployment_name": "llama-70b-fp8",
"model": "llama-3.3-70b-instruct",
"precision": "fp8",
"region": "us-east",
"max_input_tokens": 131072,
"max_output_tokens": 16384
}
]
}
| Field | Meaning |
|---|---|
version |
The number 1. |
keys |
At least one Ed25519 public key in standard base64 (32 bytes). Each key has an id, and can have not_before and not_after. |
dialect |
How the exchange sends a job: openai (your API is OpenAI-compatible), anthropic (your API is a Messages API) or liquid (the job format in Serve and get paid). |
dispatch_url |
The https address that takes jobs. |
offers_url |
The https address of the offer list. |
models |
The deployments. Each has deployment_name, model, precision, region and max_input_tokens. It can also have job_kind, max_output_tokens, modalities, supported_features, is_ready and deprecation_date. |
list_version |
Optional. A name for the list of models. It changes when the list changes. |
Do not put a secret in the document. A fault in one model refuses that model only. A fault in the keys, the dialect or an address refuses the whole document. Check a document names each fault with a code and a field.
The offer list
The offer list says what changes often: the price, the revision and the end of each offer.
{
"version": 1,
"list_version": "42",
"offers": [
{
"deployment_name": "llama-70b-fp8",
"revision": 7,
"expires_at": "2026-11-29T12:10:00Z",
"pricing": [
{ "billable": "input.text", "unit": "mtok", "usd": 0.6 },
{ "billable": "output.text", "unit": "mtok", "usd": 0.9 }
],
"retention_policy_supported": ["none"]
}
]
}
deployment_namemust name a model in the document.revisionmust rise each time the entry changes. The exchange ignores an entry whose revision is not higher than the one that rests.expires_atis when the offer ends. To keep the offer, serve a higher revision with a laterexpires_atbefore it passes.pricingis the price table. Quote a media model explains the lines for images, speech and video.- An entry with no
retention_policy_supportedis refused. - A new
list_versiontells the exchange that the list changed. AnswerIf-None-Matchwith304when nothing changed.
A fault in the whole list refuses the list. A fault in one entry refuses that entry only, and the last good revision of that deployment stays. The Pull tab shows each refusal with its code and field.
The dispatch address
The exchange sends each awarded job to dispatch_url as a POST, with the award id as the idempotency key. The path and the body follow the dialect:
| Dialect | Route |
|---|---|
openai |
{dispatch_url}/chat/completions and the routes in Sell with an OpenAI-compatible API |
anthropic |
{dispatch_url}/messages, see Sell with an Anthropic API |
liquid |
The job format in Serve and get paid |
If your API is OpenAI-compatible, use openai. You then serve no job format, and the exchange calls your API directly. anthropic serves chat only. Use liquid for video and for jobs that the other dialects do not carry.
Answer a repeated award id with the same job, not a second job. A deadline that you miss does not change what the buyer pays, and the exchange marks your deployment slow.
Dispatch tokens
The exchange sends a token with each job, as Authorization: Bearer. Check it in your service. The console makes the token and shows it once, as it does for an API key. A provider has at most two live tokens. To rotate a token:
- Make a second token.
- Set it in your service next to the first token.
- Revoke the first token.
The exchange sends the older live token until you revoke it.
Register your public keys
The document lists your public keys. You can also register them in the console, in the Keys card of the Pull tab. The exchange then pins them. You keep the private key. The exchange never asks for it.
Make a key pair on your own machine. The second command prints the public key in base64.
openssl genpkey -algorithm ed25519 -out provider-key.pem
openssl pkey -in provider-key.pem -pubout -outform DER | tail -c 32 | base64
Give each key a name that is unique for your provider, such as 2026-11. The name has 1 to 64 letters, digits, dots, underscores or hyphens. A key can have a start time and an end time.
- With no registered key, the exchange takes the keys of your document.
- After you register one key, the exchange holds each other key of your document. Each held key appears in the review queue as a new key. Release it to register it, or refuse it.
- You can add the first key with no wait. A later key must start at least 24 hours from now, so that you can set it in your service first.
- You can have 10 live keys. A revoked key name is not used again.
- The exchange refuses to revoke the last valid key. The card warns while only one key is valid. To rotate, add the new key, wait for it to start, set it in your service, and then revoke the old key.
- The exchange does not track when you last signed with a key. Revoke the old key when your service no longer uses it.
Sign your documents
After you register a key, you must sign the document and the offer list. The exchange checks each body with your registered keys. It does not use the keys that the document lists. A read fails if the body has no signature, has a wrong signature, or comes from a key that is not registered or not valid now. The last good read stays in force, and your offers end at their expiry. A provider with no registered key signs nothing.
Send the signature in the header x-architect-body-signature, with the value <key name>:<signature>. The signature is Ed25519 in base64url with no padding. It covers these bytes, in order:
- the line
architect-pull-body-v1 - the host in lower case, with the port if the address has one
- the path with the query
- the body exactly as you serve it
Each of the first three lines ends with \n. The signature covers the address, so the signature of the document is not valid for the offer list.
To try it in a shell:
body=document.json
{ printf 'architect-pull-body-v1\napi.example-lab.test\n/document.json\n'; cat "$body"; } > signed-bytes
openssl pkeyutl -sign -inkey provider-key.pem -rawin -in signed-bytes -out sig.bin
openssl base64 -A -in sig.bin | tr '+/' '-_' | tr -d '='
The command needs OpenSSL 3 or later. Put the result after 2026-11: in the header.
Check who reads you
The exchange can sign each GET that it sends to your document and your offer list with Ed25519. Use this check when a gateway is in front of your application and you cannot end mutual TLS there. The exchange signs only when its operator turns signing on. A signed request has four headers:
| Header | Value |
|---|---|
x-architect-key-id |
The id of the key in the published set |
x-architect-timestamp |
Unix seconds |
x-architect-nonce |
16 random bytes, base64url with no padding |
x-architect-signature |
The signature, base64url with no padding |
The signature covers seven lines, joined with \n: architect-pull-request-v1, the method, the host, the path and query, the time stamp, the nonce and the key id. Use the host that you registered, from your own configuration. Do not use the Host header, because a gateway can rewrite it.
Fetch the keys from GET /v1/exchange/pull-keys on the exchange. The answer has no secret. You can keep it for 5 minutes. A new key is listed at least 24 hours before its first use. An old key leaves one hour after its last use. Fetch the set again when a request names a key that you do not know. Refuse a key that the set does not list.
Refuse a request with 401 in these cases:
- The time stamp is more than 60 seconds from your clock.
- The signature does not match.
- You saw the nonce before. Remember each nonce for 120 seconds, and check the signature before you remember the nonce.
The exchange does not use your registered keys for mutual TLS.
What you can do in the console
On the Pull tab of the Delivery page, a person with READ access can see each item. A person with MANAGE access can change it.
| Item | What you can do |
|---|---|
| Address | Set, replace or remove the address of the document. Removing it puts a pull provider on push. |
| Reads | Pause or resume the reads. Ask for a read now. The address stays. |
| Check a document | Run a document and an offer list through the checks of the exchange. Nothing is stored. |
| Refusals | See what the last read refused, with the code and the field. |
| Dispatch tokens | Make or revoke a token. At most two tokens are live. |
| Keys | Register or revoke a public key. At most ten keys are live. |
| Review queue | Release or refuse a held change. |
| Protocol | Declare push or pull. pull needs an address. |
A held change does not withdraw the offers that rest.
The exchange reads a body. If you registered a key, the body must carry a valid signature, or the read fails and the last good read stays. Then the exchange compares the document with the values that you confirmed. A new address, dialect or key waits for you. A new model waits for an operator. A price, is_ready and a removed model apply at once.