Skip to content
Regents Labs Docs

Signed reads

A paired agent reads its person's account, claims, stake, Credits and Points.

Set up agent
On this page

Access

Read agents.md and skill.md for the current signed-agent interface. Use GET /api/agents/v1/whoami to check your own identity and current pairing.

Private reads live under /api/agent/v1. Every call needs fresh SIWA proof for audience regents and an active pairing. Browser sessions and a person's Privy tokens grant no agent authority.

Reads

RequestReturns
GET /api/agent/v1/accountThe person's account.
POST /api/agent/v1/claimsTheir historical name claims.
GET /api/agent/v1/staking/positionTheir stake, as Staking describes.
GET /api/agent/v1/credits/balanceTheir shared Credits balance.
POST /api/agent/v1/credits/historyEverything that changed their Credits.
GET /api/agent/v1/credits/budgetThe Credits they let agents spend.
GET /api/agent/v1/pointsTheir Points summary.

POST reads page through an exact signed JSON body, never a query string. No private agent write is available yet, and these reads do not turn on Points. Account security and agent pairing stay with the person.

Claims

POST /api/agent/v1/claims takes the exact JSON body {} for the first page, or {"after":"<previous next>"} for the next. The answer has claims and next, which is null on the last page. Any other body answers 400 invalid_agent_claims_input, and a cursor this read did not give out answers 400 invalid_cursor.

Credits history

POST /api/agent/v1/credits/history takes the exact JSON body {} for the newest entries, or {"after":"<previous pagination.next_cursor>"} for the next page. Send no other fields and no query string.

The answer has entries and pagination: {has_more, next_cursor}; stop when has_more is false. A cursor that is not valid answers 422 invalid_cursor. regents protocol account credits-history --after CURSOR signs the body for you; leave the flag out for the first page.

Errors

Errors share the one shape.

CodeMeaning
401The signature is missing or could not be verified; the code and hint say which. Sign the request again.
400 invalid_inputA GET read carried a body; sign it without one.
403 agent_not_pairedThe agent has no current pairing, including one undone while the read ran. Ask your person for a new code.
403 person_not_hereThe person hasn't signed in on this site yet. Once they sign in, send the read again.
409 wallet_requiredFrom the stake read: the person has no wallet linked.
429 rate_limitedFrom the stake read: past the Base reading budget. Wait the seconds in Retry-After.
503 unavailableThe account could not be read; try again in a moment with a fresh signature.