{
  "opencollection": "1.0.0",
  "info": {
    "name": "Amigo Account Context Graphs API",
    "version": "0.1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Context Graphs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List context graphs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "continuation_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List context graphs in a workspace with pagination. Requires `ContextGraph.view` permission."
        },
        {
          "info": {
            "name": "Create a context graph",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new context graph in a workspace. Requires `ContextGraph.create` permission."
        },
        {
          "info": {
            "name": "Get a context graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs/:context_graph_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "context_graph_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a context graph by ID. Requires `ContextGraph.view` permission."
        },
        {
          "info": {
            "name": "Update a context graph",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs/:context_graph_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "context_graph_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a context graph's name or description. Requires `ContextGraph.update` permission."
        },
        {
          "info": {
            "name": "Delete a context graph",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs/:context_graph_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "context_graph_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a context graph. context graph versions are retained. Requires `ContextGraph.delete` permission."
        },
        {
          "info": {
            "name": "List context graph versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs/:context_graph_id/versions",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "context_graph_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "continuation_token",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List versions of a context graph with pagination. Requires `ContextGraph.view` permission."
        },
        {
          "info": {
            "name": "Create a context graph version",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs/:context_graph_id/versions",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "context_graph_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new version of a context graph. Version number is auto-incremented. Requires `ContextGraph.create` permission for the first version and `ContextGraph.update` permission afterward."
        },
        {
          "info": {
            "name": "Get a context graph version",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amigo.ai/v1/:workspace_id/context-graphs/:context_graph_id/versions/:version",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "context_graph_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a specific context graph version by number, or 'latest'. Requires `ContextGraph.view` permission."
        }
      ]
    }
  ],
  "bundled": true
}