docstr: Get information about an API.
  
  Args:
      api_name: Name of the API.
  
  Returns:
      Information about the API, including the API specification, endpoint, status, and metrics (if applicable).
docstr_tok: ["Get","information","about","an","API",".","Args",":","api_name",":","Name","of","the","API",".","Returns",":","Information","about","the","API",",","including","the","API","specification",",","endpoint",",","status",",","and","metrics","(","if","applicable",")","."]
code: def get_api(self, api_name: str) -> Dict:
      """
      Get information about an API.
  
      Args:
          api_name: Name of the API.
  
      Returns:
          Information about the API, including the API specification, endpoint, status, and metrics (if applicable).
      """
      output = run_cli(
          ["get", api_name, "--env", self.env_name, "-o", "json"],
          hide_output=True,
      )
  
      apis = json.loads(output.strip())
      return apis[0]
  
file_path: cortex/python/client/cortex/client.py
imports: import json
  import os
  import shutil
  import time
  import yaml
  from typing import List, Dict, Any
  from cortex import util
  from cortex.binary import run_cli
  from cortex.telemetry import sentry_wrapper
label_desc: Use image node_id 4 for calling the Client obj's underlying member method code with example usage: obj.get_api(api_name) and returns: apis