{
  "opencollection": "1.0.0",
  "info": {
    "name": "Opik REST Spans API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Spans",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Add span comment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/spans/:id/comments",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add span comment"
        },
        {
          "info": {
            "name": "Add span feedback score",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost:5173/api/v1/private/spans/:id/feedback-scores",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add span feedback score"
        },
        {
          "info": {
            "name": "Create spans",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/spans/batch",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create spans"
        },
        {
          "info": {
            "name": "Batch update spans",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:5173/api/v1/private/spans/batch",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update multiple spans"
        },
        {
          "info": {
            "name": "Get spans by project_name or project_id and optionally by trace_id and/or type",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/spans",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "size",
                "value": "",
                "type": "query"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "project_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "trace_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "type",
                "value": "",
                "type": "query"
              },
              {
                "name": "filters",
                "value": "",
                "type": "query"
              },
              {
                "name": "truncate",
                "value": "",
                "type": "query"
              },
              {
                "name": "strip_attachments",
                "value": "",
                "type": "query"
              },
              {
                "name": "sorting",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              },
              {
                "name": "from_time",
                "value": "",
                "type": "query"
              },
              {
                "name": "to_time",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get spans by project_name or project_id and optionally by trace_id and/or type"
        },
        {
          "info": {
            "name": "Create span",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/spans",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create span"
        },
        {
          "info": {
            "name": "Get span by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/spans/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "strip_attachments",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get span by id"
        },
        {
          "info": {
            "name": "Update span by id",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:5173/api/v1/private/spans/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update span by id"
        },
        {
          "info": {
            "name": "Delete span by id",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://localhost:5173/api/v1/private/spans/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete span by id"
        },
        {
          "info": {
            "name": "Delete span comments",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/spans/comments/delete",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Delete span comments"
        },
        {
          "info": {
            "name": "Delete span feedback score",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/spans/:id/feedback-scores/delete",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Delete span feedback score"
        },
        {
          "info": {
            "name": "Find Feedback Score names",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/spans/feedback-scores/names",
            "params": [
              {
                "name": "project_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "type",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Find Feedback Score names"
        },
        {
          "info": {
            "name": "Get span comment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/spans/:spanId/comments/:commentId",
            "params": [
              {
                "name": "commentId",
                "value": "",
                "type": "path"
              },
              {
                "name": "spanId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get span comment"
        },
        {
          "info": {
            "name": "Get span stats",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/spans/stats",
            "params": [
              {
                "name": "project_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "trace_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "type",
                "value": "",
                "type": "query"
              },
              {
                "name": "filters",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              },
              {
                "name": "from_time",
                "value": "",
                "type": "query"
              },
              {
                "name": "to_time",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get span stats"
        },
        {
          "info": {
            "name": "Batch feedback scoring for spans",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost:5173/api/v1/private/spans/feedback-scores",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Batch feedback scoring for spans"
        },
        {
          "info": {
            "name": "Search spans",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/spans/search",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Search spans"
        },
        {
          "info": {
            "name": "Check whether a project has spans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/spans/exists",
            "params": [
              {
                "name": "project_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "source",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns whether the project has at least one span matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project."
        },
        {
          "info": {
            "name": "Update span comment by id",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:5173/api/v1/private/spans/comments/:commentId",
            "params": [
              {
                "name": "commentId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update span comment by id"
        }
      ]
    }
  ],
  "bundled": true
}