Skip to main content
POST
/
v1
/
triage
/
issues
/
{id}
/
flags
Add Flag
curl --request POST \
  --url https://api.bland.ai/v1/triage/issues/{id}/flags \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "call_id": "<string>",
  "type": "<string>",
  "note": "<string>",
  "node_id": "<string>",
  "node_name": "<string>",
  "message_index": 123,
  "message_text": "<string>"
}
'
{
  "data": {
    "id": "ad0931e4-b0e1-4bd6-a5b1-09e7c9123dba",
    "org_id": "f5b40b9e-bc05-4b8a-9af1-d8f6a8a3a201",
    "issue_id": "9bbe5547-d5b1-4b83-9f80-87c4af7c6b34",
    "call_id": "3aefc79d-1870-4514-b32b-b9212ae32bc8",
    "type": "missed_handoff",
    "note": "Agent transferred without confirming the email.",
    "node_id": null,
    "node_name": null,
    "message_index": 12,
    "message_text": "OK, transferring you now.",
    "author_id": "75c5c7da-a5d6-4e26-a51e-1ae8ef2bfa4a",
    "created_at": "2026-05-07T05:26:11.327Z"
  },
  "errors": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.bland.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Flags pinpoint where on a call something went wrong. The call_id must already be attached as a resource on this issue, otherwise the request fails with 409 conflict and { error: "call_not_attached" }. Flag types accumulate into a reusable per-org catalog (see List Flag Types).

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

id
string
required
Internal UUID of the issue.

Body Parameters

call_id
string
required
ID of the attached call this flag points at. Must already be attached as a resource on this issue.
type
string
required
Flag type. Free-form, but normalized to lower_snake_case before storage. Reusing a type increments its usage_count in List Flag Types.
note
string
Free-text note explaining why this moment was flagged. 1-4000 characters.
node_id
string
ID of the pathway node the flag is attached to, if known.
node_name
string
Display name of the pathway node, captured at flag time so the dashboard can render the node name even if the pathway later changes.
message_index
integer
Zero-based index of the message turn in the call transcript that this flag points at.
message_text
string
Verbatim text of the flagged message, captured at flag time.

Response

Returns 201 Created with the new flag.
data
object
errors
null | array
null on success.
{
  "data": {
    "id": "ad0931e4-b0e1-4bd6-a5b1-09e7c9123dba",
    "org_id": "f5b40b9e-bc05-4b8a-9af1-d8f6a8a3a201",
    "issue_id": "9bbe5547-d5b1-4b83-9f80-87c4af7c6b34",
    "call_id": "3aefc79d-1870-4514-b32b-b9212ae32bc8",
    "type": "missed_handoff",
    "note": "Agent transferred without confirming the email.",
    "node_id": null,
    "node_name": null,
    "message_index": 12,
    "message_text": "OK, transferring you now.",
    "author_id": "75c5c7da-a5d6-4e26-a51e-1ae8ef2bfa4a",
    "created_at": "2026-05-07T05:26:11.327Z"
  },
  "errors": null
}

Docs for agents: llms.txt