Skip to main content
GET
Get an agent by ID

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Path Parameters

id
string
required

The unique identifier for the agent.

Response

Returns the agent.

agentType
enum<string>

The modality that the agent was authored for: text or voice. The configuration UI uses it to decide which sections to show. The runtime doesn't use it and takes the modality from the channel of each turn. An agent that was stored without a type returns text.

Available options:
text,
voice
Example:

"voice"

createdAt
integer

The time when the agent was created, as a Unix timestamp in seconds.

createdBy
string

The unique identifier for the user who created the agent.

Example:

"507f1f77bcf86cd799439011"

description
string

The description of the agent.

disabledToolReferenceIds
string[]

The reference identifiers for the tools that are available to the agent but switched off, in UUID format. The runtime doesn't offer these tools to the large language model (LLM), and the tools keep their settings.

guardrails
object

The safety instructions and data privacy settings of the agent.

hooks
object

The hooks that the platform runs for the agent.

id
string

The unique identifier for the agent.

Example:

"507f1f77bcf86cd799439011"

image
string

The avatar of the agent, either as a URL or as a base64 data URI.

imageOptimizedFormat
boolean

true if the avatar is stored in the Cognigy optimized image format; false otherwise.

instructions
string

The instructions that tell the agent how to behave.

knowledge
object

The knowledge settings of the agent.

largeLanguageModelReferenceId
string

The reference identifier for the large language model (LLM) that the agent uses, in UUID format.

lastChangedAt
integer

The time when the agent was last changed, as a Unix timestamp in seconds.

lastChangedBy
string

The unique identifier for the user who last changed the agent.

Example:

"507f1f77bcf86cd799439011"

llmConfig
object

The overrides for the LLM parameters of the agent. A parameter that you don't set falls back to the default of the LLM Gateway config set.

localeReferenceId
string

The reference identifier for the locale of the agent, in UUID format.

name
string

The name of the agent.

organisationId
string

The unique identifier for the organization that the agent belongs to.

Example:

"507f1f77bcf86cd799439011"

personaReferenceId
string

The reference identifier for the brand persona of the agent, in UUID format. The value is empty if the agent has no brand persona.

projectId
string

The unique identifier for the project that the agent belongs to.

Example:

"507f1f77bcf86cd799439011"

realtimeVoice
string

The gpt-live-1 voice that the agent uses for voice sessions. If the field is absent, the default voice marin applies.

referenceId
string

The reference identifier for the agent, in UUID format. The API generates it when the agent is created.

role
string

The short role of the agent, for example "Customer support specialist". The role opens the default system prompt.

skillReferenceIds
string[]

The reference identifiers for the skills of the agent, in UUID format.

toolReferenceIds
string[]

The reference identifiers for the tools that you attach directly to the agent, in UUID format.

voiceDelegationTurns
integer

Deprecated and ignored: the voice delegate treats everything said since the previous hand-off as the current request. The stored value, from 1 to 5, is still returned. If the field is absent, the default 2 applies.

voiceLargeLanguageModelReferenceId
string

The reference identifier for the realtime voice-to-voice (V2V) large language model (LLM) that the agent uses for voice sessions, in UUID format. Text turns never use it.

voicePromptTemplate
string

The realtime voice prompt template of the agent. If the agent has no template of its own, the field is absent and the product default applies.