Create text annotation

Create text annotation

In this article, you will learn how to create text annotation.

Create text annotation

Request Type: POST
Authorization Header: Authorization: ApiKey <my_api_token>
URL: https://app.banyanboard.com/api/annotation_groups/<my_annotation_group_uuid>/annotations/
Payload:
Info
{
  "fill_color": "#ff66cc",
  "top_left_x": "80.25",
  "top_left_y": "210.75",
  "text": "Sample Line 1\nSample Line 2\n",
  "text_fontsize": 28,
  "type": "text",
  "z_index": 1
}

Results:
Info
{
  "date_created": "2026-03-29T10:12:55.456789Z",
  "fill_color": "#ff66cc",
  "height": "0.000",
  "path": "",
  "stroke_color": "black",
  "stroke_width": 1,
  "top_left_x": "80.250",
  "top_left_y": "210.750",
  "text": "Sample Line 1\nSample Line 2",
  "text_fontsize": 28,
  "type": "text",
  "was_edited": true,
  "uuid": "a5b6c7d8-9e0f-4123-8abc-4d5e6f7a8b9c",
  "width": "0.000"
}
    • Related Articles

    • Create rectangle annotation

      In this article, you will learn how to create rectangle annotation. Create rectangle annotation Request Type: POST Authorization Header: Authorization: ApiKey <my_api_token> URL: ...
    • Create circle annotation

      In this article, you will learn how to create circle annotation. Create circle annotation Request Type: POST Authorization Header: Authorization: ApiKey <my_api_token> URL: ...
    • Create polygon annotation

      In this article, you will learn how to create polygon annotation. Create polygon annotation Request Type: POST Authorization Header: Authorization: ApiKey <my_api_token> URL: ...
    • Create freehand annotation

      In this article, you will learn how to create freehand annotation. Create freehand annotation Request Type: POST Authorization Header: Authorization: ApiKey <my_api_token> URL: ...
    • Create annotation group

      In this article, you will learn how to create an annotation group. Create annotation group Request Type: POST Authorization Header: Authorization: ApiKey <my_api_token> URL: https://app.banyanboard.com/api/assets/<my_file_uuid>/annotation_groups/ ...