Skip to content

Allocations for an inbound RTB request

GET
/api/v1/inbound-rtb/allocations/by-request/{request_id}
curl --request GET \
--url https://external-api.moja-ai.com/api/v1/inbound-rtb/allocations/by-request/example \
--header 'X-API-Key: <X-API-Key>'
request_id
required
Request Id
string
X-API-Key
Any of:
string

Successful Response

Media typeapplication/json
InboundRtbAllocationsByRequestResponse
object
data
required
Data
Array<object>
InboundRtbAllocationRow
object
id
Any of:
integer
inbound_rtb_id
Any of:
string
number_id
Any of:
string
buyer_id
Any of:
string
buyer_name
Any of:
string
routing_plan_id
Any of:
string
call_log_id
Any of:
string
request_id
Any of:
string
target_number
Any of:
string
target_type
Any of:
string
target_name
Any of:
string
payout
Any of:
number
target_payout
Any of:
number
payout_condition
Any of:
string
payout_condition_duration
Any of:
integer
start_date
Any of:
string format: date-time
expiry_date
Any of:
string format: date-time
created_at
Any of:
string format: date-time
updated_at
Any of:
string format: date-time
key
additional properties
any
Examplegenerated
{
"data": [
{
"id": 1,
"inbound_rtb_id": "example",
"number_id": "example",
"buyer_id": "example",
"buyer_name": "example",
"routing_plan_id": "example",
"call_log_id": "example",
"request_id": "example",
"target_number": "example",
"target_type": "example",
"target_name": "example",
"payout": 1,
"target_payout": 1,
"payout_condition": "example",
"payout_condition_duration": 1,
"start_date": "2026-04-15T12:00:00Z",
"expiry_date": "2026-04-15T12:00:00Z",
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z"
}
]
}

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>
ValidationError
object
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"
}
}