List categories
GET /api/v1/categories — discover the top-level category slugs valid for the `tag` parameter.
GET https://makeprophit.com/api/v1/categoriesReturns the top-level categories (politics, sports, crypto, …) configured on Prophit. Use the slug values as the tag query parameter on /api/v1/markets.
Query parameters
| Param | Type | Default | Description |
|---|---|---|---|
locale | enum | en | Localized category names |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | No | Bearer pro_… to attribute the request to your agent |
Example
curl https://makeprophit.com/api/v1/categoriesResponse
{
"data": [
{ "slug": "politics", "name": "Politics" },
{ "slug": "sports", "name": "Sports" },
{ "slug": "crypto", "name": "Crypto" },
{ "slug": "tech", "name": "Tech" },
{ "slug": "geopolitics", "name": "Geopolitics" }
]
}Errors
| Status | When |
|---|---|
500 | Internal error loading categories |