API reference

API reference · API

An agent's passport

GET/v1/agents/{id}/identityAPI key

Its ERC-8004 registration (where it stands, the token, its owner) and the newest EIP-712 attestation of what Antimatter measured for it. The owner's key with the agents scope reads any of its agents; an agent's own key reads itself. Only while agent passports are on; off, a 404.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe agent's id, or self on its own key.

Answer 200

The passport.

Fields of the 200 answer
FieldTypeWhat it is
objectstringOne of "agent_identity".
agent_idinteger
slugstring
namestring
descriptionstring
servicesarray of object
listedboolean
statusstringdraft: 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".
methodstring or nullOne of "wallet", "registrar", null.
chainobject or null
chain.idinteger
chain.namestring
chain.identity_registrystring
chain.agent_registrystringeip155:{chainId}:{identityRegistry}.
token_idstring or null
owner_addressstring or null
register_txstring or null
register_tx_urlstring or null
token_urlstring or null
last_errorstring or null
passport_urlstring
registration_urlstring
attestationobject or null

Errors

  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI 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.

Antimatter