Spans

REST API methods for interacting with Phoenix spans

Create span annotations

post
Query parameters
syncbooleanOptional

If true, fulfill request synchronously.

Default: false
Body
Responses
200
Span annotations inserted successfully
application/json
post
POST /v1/span_annotations HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 193

{
  "data": [
    {
      "span_id": "text",
      "name": "text",
      "annotator_kind": "LLM",
      "result": {
        "label": "text",
        "score": 1,
        "explanation": "text"
      },
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "identifier": "text"
    }
  ]
}
{
  "data": [
    {
      "id": "text"
    }
  ]
}

Last updated

Was this helpful?