---
updatedAt: 2025-10-02T22:24:59.000Z
agentTools:
  projectIndex: https://developer.bill.com/v2/llms.txt
---

# Add a note

Add a note to a BILL object, such as a bill or invoice.

By default, notes are visible only amongst users in your organization. In your request, set isPublic as true to share notes publicly amongst customers and vendors in the BILL network. Set objectId as the BILL object to add a note. For example, set objectId as a bill ID to add a note to the bill.

You can add notes to a range of BILL objects.
* Vendors
* Bills
* Vendor Credits
* Customers
* Invoices
* Invoice Credits

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Organization | Basic operations",
    "version": "2.0",
    "description": "BILL is a cloud-based cash flow management system for an organization's Accounts Payable (AP) and Accounts Receivable (AR) automation.\n * **AP**: Automate workflows to pay vendors bills at scale for the goods and services they provide. Pay vendors with a wide range of payment methods. Generate vendor credits, bill credits, and payment disbursement reports.\n * **AR**: Automate workflows to get paid by customers at scale for the goods and services you provide. Generate and send invoices on a schedule, generate customer and invoice credits, and seamlessly charge authorized customers.\n * **Organization**: Manage your bank accounts (for sending and receiving payments), users (with user roles), and sync with your choice of accounting software.\n\nIntegrate with the BILL API to send and receive payments for your business. See [Support Center](https://help.bill.com/hc/en-us) for resources about using the BILL web app.",
    "contact": {
      "email": "developerprogram@hq.bill.com"
    }
  },
  "servers": [
    {
      "url": "https://api-stage.bill.com/api/v2",
      "description": "Sandbox base URL"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "java",
      "javascript",
      "python",
      "ruby"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "paths": {
    "/SendMessage.json": {
      "post": {
        "summary": "Add a note",
        "operationId": "org-basic-sendmessage",
        "description": "Add a note to a BILL object, such as a bill or invoice.\n\nBy default, notes are visible only amongst users in your organization. In your request, set isPublic as true to share notes publicly amongst customers and vendors in the BILL network. Set objectId as the BILL object to add a note. For example, set objectId as a bill ID to add a note to the bill.\n\nYou can add notes to a range of BILL objects.\n* Vendors\n* Bills\n* Vendor Credits\n* Customers\n* Invoices\n* Invoice Credits",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendMessageResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "devKey",
                  "sessionId",
                  "data"
                ],
                "properties": {
                  "devKey": {
                    "type": "string",
                    "description": "Developer key generated with your BILL developer account"
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "API session ID generated with [`/v2/Login.json`](ref:auth-login)"
                  },
                  "data": {
                    "$ref": "#/components/schemas/SendMessageRequest"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Basic operations"
        ]
      },
      "parameters": []
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code (only when `response_status` is `1`)"
          },
          "error_message": {
            "type": "string",
            "description": "Error message (only when `response_status` is `1`)"
          }
        }
      },
      "SendMessageRequest": {
        "type": "object",
        "required": [
          "objectId",
          "message"
        ],
        "properties": {
          "objectId": {
            "type": "string",
            "description": "BILL-generated ID of the object to add a note. For example, set as a bill ID to add a note to the bill."
          },
          "message": {
            "type": "string",
            "description": "Note text. You can tag a user in the `[~{user_id}]` format."
          },
          "isPublic": {
            "type": "boolean",
            "description": "Set as `true` to share notes publicly amongst customers and vendors in the BILL network. The default value is `false`."
          }
        }
      },
      "SendMessageResponse": {
        "type": "object",
        "properties": {
          "response_status": {
            "type": "integer",
            "description": "Response status.\n* `0`: Success response\n* `1`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_message": {
            "type": "string",
            "description": "Response status.\n* `Success`: Success response\n* `Error`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_data": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorResponse"
              }
            ],
            "properties": {
              "entity": {
                "type": "string",
                "description": "Object type. Set as `Message`."
              },
              "id": {
                "type": "string",
                "description": "BILL-generated ID of the note. The value begins with `act`."
              },
              "objectId": {
                "type": "string",
                "description": "BILL-generated ID of the object to add a note. For example, set as a bill ID to add a note to the bill."
              },
              "message": {
                "type": "string",
                "description": "Note text"
              },
              "isPublic": {
                "type": "boolean",
                "description": "Set as `true` to share notes publicly amongst customers and vendors in the BILL network"
              },
              "createdDate": {
                "type": "string",
                "description": "Created date"
              },
              "usersId": {
                "type": "string",
                "description": "BILL-generated ID of the user that has added a note"
              },
              "from": {
                "type": "object",
                "properties": {
                  "usersOrgName": {
                    "type": "string",
                    "description": "Organization that the user belongs to"
                  },
                  "usersFirstName": {
                    "type": "string",
                    "description": "User first name"
                  },
                  "usersLastName": {
                    "type": "string",
                    "description": "User last name"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```