Inbound RTB life logs by request
GET
/api/v1/inbound-rtb/requests/{request_id}/life-logs
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://external-api.moja-ai.com/api/v1/inbound-rtb/requests/example/life-logs"), Headers = { { "X-API-Key", "<X-API-Key>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://external-api.moja-ai.com/api/v1/inbound-rtb/requests/example/life-logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<X-API-Key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://external-api.moja-ai.com/api/v1/inbound-rtb/requests/example/life-logs';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://external-api.moja-ai.com/api/v1/inbound-rtb/requests/example/life-logs \ --header 'X-API-Key: <X-API-Key>'Life log events for an inbound RTB request ID, scoped to the organization from your API key. Same data as GET /inbound_rtb/life-logs/by-request/{request_id} in the product API, authenticated with an organization API key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”request_id
required
Request Id
string
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
LifeLogsByRequestResponse
object
events
required
Events
Array<object>
LifeLogEventobject
id
required
Id
string
inbound_rtb_id
required
Inbound Rtb Id
string
event_time
required
Event Time
string
title
required
Title
string
details
Details
object
key
additional properties
any
rtb_context
required
LifeLogRtbContext
object
campaign_name
required
Campaign Name
string
publisher_name
required
Publisher Name
string
request_id
required
Request Id
string
summary
required
LifeLogsSummary
object
total_events
required
Total Events
integer
unique_rtb_configs
required
Unique Rtb Configs
integer
Examplegenerated
{ "events": [ { "id": "example", "inbound_rtb_id": "example", "request_id": "example", "event_time": "example", "title": "example", "details": {}, "rtb_context": { "campaign_name": "example", "publisher_name": "example" } } ], "request_id": "example", "summary": { "total_events": 1, "unique_rtb_configs": 1 }}Bad Request
Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Unauthorized
Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Not Found
Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Conflict
Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}Too Many Requests
Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{ "detail": { "code": "example", "message": "example" }}Data store unavailable or disabled

