Read a subscription's full destination
curl --request GET \
--url https://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint"
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://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"endpoint": "https://hooks.example.com/ingest"
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}Read a subscription's full destination
Returns the full, unmasked delivery destination of one subscription of the authenticated tenant. The list and detail routes return only endpoint_display. Authorization checks the resource subscriptions and the action post, the same permission that creates a subscription. An absent, soft-deleted, or cross-tenant id returns the same uniform 404 not_found as the detail route.
GET
/
v1
/
subscriptions
/
{id}
/
endpoint
Read a subscription's full destination
curl --request GET \
--url https://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint"
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://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://streaming-hub.sandbox.lerian.net/v1/subscriptions/{id}/endpoint"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"endpoint": "https://hooks.example.com/ingest"
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}{
"title": "Not Found",
"status": 404,
"type": "https://errors.lerian.studio/v1/not_found",
"detail": "subscription not found",
"code": "not_found",
"instance": "4bf92f3577b34da6a3ce929d0e0e4736",
"errors": [
{
"location": "event_types/2",
"message": "\"transaction.creatd\" has no catalog entry at schema major 1"
}
]
}Autorizaciones
A bearer JWT issued by Access Manager. The /v1 surface never reads a tenant from the body, path, or query. Machine callers obtain a token with the Access Manager client-credentials flow. The /admin surface authorizes against an operator scope and carries no tenant context.
¿Esta página le ayudó?

