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

# Get Current Version

Retrieve the current active version's `system_config` formatted for YAML output. This endpoint returns the raw stored config, preserving only explicitly set fields, which is useful when dumping as YAML in the frontend.

## Path Parameters

<ParamField path="id" type="string" required>
  The UUID of the agent.
</ParamField>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET https://api.artaios.ai/api/v1/agent/{id}/versions/current/ \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```
</CodeGroup>

## Response

Returns the active version's configuration formatted for YAML.

```json theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "version_number": "1.0.0",
  "system_config": {
    "name": "My Agent",
    "architecture": "llm_agent"
  },
  "metadata": {},
  "agent": "550e8400-e29b-41d4-a716-446655440000"
}
```
