---
title: "Fetch the messages for a ticker."
method: GET
path: "/timeline"
tags: ["public"]
---

# Fetch the messages for a ticker.

`GET /timeline`

Endpoint to retrieve the messages from a ticker. The endpoint has a pagination to fetch newer or older
messages. It is mandatory that the browser sends the origin as a header. This can be overwritten with
a query parameter.

## Query parameters

- `origin` string
- `limit` integer
- `before` integer
- `after` integer

## Headers

- `origin` string

## Response `200`

OK

- ResponseTimelineResponse
  - `data` object
    - `messages` object[]
      - `id` integer
      - `createdAt` string
      - `text` string
      - `geoInformation` string
      - `attachments` object[]
        - `url` string
        - `contentType` string
  - `status` string
  - `error` ResponseError
    - `code` integer
    - `message` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/systemli/apis/ticker-api.md) · [All operations](https://skmtc.dev/systemli/apis/ticker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/systemli/ticker-api/revisions/5bad141d9244/schema)
