Comments

Records in InfoLobby can have threaded comments. The API lets you read and post comments programmatically.

Fetch comments for a record

GET /api/table/<table_id>/record/<record_id>/comments/get

Optional query parameters

  • limit (default 20, max 100)
  • offset (default 0)

Response

[
  {
    "id": 7,
    "table_id": 101,
    "record_id": 42,
    "user_id": 5,
    "user_name": "Jane Doe",
    "api_key_id": null,
    "content": "Followed up by email",
    "created_at": "2026-04-12 14:32:01",
    "updated_at": null
  }
]

Post a comment

POST /api/table/<table_id>/record/<record_id>/comments/create

Request body

{
  "content": "Synced from CRM"
}

Authorship when posted via API

When a comment is created with an API key:

  • user_id is stored as 0
  • user_name is stored as "API: <key name>" (where <key name> is the name you chose when creating the key)
  • api_key_id records the originating key for full traceability

This makes API-created comments visually distinguishable in the InfoLobby UI and fully auditable in the events table.

Example

curl -X POST https://infolobby.com/api/table/101/record/42/comments/create \
  -H "Authorization: Bearer il_live_..." \
  -H "Content-Type: application/json" \
  -d '{"content":"Synced from CRM"}'