You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: docs/dev-guide/api.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2083,16 +2083,16 @@ Connection: keep-alive
2083
2083
2084
2084
### Read Messages
2085
2085
2086
-
Reads messages from database for a given channel
2086
+
Reads messages from database for a given channel.
2087
2087
2088
2088
```bash
2089
-
curl -sSiX GET http://localhost:<service_port>/m/<domain_id>/c/<channel_id>?[offset=<offset>]&[limit=<limit>] -H "Authorization: Client <client_secret>"
2089
+
curl -sSiX GET http://localhost:<service_port>/<domain_id>/channels/<channel_id>/messages?[offset=<offset>]&[limit=<limit>] -H "Authorization: Bearer <access_token>"
2090
2090
```
2091
2091
2092
-
For example:
2092
+
For example
2093
2093
2094
2094
```bash
2095
-
curl -sSiX GET http://localhost:9009/m/6a45444c-4c89-46f9-a284-9e731674726a/c/aecf0902-816d-4e38-a5b3-a1ad9a7cf9e8 -H "Authorization: Client a83b9afb-9022-4f9e-ba3d-4354a08c273a"
2095
+
curl -sSiX GET http://localhost:9009/6a45444c-4c89-46f9-a284-9e731674726a/channels/aecf0902-816d-4e38-a5b3-a1ad9a7cf9e8/messages -H "Authorization: Client a83b9afb-9022-4f9e-ba3d-4354a08c273a"
2096
2096
2097
2097
HTTP/1.1 200 OK
2098
2098
Content-Type: application/json
@@ -2135,6 +2135,11 @@ Content-Length: 660
2135
2135
}
2136
2136
```
2137
2137
2138
+
>**Note**: The `<service_port>` depends on the **active reader service** you're using. The example above uses the **HTTP interface** of the Postgres Reader.
2139
+
>
2140
+
> - Use `9009` for the **Postgres Reader** (HTTP)
2141
+
> - Use `9011` for the **Timescale Reader** (HTTP)
0 commit comments