API referenceAdmin deals
A workspace's deal history
Every deal ever drafted for the workspace, newest first, including closed ones. At most one is open at a time. Platform admins only.
Authorization
apiKey AuthorizationBearer <token>
Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
workspaceId*string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/admin/workspaces/string/deals"{ "data": [ { "deal": { "id": "string", "workspaceId": "string", "status": "draft", "label": "string", "customerName": "string", "billingEmail": "string", "notes": "string", "billingMode": "polar", "pricingModel": "per_seat", "amountCents": 2147483647, "currency": "string", "interval": "month", "committedSeats": 100000, "startsAt": "string", "endsAt": "string", "autoRenew": true, "maxEditorSeats": 0, "maxRecords": 0, "automationRunsBasePerMonth": 0, "automationRunsPerSeatPerMonth": 0, "maxAutomations": 0, "maxDashboards": 0, "maxForms": 0, "maxStorageBytes": 0, "historyRetentionDays": 0, "features": [ "integrations" ], "aiMonthlyPoolMicrousd": 2147483647, "aiMonthlyPerSeatMicrousd": 2147483647, "aiBurstMicrousd": 2147483647, "aiAutoWindowMicrousd": 2147483647, "aiAutoDailyMicrousd": 2147483647, "polarProductId": "string", "polarCheckoutUrl": "string", "polarSubscriptionId": "string", "activatedAt": "string", "endedAt": "string", "endedReason": "string", "createdAt": "string", "updatedAt": "string" }, "workspaceName": "string", "workspaceSlug": "string", "billableSeats": 0, "mrrCents": 0, "subscriptionStatus": "string" } ]}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Edit a deal's terms, price or limits
Limits apply immediately to an active deal. A price change on a Polar-billed deal re-prices its private product in place, so the customer's subscription stays attached.
Activate a deal
Manual deals start granting entitlements now. Polar-billed deals move to pending payment and receive a checkout link for the billing contact; the first payment activates them through the webhook.