Ledga
GET/strings/{code}

Get a ledger string with its member ledgers

Show a single string and its member ledgers.

Parameters

NameInTypeDescription
coderequired path string String code (unique within the tenant)

Responses

200Successful operation
{
  "success": true,
  "data": {
    "id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
    "code": "treasury-fx",
    "name": "Treasury FX group",
    "description": "Cross-currency treasury ledgers",
    "is_active": true,
    "ledgers": [
      {
        "id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
        "code": "gbp-main",
        "name": "GBP Main",
        "currency": "GBP"
      }
    ],
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
}
401Unauthenticated
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
403Forbidden
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
404String not found
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}

Examples

curl https://ledga.io/api/v1/strings/{code} \
  -H "Authorization: Bearer sk_xxxxxxxx_your_secret"

← All endpoints