Skip to main content
GET
Get a single Allocation by query

Authorizations

Authorization
string
header
required

Bearer authentication. Pass the access token in the Authorization: Bearer <token> header.

Query Parameters

ttype
enum<string> | null

Target type (ad_unit | placement)

Available options:
ad_unit,
placement
tid
string<uuid>[] | null

Target ID(s) — repeatable: ?tid=X&tid=Y

rtype
enum<string> | null

Resource type (line_item | recommendation_policy)

Available options:
line_item,
recommendation_policy
rid
string<uuid> | null

Resource ID

status
enum<string> | null

Allocation status

Available options:
pending,
requested,
published,
rejected,
canceled,
finished
owner_id
string<uuid> | null

Owner ID

Response

Successful Response

Response schema for allocation read operations — includes enriched name fields.

created_at
string<date-time>
required
owner_id
string<uuid>
required

Owner ID

rid
string<uuid>
required

Resource ID (line_items.id or recommendation_policies.id)

rtype
enum<string>
required

Resource type allocated to the target (line_item / recommendation_policy)

Available options:
line_item,
recommendation_policy
tid
string<uuid>
required

Target ID (ad_units.id or placements.id)

ttype
enum<string>
required

Target type (ad_unit / placement)

Available options:
ad_unit,
placement
updated_at
string<date-time>
required
ext
AllocationExt · object

for various configuration

id
string<uuid> | null
last_comment
string
default:""

Last comment

line_item_end_date
string<date-time> | null

End date of the line item

line_item_name
string | null

Name of the line item

line_item_oid
string<uuid> | null

Order ID of the line item

line_item_start_date
string<date-time> | null

Start date of the line item

line_item_status
string | null

Status of the line item

no
integer
default:0

ID of the allocation

owner_name
string | null

Name of the allocation owner

status
enum<string>
default:pending

The current status of the allocation (e.g. pending, published, rejected)

Available options:
pending,
requested,
published,
rejected,
canceled,
finished
target_ext
AdUnitExt · object | null

Ext of the target (ad_unit only)

target_name
string | null

Name of the target (ad unit or placement)