---
updatedAt: 2026-07-22T12:59:21.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Retrieve an annotation

Returns an annotation by the specified Id.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "DoiT Cloud Intelligence",
    "description": "Programmatic access to DoiT Platform",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.doit.com"
    }
  ],
  "security": [
    {
      "api_key": []
    },
    {
      "tenantId": [],
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "Annotations",
      "description": "Custom notes added to cost data to provide contextual information."
    }
  ],
  "paths": {
    "/analytics/v1/annotations/{id}": {
      "get": {
        "tags": [
          "Annotations"
        ],
        "summary": "Retrieve an annotation",
        "description": "Returns an annotation by the specified Id.",
        "operationId": "getAnnotation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Annotation ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK - Annotation returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationListItem"
                }
              }
            },
            "links": {
              "updateAnnotation": {
                "operationId": "updateAnnotation",
                "parameters": {
                  "id": "$request.path.id"
                }
              },
              "deleteAnnotation": {
                "operationId": "deleteAnnotation",
                "parameters": {
                  "id": "$request.path.id"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LabelInfo": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "description": "Metadata for a label.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the label."
          },
          "name": {
            "type": "string",
            "description": "The name of the label."
          }
        }
      },
      "AnnotationListItem": {
        "required": [
          "id",
          "content",
          "timestamp"
        ],
        "type": "object",
        "description": "Summary information about an annotation.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the annotation."
          },
          "content": {
            "type": "string",
            "description": "The content of the annotation."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "The date associated with the annotation."
          },
          "reports": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of report IDs associated with the annotation."
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LabelInfo"
            },
            "description": "List of labels associated with the annotation."
          },
          "createTime": {
            "type": "string",
            "format": "date-time",
            "description": "The creation time of the annotation."
          },
          "updateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The time when the annotation was last updated."
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Standard error response structure.",
        "properties": {
          "error": {
            "type": "string",
            "description": "Detailed error message."
          }
        }
      }
    },
    "responses": {
      "400": {
        "description": "Bad Request - The server cannot process the request, often due to a malformed request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized - Invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "403": {
        "description": "Forbidden - The client is not authorized to perform the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "404": {
        "description": "Not Found - The requested resource does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "description": "Use the \"Bearer <API_KEY>\" format or sign in for autofill",
        "in": "header"
      },
      "tenantId": {
        "type": "apiKey",
        "name": "X-Tenant-Id",
        "description": "Customer (tenant) ID for the request. Separate from your API token: always authenticate with `Authorization: Bearer <token>` (personal or service account). See [Get Started](https://developer.doit.com/docs/start). Omit when your token is scoped to a single customer (resolved automatically). A service account can select an active direct or nested descendant of its home customer; the endpoint's normal permissions, entitlements, and resource-ownership checks still apply. A service-account target outside that customer subtree returns `403 Forbidden`. Prefer this header over the legacy `customerContext` query parameter, which only applies to legacy API keys and is ignored by personal and service account tokens.",
        "in": "header"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "go",
    "node",
    "python"
  ],
  "x-cli-config": {
    "security": "oauth2",
    "params": {
      "client_id": "cli"
    }
  }
}
```