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

# Get Agent Config

> Get the agent configuration for a project

## Request

```bash theme={null}
GET https://api.pathors.com/v1/projects/{projectId}/agent
```

### Path Parameters

<ParamField path="projectId" type="string" required>
  The project ID
</ParamField>

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token using your developer key
</ParamField>

## Response

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="id" type="string">Agent ID</ResponseField>
    <ResponseField name="projectId" type="string">Associated project ID</ResponseField>
    <ResponseField name="type" type="string">Agent type (`monolithic` or `skill`)</ResponseField>
    <ResponseField name="name" type="string">Agent display name</ResponseField>
    <ResponseField name="status" type="string">Agent status (`draft` or `published`)</ResponseField>
    <ResponseField name="globalPrompt" type="string">System-wide prompt applied to all nodes</ResponseField>
    <ResponseField name="executionMode" type="string">LLM execution mode (`smart`, `turbo`, or `balance`)</ResponseField>
    <ResponseField name="timezone" type="string">Agent timezone</ResponseField>
    <ResponseField name="memoryEnabled" type="boolean">Whether agent memory is enabled</ResponseField>
    <ResponseField name="beforeStartConfig" type="object">Pre-session execution config</ResponseField>
    <ResponseField name="postSessionWebhook" type="object">Webhook called after session ends</ResponseField>
    <ResponseField name="postEvaluationConfig" type="object">Auto-evaluation config</ResponseField>
    <ResponseField name="placeholderMessages" type="object">Placeholder messages by language</ResponseField>
    <ResponseField name="variableConfigs" type="array">Variable extraction configs</ResponseField>
  </Expandable>
</ResponseField>

### Example

```bash theme={null}
curl https://api.pathors.com/v1/projects/{projectId}/agent \
  -H "Authorization: Bearer dk_your_key"
```

```json theme={null}
{
  "data": {
    "id": "agent-uuid",
    "projectId": "project-uuid",
    "type": "monolithic",
    "name": "Customer Support Agent",
    "status": "published",
    "globalPrompt": "You are a helpful customer support agent.",
    "executionMode": "smart",
    "timezone": "Asia/Taipei",
    "memoryEnabled": false,
    "beforeStartConfig": null,
    "postSessionWebhook": null,
    "postEvaluationConfig": null,
    "placeholderMessages": null,
    "variableConfigs": null
  }
}
```
