Agoo Market Shop Business API
Scoped endpoints for Shop Business sellers to create, change and pause listings and read their shop's insights.
Shops on the Shop Business plan can connect their stock system to Agoo Market with scoped API keys. A listing made through the API goes through every listing check, exactly like one made on the website: it's held for review or goes live in just the same way. Photos are added on the website or in the Agoo Market app.
Keys and Scopes
An owner creates a key under Your Account → Your Shop → Shop Business API Keys on the Agoo Market website. Keys are only for shops on Shop Business. The full key is shown once, when it's made; copy it then. Send it on every request:
Authorization: Bearer <your-shop-api-key>Each key carries the scopes chosen when it was made:
| Scope | Lets the key |
|---|---|
listings:read | List your shop's listings. |
listings:write | Create, change and pause your shop's listings. |
insights:read | Read your shop's views, saves, chats and deals by period. |
A key stops working at once when it's revoked, when the plan ends after its 7-day grace period, or when the shop is paused. A key reads and changes only its own shop's listings.
Test Keys
A test key (agoo_mk_test_…) runs every check a live key does and answers the same way, with "livemode": false, but never saves anything: no listing is made, changed or paused. Use it to try your integration, then switch to a live key. Every answer carries livemode.
Writes Need an Idempotency Key
Send an Idempotency-Key header on every POST and PATCH, a new UUID for each new change. If a request times out, send it again with the same key and the same body: you get the first answer back, with "replayed": true, and nothing is made twice, even when the two requests arrive at the same moment. The same key with a different body is refused with 422 and the code idempotency_key_reused. See idempotency.
List Your Listings
GET/market/shop-api/v1/listingsNeeds listings:read. Your shop's listings, newest first, in pages: limit (up to 100, 50 if you leave it out) and after, the next value from the page before. Each item has its id, title, state, category, price_pesewas, condition, live_at and updated_at; next is empty on the last page.
Create a Listing
POST/market/shop-api/v1/listingsNeeds listings:write. The listing goes through every listing check, exactly as one made on the website. Add its photos on the website or in the app.
POST /v1/market/shop-api/v1/listings
Authorization: Bearer <your-shop-api-key>
Idempotency-Key: 2b8f6f9e-8c0e-4a63-9f43-2f1d0c7a51b4
Content-Type: application/json{
"category": "small-electronics",
"title": "Hisense 32-inch smart TV",
"condition": "like_new",
"price_pesewas": 180000,
"place": "Madina",
"region": "Greater Accra",
"description": "Shop display model with its remote and stand."
}| Field | Required | What it is |
|---|---|---|
category | Yes | The category's ID, as on the website. |
title | Yes | 3 to 80 characters. |
condition | Yes | new, like_new, good, fair or for_parts. |
price_pesewas | Yes | The asking price in pesewas, at least 100 (GH₵1). |
place | Yes | The area, a town or neighbourhood name such as Osu. |
region | No | The area's region. Needed when more than one place has the name: the answer is then 422 listing each one with its region and place ID. |
description | No | Up to 4,000 characters. |
details | No | The category's own details, as the website asks for them. |
The answer has the listing's id and its outcome:
outcome | What it means |
|---|---|
live | It passed the checks and buyers can see it. |
waiting | It's held for a person to look at, as some listings are on the website. You hear when it's decided. |
refused | It can't go yet; refused lists why in words, such as photos still to add. It stays a draft for you to finish. |
Change a Listing
PATCH/market/shop-api/v1/listings/{id}Needs listings:write. Send only the fields that change: title, description, price_pesewas, condition or details. A change buyers would see goes through the same checks as a change on the website.
Pause a Listing
POST/market/shop-api/v1/listings/{id}/pauseNeeds listings:write. Takes a live listing off the market until you make it live again on the website or in the app, for example when the item sells in your shop.
Read Your Shop's Insights
GET/market/shop-api/v1/insightsNeeds insights:read. Pass from and to as dates (YYYY-MM-DD), at most 26 weeks apart, for example ?from=2026-11-02&to=2026-11-29. The answer has the period's totals, each listing in by_listing, and each listing week by week in by_week:
{
"totals": { "listings": 8, "views": 812, "saves": 101, "chats": 47, "deals": 11 },
"by_listing": [{ "listing_id": "0195…", "title": "Hisense 32-inch smart TV", "views": 341, "saves": 42, "chats": 20, "deals": 3 }],
"by_week": [
{ "listing_id": "0195…", "title": "Hisense 32-inch smart TV", "week_start": "2026-11-23", "views": 52, "saves": 6, "chats": 3, "deals": 1 }
]
}Rate Limit
Each key can make 60 requests a minute. Over that, you get 429 with the code rate_limited and a Retry-After header saying how many seconds to wait. See rate limits.
Errors
Errors follow the API's usual problem details, each with a stable code:
| Status | Code | When |
|---|---|---|
401 | unauthorized | No key, a revoked key, or a shop no longer on Shop Business. |
403 | scope_missing | The key doesn't carry the scope this endpoint needs. |
403 | forbidden | The shop or the listing can't be changed now, for example while paused. |
404 | not_found | No listing with that ID in your shop. |
409 | conflict | The listing's state doesn't allow that, for example pausing a sold item. |
422 | idempotency_key_reused | The same Idempotency-Key was sent with a different body. |
422 | validation_failed | A field is missing or not allowed; errors lists each one and where. |
429 | rate_limited | More than 60 requests in a minute. Wait for the time Retry-After gives. |
A listing held for review isn't an error: it's a 200 with the outcome waiting.
The Same Rules as the Website
- A listing made through the API meets the same identity checks, listing checks, safety checks and live listing limit as one made on the website.
- Paying for Shop Business or using the API never skips a listing review, a device check or a safety rule.