List outbound messages of every code
curl --request GET \
--url https://api.example.com/api/v1/siloc/outbound/messages \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/siloc/outbound/messages"
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://api.example.com/api/v1/siloc/outbound/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/siloc/outbound/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"attempts": 123,
"codMsg": "<string>",
"heldForAnswer": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"numCtrlIF": "<string>",
"nuop": "<string>",
"status": "SUBMITTED",
"submittedAt": "2023-11-07T05:31:56Z",
"answeredAt": "2023-11-07T05:31:56Z",
"closeRequest": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"requestedAt": "2023-11-07T05:31:56Z",
"requestedBy": "<string>",
"status": "PENDING",
"numCtrl": "<string>",
"outcome": "SETTLED",
"parkedAnswerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"settledAt": "2023-11-07T05:31:56Z",
"situation": "<string>"
},
"codProdt": "<string>",
"dispatchedAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"parkedAnswers": [
{
"codMsg": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": "<string>",
"status": "PENDING",
"rejectReason": "<string>"
}
]
}
]
}{
"code": "<string>",
"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": "<string>",
"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": "<string>",
"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 outbound messages of every code
Every message this institution has issued to the câmara, newest first, whatever its code. Narrow with status to work a backlog: FAILED is the set the rail will never deliver as stored and an operator has to act on, REFUSED the set the câmara received and returned as its E twin, and this list is the only way to see a message whose code this build does not recognise. The projection is the columns every SFN request carries; the stored request is not interpreted here, so read a code’s own operation for its own fields.
GET
/
api
/
v1
/
siloc
/
outbound
/
messages
List outbound messages of every code
curl --request GET \
--url https://api.example.com/api/v1/siloc/outbound/messages \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/siloc/outbound/messages"
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://api.example.com/api/v1/siloc/outbound/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/siloc/outbound/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"attempts": 123,
"codMsg": "<string>",
"heldForAnswer": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"numCtrlIF": "<string>",
"nuop": "<string>",
"status": "SUBMITTED",
"submittedAt": "2023-11-07T05:31:56Z",
"answeredAt": "2023-11-07T05:31:56Z",
"closeRequest": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"requestedAt": "2023-11-07T05:31:56Z",
"requestedBy": "<string>",
"status": "PENDING",
"numCtrl": "<string>",
"outcome": "SETTLED",
"parkedAnswerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"settledAt": "2023-11-07T05:31:56Z",
"situation": "<string>"
},
"codProdt": "<string>",
"dispatchedAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"parkedAnswers": [
{
"codMsg": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": "<string>",
"status": "PENDING",
"rejectReason": "<string>"
}
]
}
]
}{
"code": "<string>",
"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": "<string>",
"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": "<string>",
"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"
}
}Query Parameters
Was this page helpful?

