List the tenant's hub subscriptions
curl --request GET \
--url https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"subscriptions": [
{
"created_at": "2026-01-15T12:00:00Z",
"credential_kind": "signing_secret",
"enabled": true,
"endpoint_display": "https://hooks.example.com",
"id": "0192f1a0-0000-7000-8000-00000000c001",
"name": "orders-webhook",
"plan_tier": "standard",
"secret_configured": true,
"secret_overlap_until": "2026-01-16T09:30:00Z",
"secret_rotated_at": "2026-01-15T09:30:00Z",
"signature_version": 1,
"sink_kind": "webhook",
"updated_at": "2026-01-15T12:00:00Z",
"verification_state": "active",
"delegated_scope": "Rk9ORE8tQQ==",
"event_majors": {
"loan_application.disbursed": 2
},
"event_types": [
"<string>"
],
"origin": "midaz",
"schema_major": 2,
"timeout_ms": 20000
}
],
"next_cursor": "<string>"
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}List the tenant's hub subscriptions
Returns the tenant’s streaming-hub subscriptions (keyset-paginated). Tenant scope is derived from the validated identity; it is never taken from the request.
GET
/
v1
/
subscriptions
List the tenant's hub subscriptions
curl --request GET \
--url https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://br-consignado-gw.sandbox.lerian.net/v1/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"subscriptions": [
{
"created_at": "2026-01-15T12:00:00Z",
"credential_kind": "signing_secret",
"enabled": true,
"endpoint_display": "https://hooks.example.com",
"id": "0192f1a0-0000-7000-8000-00000000c001",
"name": "orders-webhook",
"plan_tier": "standard",
"secret_configured": true,
"secret_overlap_until": "2026-01-16T09:30:00Z",
"secret_rotated_at": "2026-01-15T09:30:00Z",
"signature_version": 1,
"sink_kind": "webhook",
"updated_at": "2026-01-15T12:00:00Z",
"verification_state": "active",
"delegated_scope": "Rk9ORE8tQQ==",
"event_majors": {
"loan_application.disbursed": 2
},
"event_types": [
"<string>"
],
"origin": "midaz",
"schema_major": 2,
"timeout_ms": 20000
}
],
"next_cursor": "<string>"
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Autorizações
JWT bearer token issued by the identity provider.
Cabeçalhos
Bearer token. A tenant route relays it to the streaming-hub as server-to-server auth.
Parâmetros de consulta
Keyset pagination cursor (the previous page's next_cursor).
Maximum subscriptions to return.
Intervalo obrigatório:
1 <= x <= 200Optional exact subscription name; the hub trims it. A match is a page of one; an empty page means no live subscription in the caller's own scope holds the name, so the caller's own create of it would be accepted. Omitted, every subscription is listed.
Esta página foi útil?

