customAgents

Lists the agent's saved system prompt versions.

Changed on

Lists the saved system prompt versions for the specified custom agent. Use a returned version id with the system prompt restore endpoint to restore an earlier prompt. <Check title="Required Permissions" icon="key">The user must have read access to the agent.</Check>

get/agents/{agentId}/systempromptversions

Request

  • Base URL
    https://api.awork.com/api/v1
  • URL
    https://api.awork.com/api/v1/agents/{agentId}/systempromptversions
  • Auth
    HTTP bearer

Path parameters

agentIdstring uuid required

The agent id.

Response

OK

idstring uuid

The prompt version id.

agentIdstring uuid

The agent id.

versionNumberinteger

The version number, assigned in order of creation.

isCurrentboolean

Whether this is the agent's current system prompt.

systemPromptstring nullable

The system prompt.

createdOnstring date-time nullable

The creation time of the system prompt version.

createdBystring uuid nullable

The user who created the system prompt version.

Changes