List the documents this tenant files
curl --request GET \
--url http://localhost:4005/v1/regulatory/subscriptions \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4005/v1/regulatory/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('http://localhost:4005/v1/regulatory/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4005/v1/regulatory/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"adoptedVersion": "1.0.0",
"adoptionHistory": [
{
"adoptedAt": "2026-01-01T00:00:00Z",
"adoptedBy": "operator@bank.example",
"version": "1.1.0",
"supersedes": "1.0.0"
}
],
"bindingVersion": 3,
"createdAt": "2026-01-01T00:00:00Z",
"documentId": "br.bcb.cadoc-4010",
"id": "00000000-0000-0000-0000-000000000000",
"status": "active",
"updatedAt": "2026-01-01T00:00:00Z",
"version": 1,
"deactivatedAt": "2026-01-01T00:00:00Z",
"deactivatedBy": "acme/00000000-0000-0000-0000-000000000000",
"institutionId": "00000000-0000-0000-0000-000000000000",
"reactivatedAt": "2026-01-01T00:00:00Z",
"reactivatedBy": "acme/00000000-0000-0000-0000-000000000000"
}
]
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"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": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"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": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"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 documents this tenant files
Returns the tenant’s subscriptions, newest first. A cancelled one is kept and listed as inactive: reports already generated point at it, and their provenance has to stay readable.
GET
/
v1
/
regulatory
/
subscriptions
List the documents this tenant files
curl --request GET \
--url http://localhost:4005/v1/regulatory/subscriptions \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4005/v1/regulatory/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('http://localhost:4005/v1/regulatory/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4005/v1/regulatory/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"adoptedVersion": "1.0.0",
"adoptionHistory": [
{
"adoptedAt": "2026-01-01T00:00:00Z",
"adoptedBy": "operator@bank.example",
"version": "1.1.0",
"supersedes": "1.0.0"
}
],
"bindingVersion": 3,
"createdAt": "2026-01-01T00:00:00Z",
"documentId": "br.bcb.cadoc-4010",
"id": "00000000-0000-0000-0000-000000000000",
"status": "active",
"updatedAt": "2026-01-01T00:00:00Z",
"version": 1,
"deactivatedAt": "2026-01-01T00:00:00Z",
"deactivatedBy": "acme/00000000-0000-0000-0000-000000000000",
"institutionId": "00000000-0000-0000-0000-000000000000",
"reactivatedAt": "2026-01-01T00:00:00Z",
"reactivatedBy": "acme/00000000-0000-0000-0000-000000000000"
}
]
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"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": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"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": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"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"
}
}Was this page helpful?

