Loot boxes

Endpoint to fetch all loot boxes for a program

get
Authorizations
X-API-KeystringRequired
Query parameters
limitnumberOptional

Amount of loot boxes to return (max 100).

offsetnumberOptional

Index to start at.

Responses
200

Successful response

application/json
get
/v2/admin/loot-boxes
200

Successful response

Endpoint to create a loot box

post
Authorizations
X-API-KeystringRequired
Body
descriptionstringRequired

Description of the Lootbox object.

namestringRequired

Name/title of the Lootbox object.

sponsor_namestringOptional

Lootbox sponsor name.

sponsor_descriptionstringOptional

Lootbox sponsor description.

recurring_interval_minutesnumberOptional

Interval indicating how often a Lootbox can be granted.

image_box_together_b64stringOptional

Base 64 string of the combined Lootbox image.

image_box_together_urlstringOptional

URL of the combined Lootbox image.

background_gradient_start_colorstringOptional

Hexadecimal color value for the start of the gradient.

background_gradient_stop_colorstringOptional

Hexadecimal color value for the end of the gradient.

reward_sequence_animation_typestringOptional

Animation type dictating how a rewarded Lootbox is presented.

is_sign_up_rewardbooleanOptional

Boolean flag indicating if the Lootbox should be rewarded at signup.

Responses
200

Successful response

application/json
post
/v2/admin/loot-boxes
200

Successful response

Get the Loot Box with the given ID.

get
Authorizations
X-API-KeystringRequired
Path parameters
loot_box_idstringRequired

the ID of the Loot Box

Responses
200

Successful response

application/json
get
/v2/admin/loot-boxes/{loot_box_id}
200

Successful response

Updates the lootbox with the provided fields.

patch
Authorizations
X-API-KeystringRequired
Path parameters
loot_box_idnumberRequired
Body
descriptionstringRequired

Description of the Lootbox object.

namestringRequired

Name/title of the Lootbox object.

sponsor_namestringOptional

Lootbox sponsor name.

sponsor_descriptionstringOptional

Lootbox sponsor description.

recurring_interval_minutesnumberOptional

Interval indicating how often a Lootbox can be granted.

image_box_together_b64stringOptional

Base 64 string of the combined Lootbox image.

image_box_together_urlstringOptional

URL of the combined Lootbox image.

background_gradient_start_colorstringOptional

Hexadecimal color value for the start of the gradient.

background_gradient_stop_colorstringOptional

Hexadecimal color value for the end of the gradient.

reward_sequence_animation_typestringOptional

Animation type dictating how a rewarded Lootbox is presented.

is_sign_up_rewardbooleanOptional

Boolean flag indicating if the Lootbox should be rewarded at signup.

Responses
200

Successful response

application/json
patch
/v2/admin/loot-boxes/{loot_box_id}
200

Successful response