Agents
An Agent is anyone or anything that acts through the API: a person signed in to the Preservation UI, or a machine client such as a digitisation workflow or an integration script. The identity of the agent is recorded on every resource it touches, in the createdBy, lastModifiedBy, preservedBy and exportedBy properties, as an Agent URI:
https://preservation-api.example/agents/tomhttps://preservation-api.example/agents/goobi-workflowhttps://preservation-api.example/agents/user0001@example.orgHow the name part is chosen is described in Authentication: for a signed-in person it is their user name; for a machine client it comes from the client’s token, or from the X-Client-Identity header it sends. GET /whoami shows you the name your own calls will be recorded under (see the Overview).
Listing agents
Section titled “Listing agents”GET /agentsReturns a JSON list of every Agent URI the platform has recorded, as plain strings:
[ "https://preservation-api.example/agents/tom", "https://preservation-api.example/agents/user0001@example.org", "https://preservation-api.example/agents/api-user-7"]This is the list you would use to populate a filter in a user interface, for example to offer the createdBy and preservedBy filters when listing Deposits. Those filters want the name only — the last segment of the URI — matched exactly. Passing a whole Agent URI from this list returns nothing, so take the part after /agents/.