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

# agent.detail

> Retrieves an agent's details including its nickname, description, and associated task. Use [agent.update](https://open.manus.ai/docs/v2/agent.update) to modify, or [task.list](https://open.manus.ai/docs/v2/task.list) with `scope=agent_subtask` to view this agent's subtasks.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

<Tip>
  **Auth:** API Key only — not available with OAuth tokens.
</Tip>

<Tip>
  **Talk to this agent:** Use [task.sendMessage](https://open.manus.ai/docs/v2/task.sendMessage) with the agent's `task_id` to send messages to its main task.

  **View subtasks:** Use [task.list](https://open.manus.ai/docs/v2/task.list) with `scope=agent_subtask` and this agent's ID to list all subtasks.
</Tip>


## OpenAPI

````yaml GET /v2/agent.detail
openapi: 3.1.0
info:
  title: Manus OpenAPI v2
  description: >-
    API for integrating Manus into your workflow. All responses are wrapped with
    {"ok": true, "request_id": "...", ...} for success and {"ok": false,
    "request_id": "...", "error": {"code": "...", "message": "..."}} for errors.
  version: 2.0.0
servers:
  - url: https://api.manus.ai
security:
  - ApiKeyAuth: []
paths:
  /v2/agent.detail:
    get:
      summary: GetAgent
      description: >-
        Retrieves an agent's details including its nickname, description, and
        associated task. Use
        [agent.update](https://open.manus.ai/docs/v2/agent.update) to modify, or
        [task.list](https://open.manus.ai/docs/v2/task.list) with
        `scope=agent_subtask` to view this agent's subtasks.
      operationId: openapi.v2.OpenapiV2Service.GetAgent
      parameters:
        - name: x-manus-api-key
          in: header
          required: true
          schema:
            type: string
          description: >-
            API key for authentication. This endpoint does not support OAuth2
            tokens. See
            [Authentication](https://open.manus.ai/docs/v2/authentication).
        - name: agent_id
          in: query
          required: true
          schema:
            type: string
          description: The unique identifier of the agent to retrieve.
      responses:
        '200':
          description: Agent retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  agent:
                    $ref: '#/components/schemas/Agent'
                    description: The agent object with full details.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.manus.ai/v2/agent.detail?agent_id=<string>' \
              --header 'x-manus-api-key: <api-key>'
        - lang: python
          label: Python
          source: >-
            import requests


            url = "https://api.manus.ai/v2/agent.detail"


            headers = {
                "x-manus-api-key": "<api-key>"
            }


            response = requests.get(url, headers=headers, params={"agent_id":
            "<string>"})


            print(response.text)
        - lang: javascript
          label: JavaScript
          source: >-
            const options = {
              method: 'GET',
              headers: {'x-manus-api-key': '<api-key>'}
            };


            fetch('https://api.manus.ai/v2/agent.detail?agent_id=<string>',
            options)
              .then(res => res.json())
              .then(res => console.log(res))
              .catch(err => console.error(err));
        - lang: php
          label: PHP
          source: |-
            <?php

            $curl = curl_init();

            curl_setopt_array($curl, [
              CURLOPT_URL => "https://api.manus.ai/v2/agent.detail?agent_id=<string>",
              CURLOPT_RETURNTRANSFER => true,
              CURLOPT_ENCODING => "",
              CURLOPT_MAXREDIRS => 10,
              CURLOPT_TIMEOUT => 30,
              CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
              CURLOPT_CUSTOMREQUEST => "GET",
              CURLOPT_HTTPHEADER => [
                "x-manus-api-key: <api-key>"
              ],
            ]);

            $response = curl_exec($curl);
            $err = curl_error($curl);

            curl_close($curl);

            if ($err) {
              echo "cURL Error #:" . $err;
            } else {
              echo $response;
            }
        - lang: go
          label: Go
          source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io\"\n)\n\nfunc main() {\n\n\turl := \"https://api.manus.ai/v2/agent.detail?agent_id=<string>\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"x-manus-api-key\", \"<api-key>\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := io.ReadAll(res.Body)\n\n\tfmt.Println(string(body))\n\n}"
        - lang: java
          label: Java
          source: >-
            HttpResponse<String> response =
            Unirest.get("https://api.manus.ai/v2/agent.detail?agent_id=<string>")
              .header("x-manus-api-key", "<api-key>")
              .asString();
        - lang: ruby
          label: Ruby
          source: |-
            require 'uri'
            require 'net/http'

            url = URI("https://api.manus.ai/v2/agent.detail?agent_id=<string>")

            http = Net::HTTP.new(url.host, url.port)
            http.use_ssl = true

            request = Net::HTTP::Get.new(url)
            request["x-manus-api-key"] = '<api-key>'

            response = http.request(request)
            puts response.read_body
components:
  schemas:
    Agent:
      type: object
      description: >-
        A custom agent with its own identity (nickname and description) that can
        be customized for specific use cases. See the
        [Agents](https://open.manus.ai/docs/v2/agents-overview) guide.
      properties:
        id:
          type: string
          description: >-
            Unique identifier for the agent. Use this as `agent_id` in
            [task.list](https://open.manus.ai/docs/v2/task.list) (with
            `scope=agent_subtask`) to view this agent's subtasks.
        task_id:
          type: string
          description: >-
            The task ID associated with this agent's creation or configuration.
            Use [task.detail](https://open.manus.ai/docs/v2/task.detail) to view
            the associated task.
        nickname:
          type: string
          description: >-
            Display name of the agent. Can be updated via
            [agent.update](https://open.manus.ai/docs/v2/agent.update).
        about:
          type: string
          description: >-
            Description or bio of the agent explaining its purpose and
            specialization. Can be updated via
            [agent.update](https://open.manus.ai/docs/v2/agent.update).
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g., "invalid_argument",
                "not_found", "permission_denied", "rate_limited").
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-manus-api-key

````