API
← Shop

Decos API

A simple REST API for ordering Discord decorations, nameplates and bundles. Price an item, place an order, poll for the gift link.

Base URLhttps://decos.gift
AuthX-API-Key header, every request
FormatJSON over HTTPS
Billingcharged to your balance, per order

Charged from your balance at your reseller rate. Get API access.

Quickstart

Grab your key from the dashboard, place an order, then poll until it is delivered.

# place the order (charges your balance) curl -X POST https://decos.gift/api/v1/order \ -H "X-API-Key: deco_xxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{"links": "1207048049571139584"}' # {"order_id": "3f2a9c7b4e1d8a06f5b2c9d4e7a1b0c3", "total": 1.21, "status": "paid"} # poll until delivered, then read codes curl https://decos.gift/api/v1/order/3f2a9c7b4e1d8a06f5b2c9d4e7a1b0c3 \ -H "X-API-Key: deco_xxxxxxxxxxxxxxxxxxxxxxxx"

Authentication

Send your key in the X-API-Key header on every request. Find and rotate it in the dashboard. A planless or expired key returns 403. Keep the key server-side; it can spend your balance.

X-API-Key: deco_xxxxxxxxxxxxxxxxxxxxxxxx
POST/api/v1/quote

Price one or more items at your reseller rate. No charge, nothing ordered.

Body fieldTypeDescription
links requiredstringOne or more items, newline-separated. Each line is a shop URL or a bare SKU id.
curl -X POST https://decos.gift/api/v1/quote \ -H "X-API-Key: deco_..." \ -H "Content-Type: application/json" \ -d '{"links": "1207048049571139584"}' # 200 OK { "items": [{ "sku": "1207048049571139584", "name": "Earth", "price": 1.21 }], "total": 1.21, "errors": [] }
ResponseTypeDescription
itemsarrayPriced items: sku, name, price (your rate, EUR).
totalnumberSum of item prices.
errorsarrayLinks that could not be priced (unknown or blacklisted SKU).
POST/api/v1/order

Charges your balance and queues the gifts. One item per line. The call returns once the charge clears; poll the status endpoint for the gift links.

Body fieldTypeDescription
links requiredstringItems to order, newline-separated. Same format as quote.
curl -X POST https://decos.gift/api/v1/order \ -H "X-API-Key: deco_..." \ -H "Content-Type: application/json" \ -d '{"links": "1207048049571139584\n1341506443693522944"}' # 200 OK { "order_id": "3f2a9c7b4e1d8a06f5b2c9d4e7a1b0c3", "total": 2.36, "status": "paid" } # 402 if your balance is too low { "err": "insufficient balance", "needed": 2.36 }
ResponseTypeDescription
order_idstringPass it to the status endpoint.
totalnumberAmount charged to your balance (EUR).
statusstringpaid, queued for fulfillment.
GET/api/v1/order/{order_id}

Poll until the status is delivered, partial or failed, then read the gift links from codes. You can only read your own orders.

curl https://decos.gift/api/v1/order/3f2a9c7b4e1d8a06f5b2c9d4e7a1b0c3 \ -H "X-API-Key: deco_..." # 200 OK { "id": "3f2a9c7b4e1d8a06f5b2c9d4e7a1b0c3", "status": "delivered", "codes": ["https://discord.gift/xxxxxxxxxxxxxxxx"], "total": 2.36 }
ResponseTypeDescription
idstringThe order id.
statusstringSee statuses below.
codesarrayDelivered discord.gift links. Empty until delivered.
totalnumberAmount charged (EUR).
GET/api/v1/random

Get random items at your price — decorations, nameplates, effects and frames (never bundles), preferring ones already in stock. ?n= how many, ?basis= limits to a single Discord price tier, e.g. 4.99.

QueryTypeDescription
nnumberHow many to return (default 1).
basisnumberOptional. Only items from this Discord price tier.
curl "https://decos.gift/api/v1/random?n=3&basis=4.99" -H "X-API-Key: deco_..." # 200 OK { "items": [{ "sku": "…", "name": "…", "price": 1.21, "kind": "Decoration", "image": "…" }], "count": 3 }

Order random items in one call: POST /api/v1/order with { "random": 5 } (optionally "basis": 4.99) charges your balance and queues 5 random items.

Order statuses

Charged, waiting in the queue.
processingBeing bought now (about a minute each).
deliveredDone. Gift links are in codes.
partialSome items delivered, some failed. Failed items are refunded to balance.
failedCould not buy. Balance refunded.

delivered, partial and failed are terminal. Stop polling at any of them.

Errors

Errors return a non-2xx status and a JSON body with an err string.

StatuserrMeaning
400no valid itemsNothing priced. Check errors in the body.
401invalid api keyMissing or wrong X-API-Key.
403API access requires a planKey is valid but the plan is inactive or expired.
402insufficient balanceTop up. The shortfall is in needed.
404not foundUnknown order id, or not one of yours.
429slow downRate limited. Back off and retry.
503maintenanceBuying is paused. Retry shortly.

Rate limits

A few requests per second is fine. On a 429, back off and retry. Orders fulfil one at a time, so polling faster than once a second per order does not speed anything up.

Building with an AI agent? The whole API in one plain-text file, written for LLMs: decos.gift/llms.txt. Need a higher limit, or stuck? Message us on Telegram @chamanog.