> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ledgitify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Project allocations

> The allocations recorded against the project's budget lines. Requires the `allocations:read` scope.



## OpenAPI

````yaml /openapi.json get /projects/{id}/allocations
openapi: 3.1.0
info:
  title: Ledgitify REST API
  version: 1.0.0
  description: >-
    Programmatic access to a single organisation's Ledgitify projects, reports,
    allocations, and transactions. The API key alone determines which
    organisation is accessed; there is no tenant parameter on any endpoint.
    Every endpoint is read-only (GET) except `POST /transactions`, which pushes
    transactions in and requires the `transactions:write` scope.
  contact:
    name: Ledgitify
    url: https://ledgitify.com
servers:
  - url: https://ledgitify.com/api/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Projects
    description: Projects and their budget-vs-actual reports
  - name: Allocations
    description: Allocations recorded against a project's budget lines
  - name: Transactions
    description: Organisation-level accounting transactions
paths:
  /projects/{id}/allocations:
    get:
      tags:
        - Allocations
      summary: Project allocations
      description: >-
        The allocations recorded against the project's budget lines. Requires
        the `allocations:read` scope.
      operationId: getProjectAllocations
      parameters:
        - $ref: '#/components/parameters/ProjectId'
      responses:
        '200':
          description: Allocations for the project.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Allocation'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    ProjectId:
      name: id
      in: path
      required: true
      description: The project id.
      schema:
        type: string
  schemas:
    Allocation:
      type: object
      required:
        - budgetLineId
        - amount
        - date
        - description
      properties:
        budgetLineId:
          type: string
        amount:
          type: number
        date:
          type: string
          format: date-time
          description: The date of the underlying transaction.
        description:
          type: string
        contact:
          type:
            - string
            - 'null'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - forbidden
                - insufficient_scope
                - not_found
                - rate_limited
            message:
              type: string
  responses:
    Unauthorized:
      description: Missing, malformed, unknown, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid or revoked API key.
    Forbidden:
      description: >-
        The plan does not include API access, or the key lacks the required
        scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            planGate:
              value:
                error:
                  code: forbidden
                  message: API access is not available on this plan.
            scope:
              value:
                error:
                  code: insufficient_scope
                  message: This key lacks the reports:read scope.
    NotFound:
      description: The project was not found in your organisation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: Project not found.
    RateLimited:
      description: Per-key rate limit exceeded (120 requests/minute).
      headers:
        Retry-After:
          description: Seconds until the limit resets.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: The per-minute request limit.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Rate limit exceeded.
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: lk_live_...
      description: >-
        API key as a Bearer token: `Authorization: Bearer lk_live_<48 hex>`.
        Create keys in Settings → API keys (Owner or Admin); the full key is
        shown once. API access is a Professional+ feature. Each key is granted
        one or more scopes — read (`projects:read`, `reports:read`,
        `allocations:read`, `transactions:read`) and the single write scope
        (`transactions:write`) — and is limited to 120 requests per minute.

````