Skip to content

Every signed version of an agent, newest first

GET
/api/v1/agents/{name}/versions
curl --request GET \
--url http://localhost:11044/api/v1/agents/example/versions \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'
name
required
string

The agent’s name, as the list returns it

The versions; empty when it has never been signed

Media typeapplication/json
Array<object>

One signed version of an agent, without the routine bodies it carries; listed newest first by GET /agents/{name}/versions

object
digest
required

Hex SHA-256 of what was signed: the agent’s definition, its routines, the views its duties name and its persona

string
routines
required

Names of the routines this version holds, including any duty’s repair routine

Array<string>
signedAt
required

When it was signed, ISO-8601 instant

string
signedBy
required

Username of the user who signed it

string
version
required

Version number, counting up from 1 with each signature

integer format: int32

Example generated

[
{
"digest": "example",
"routines": [
"example"
],
"signedAt": "example",
"signedBy": "example",
"version": 1
}
]

No authenticated principal

One of:

A refusal with a machine-readable code and a plain-language message. ApiErrorAdvice answers it for a failed validation, a missing resource or a conflicting state, and some controllers answer it directly

object
code
required

Machine-readable key to branch on, such as validation_failed, unknown_field, not_found or conflict. Open: a surface may answer codes of its own

string
detail

Extra context where there is some, such as the fields a body may carry; null otherwise

string
message
required

A plain-language explanation, written to be shown. Never carries an exception message

string

Example generated

{
"code": "example",
"detail": "example",
"message": "example"
}

No declared agent of that name in your world