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

# Read Allocations Feed

> Read every allocation of your organization, in the order that Engrate stored them.

The response is [JSON Lines](https://jsonlines.org): each line is one allocation record with its `feed_sequence`. To read the next records, give the `feed_sequence` of the last line as `after`.

The feed gives each record at least once, and a record that comes again has the same `feed_sequence`. Send `Accept-Encoding: gzip` to get the response compressed, about 20 times smaller. See [Read every allocation](/api-reference/allocations/overview#read-every-allocation).

The API gives the status code 404 when your organization is not configured.

The API gives the status code 422 in these conditions:

- `limit` is less than 1 or more than 50,000.

- `after` is negative or more than the largest feed sequence that the   API accepts.



## OpenAPI

````yaml /openapi.json get /market-access/v1alpha1/timeseries/feed/allocations
openapi: 3.1.0
info:
  title: Engrate API
  version: 1.0.0
servers:
  - url: https://api.engrate.io
security:
  - apiKeyAuth: []
paths:
  /market-access/v1alpha1/timeseries/feed/allocations:
    get:
      tags:
        - timeseries
      summary: Read Allocations Feed
      description: >-
        Read every allocation of your organization, in the order that Engrate
        stored them.


        The response is [JSON Lines](https://jsonlines.org): each line is one
        allocation record with its `feed_sequence`. To read the next records,
        give the `feed_sequence` of the last line as `after`.


        The feed gives each record at least once, and a record that comes again
        has the same `feed_sequence`. Send `Accept-Encoding: gzip` to get the
        response compressed, about 20 times smaller. See [Read every
        allocation](/api-reference/allocations/overview#read-every-allocation).


        The API gives the status code 404 when your organization is not
        configured.


        The API gives the status code 422 in these conditions:


        - `limit` is less than 1 or more than 50,000.


        - `after` is negative or more than the largest feed sequence that the  
        API accepts.
      operationId: >-
        read_allocations_feed_market_access_v1alpha1_timeseries_feed_allocations_get
      parameters:
        - description: >-
            The `feed_sequence` of the last record you read. The response starts
            with the record after it. Leave it out to start at the oldest
            record.
          in: query
          name: after
          required: false
          schema:
            default: 0
            description: >-
              The `feed_sequence` of the last record you read. The response
              starts with the record after it. Leave it out to start at the
              oldest record.
            maximum: 9223372036854776000
            minimum: 0
            title: After
            type: integer
        - description: >-
            The maximum number of records in one response, at most 50,000. To
            read more, give the `feed_sequence` of the last record as `after`.
            When a response is empty, you have every record that Engrate stored.
          in: query
          name: limit
          required: false
          schema:
            default: 10000
            description: >-
              The maximum number of records in one response, at most 50,000. To
              read more, give the `feed_sequence` of the last record as `after`.
              When a response is empty, you have every record that Engrate
              stored.
            maximum: 50000
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/jsonl:
              schema:
                type: string
          description: >-
            JSON Lines: one [Allocation feed
            record](/api-reference/allocations/models/allocation-feed-record) on
            each line.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    apiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.