Server notes

Endpoint: /api/servers/notes/

Manage notes attached to servers. Notes allow teams to document server configurations, maintenance history, and operational details. Notes support markdown formatting, private visibility, pinning, and user mentions.

List notes

Retrieve a paginated list of notes.

Request

GET /api/servers/notes/

Query parameters

ParameterTypeDescription
serverUUIDFilter by server ID
authorUUIDFilter by author user ID
privatebooleanFilter by private status
pinnedbooleanFilter by pinned status
searchstringSearch across content, server name, and author name
orderingstringSort order (e.g., -added_at, pinned). Default: -pinned, -added_at
pageintegerPage number
page_sizeintegerResults per page (default: 15, max: 100)

Response

{
  "count": 5,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "c72e9f01-3a5b-4d8e-9f12-1a2b3c4d5e6f",
      "server": {
        "id": "7e3984de-49ab-4cc6-bcdf-21fbd35858b8",
        "name": "web-server-01",
        "os": "Ubuntu 22.04",
        "is_connected": true
      },
      "author": {
        "id": 1,
        "name": "admin",
        "email": "admin@example.com"
      },
      "content": "Upgraded to Ubuntu 22.04 LTS on 2024-01-15.",
      "private": false,
      "pinned": true,
      "added_at": "2024-01-15T14:30:00Z",
      "updated_at": "2024-01-15T14:30:00Z"
    }
  ]
}

Example

curl -X GET "https://your-workspace.us1.alpacon.io/api/servers/notes/?server=7e3984de-49ab-4cc6-bcdf-21fbd35858b8&pinned=true" \
  -H "Authorization: token=\"alpat-xxxxxxxxxxxxxxxxxx\""

Error responses

StatusError codeDescription
400NOTE_PIN_LIMIT_EXCEEDEDMaximum 3 pinned notes per server
401UNAUTHORIZEDInvalid or missing authentication
403FORBIDDENInsufficient permissions (e.g., editing another user’s note)
404NOT_FOUNDNote not found