> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nugen.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agent System Prompt

> Retrieve the complete system prompt and configuration for an agent.


This endpoint returns the full system prompt that defines the agent's behavior, including its instructions, model configuration, and other parameters.


**Path Parameters:**

- `agent_id`: Unique identifier of the agent


**Returns:**

- `data`: Agent prompt data object with the following fields:
  - `system_prompt`: Complete system prompt with instructions and demonstrations
  - `model`: Model ID used by the agent
  - `temperature`: Sampling temperature setting (0.0-2.0)
  - `agent_name`: Name of the agent
  - `agent_description`: Description of the agent


**Raises:**

- `404`: Agent not found or doesn't belong to the user


**Example Request:**

```json
GET /api/v3/agents/agent-abc123/prompt
Headers: {"Authorization": "Bearer <api_key>"}
```


**Example Response:**

```json
{
  "data": {
    "system_prompt": "You are a helpful customer support agent. Be empathetic and solution-oriented.

Examples:
User: How do I reset my password?
Assistant: I'd be happy to help you reset your password...",
    "model": "nugen-flash-instruct",
    "temperature": 0.7,
    "agent_name": "customer_support_bot",
    "agent_description": "Handles customer inquiries with empathy"
  }
}
```


**Notes:**

- The system prompt includes both instructions and demonstrations formatted together
- Use this endpoint to inspect the complete prompt before running the agent
- The prompt may contain few-shot examples if demonstrations were provided during creation



## OpenAPI

````yaml https://api.nugen.in/openapi-public.json get /api/v3/agents/{agent_id}/prompt
openapi: 3.1.0
info:
  title: Nugen Intelligence API
  description: 'Nugen Intelligence : Powering Specialized Intelligence At Scale'
  version: 25.4.20
servers: []
security: []
paths:
  /api/v3/agents/{agent_id}/prompt:
    get:
      tags:
        - Agents
      summary: Get Agent System Prompt
      description: >-
        Retrieve the complete system prompt and configuration for an agent.



        This endpoint returns the full system prompt that defines the agent's
        behavior, including its instructions, model configuration, and other
        parameters.



        **Path Parameters:**


        - `agent_id`: Unique identifier of the agent



        **Returns:**


        - `data`: Agent prompt data object with the following fields:
          - `system_prompt`: Complete system prompt with instructions and demonstrations
          - `model`: Model ID used by the agent
          - `temperature`: Sampling temperature setting (0.0-2.0)
          - `agent_name`: Name of the agent
          - `agent_description`: Description of the agent


        **Raises:**


        - `404`: Agent not found or doesn't belong to the user



        **Example Request:**


        ```json

        GET /api/v3/agents/agent-abc123/prompt

        Headers: {"Authorization": "Bearer <api_key>"}

        ```



        **Example Response:**


        ```json

        {
          "data": {
            "system_prompt": "You are a helpful customer support agent. Be empathetic and solution-oriented.

        Examples:

        User: How do I reset my password?

        Assistant: I'd be happy to help you reset your password...",
            "model": "nugen-flash-instruct",
            "temperature": 0.7,
            "agent_name": "customer_support_bot",
            "agent_description": "Handles customer inquiries with empathy"
          }
        }

        ```



        **Notes:**


        - The system prompt includes both instructions and demonstrations
        formatted together

        - Use this endpoint to inspect the complete prompt before running the
        agent

        - The prompt may contain few-shot examples if demonstrations were
        provided during creation
      operationId: get_agent_prompt
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      responses:
        '200':
          description: >-
            Returns the complete system prompt and configuration for a specific
            agent, including instructions, demonstrations, and model settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPromptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AgentPromptResponse:
      properties:
        data:
          $ref: '#/components/schemas/AgentPromptData'
      type: object
      required:
        - data
      title: AgentPromptResponse
      description: Response model for agent system prompt endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentPromptData:
      properties:
        system_prompt:
          type: string
          title: System Prompt
          description: Complete system prompt
          example: >-
            You are a helpful assistant that answers questions about our
            products.
        model:
          type: string
          title: Model
          description: Model being used
          example: nugen-flash-instruct
        temperature:
          type: number
          title: Temperature
          description: Temperature setting
          example: 0.7
        agent_name:
          type: string
          title: Agent Name
          description: Agent name
          example: customer_support_bot
        agent_description:
          type: string
          title: Agent Description
          description: Agent description
          example: An agent designed to handle customer support queries
      type: object
      required:
        - system_prompt
        - model
        - temperature
        - agent_name
        - agent_description
      title: AgentPromptData
      description: Agent prompt data model
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````