Skip to main content
GET
/
api
/
approval-policies
List all approval policies for the authenticated organization
curl --request GET \
  --url https://app.solya.app/api/approval-policies \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "actionFamily": "RESTOCK_PLAN",
      "createdAt": "2026-01-10T08:00:00.000Z",
      "createdBy": "user-uuid-1",
      "id": "policy-uuid-1",
      "isActive": true,
      "name": "High-value restock approval",
      "organizationId": "org-uuid-1",
      "scopeBrandIds": [],
      "scopeCollections": [],
      "scopeShopIds": [
        "shop-uuid-1"
      ],
      "scopeSupplierIds": [],
      "thresholdValue": 50000,
      "updatedAt": null,
      "updatedBy": null
    },
    {
      "actionFamily": null,
      "createdAt": "2026-01-05T08:00:00.000Z",
      "createdBy": "user-uuid-1",
      "id": "policy-uuid-2",
      "isActive": true,
      "name": "Global approval threshold",
      "organizationId": "org-uuid-1",
      "scopeBrandIds": [],
      "scopeCollections": [],
      "scopeShopIds": [],
      "scopeSupplierIds": [],
      "thresholdValue": 100000,
      "updatedAt": null,
      "updatedBy": null
    }
  ],
  "total": 2
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true