# Get an agent by ID
**GET /api/agent_builder/agents/{id}**
**Spaces method and path for this operation:**
get /s/{space_id}/api/agent_builder/agents/{id}
Refer to [Spaces](http://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
Get a specific agent by ID. Use this endpoint to retrieve the complete agent definition including all configuration details and tool assignments.
[Required authorization] Route required privileges: read_onechat.
## Servers
- http://localhost:5601: http://localhost:5601 ()
## Authentication methods
- Api key auth
- Basic auth
## Parameters
### Path parameters
- **id** (string)
The unique identifier of the agent to retrieve.
## Responses
### 200
Indicates a successful response
[Powered by Bump.sh](http://bump.sh)