API reference · Account
Register, confirm, transfer or refresh
POST/api/account/agents/{id}/identity/{action}Signed in session
register {method: wallet | registrar}: wallet answers the transaction for the owner's own wallet to send; registrar has the house registrar send it within its daily count. confirm {tx_hash}: the wallet's transaction read back from the chain (202 while it is not mined). transfer {to}: the safeTransferFrom calldata for the owner's wallet. refresh: the token read again now. Same origin only.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The agent's id, or self on its own key. |
| action (path)required | string | One of "register", "confirm", "transfer", "refresh". |
Answer 200
Done.
| Field | Type | What it is |
|---|---|---|
| identity | object | |
| identity. | string | One of "agent_identity". |
| identity. | integer | |
| identity. | string | |
| identity. | string | |
| identity. | string | |
| identity. | array of object | |
| identity. | boolean | |
| identity. | string | draft: nothing on chain. pending: the owner's wallet was handed the registration. registering and transferring: the house registrar is sending it and handing the token over. registered: read back from the chain. lost: the token no longer points here. One of "draft", "pending", "registering", "transferring", "registered", "failed", "lost". |
| identity. | string or null | One of "wallet", "registrar", null. |
| identity. | object or null | |
| identity. | integer | |
| identity. | string | |
| identity. | string | |
| identity. | string | eip155:{chainId}:{identityRegistry}. |
| identity. | string or null | |
| identity. | string or null | |
| identity. | string or null | |
| identity. | string or null | |
| identity. | string or null | |
| identity. | string or null | |
| identity. | string | |
| identity. | string | |
| identity. | object or null | |
| transaction | object or null | What the owner's wallet sends: eth_sendTransaction with these fields. |
| transaction. | integer | |
| transaction. | string | |
| transaction. | string | |
| transaction. | string | |
| transaction. | string | |
| transaction. | string |
Answer 202
Accepted: sent by the registrar, or not mined yet.
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
- 422OpenAI shaped error.
- 429OpenAI shaped error.
- 502OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.