Skip to main content

Organizations

Manage organizations, members, invitations, and billing. Organizations are the top-level entity of the platform, grouping users, projects, and resources under a shared namespace.

All endpoints require authentication via X-API-Key header and the appropriate scope.


Organization Object​

{
"_id": "org-admin-user-ecr5aqmqq",
"name": "Admin User's Organization",
"label": "Admin User (org-admin-user-ecr5aqmqq)",
"description": "Personal organization for Admin User",
"ownerId": "okRpaKPh8B9asdKb2",
"adminIds": [],
"billingEmail": "admin@strongly.ai",
"settings": {
"timezone": "America/New_York",
"currency": "USD",
"fiscalYearStart": 1
},
"credits": {
"balance": 0,
"lifetimeUsed": 0,
"lastUpdated": null,
"alertThresholds": [2000, 1000, 500, 0]
},
"status": "active",
"createdAt": "2026-04-26T16:07:16.269Z",
"updatedAt": "2026-04-26T16:07:16.269Z",
"createdBy": "okRpaKPh8B9asdKb2"
}
FieldDescription
_idOrganization ID, for example org-acme-7ohe2kqcw.
name, descriptionName and description. Names need not be unique.
labelHow to show the organization to a person, as every Strongly list does: <owner> (<organization id>), for example Admin User (org-admin-user-ecr5aqmqq). An owner whose account is archived is Deleted user <name>.
ownerIdUser ID of the organization's owner.
adminIdsUser IDs of additional administrators recorded on the organization. Membership and member roles are read with GET /api/v1/organizations/:id/members.
billingEmailWhere billing notifications are sent.
settingstimezone (IANA name), currency, and fiscalYearStart (month, 1-12).
creditsThe organization's stored credit record (amounts in credits). It is present on every organization but applies only when billing is enabled; read the balance with GET /api/v1/organizations/:id/credits, which answers 409 billing-disabled on platforms without billing.
statusactive, suspended, or archived.
createdAt, updatedAtISO 8601 UTC timestamps.
createdByUser ID of whoever created the organization.

On billing-enabled platforms an organization can also carry billingMode (saas, offering, or exempt) and its subscription details.

Member Object​

{
"_id": "mem_002",
"userId": "user_789",
"email": "bob@example.com",
"name": "Bob Johnson",
"role": "member",
"status": "active",
"joinedAt": "2024-08-20T14:00:00Z"
}

role is owner, admin, member or viewer. On Strongly Cloud a member also carries organizationId, invitedBy, platformRole and active (whether the account can sign in).

Invitation Object​

{
"_id": "inv_abc001",
"organizationId": "org_xyz",
"email": "newmember@example.com",
"role": "member",
"status": "pending",
"tokenExpiresAt": "2025-02-08T14:22:00Z",
"invitedBy": "user_456",
"createdAt": "2025-02-01T14:22:00Z"
}

role is admin, member or viewer. tokenExpiresAt is when the invitation link stops working. On Strongly Cloud an invitation can also carry platformRole and name, and a resent one resentAt and resentBy.


GET /api/v1/organizations​

List organizations, newest first. Platform administrators get every organization; everyone else gets the organizations they are an active member of.

Scope: organizations:read

Query Parameters

ParameterTypeRequiredDescription
statusstringNoOnly organizations with this status: active or suspended (any other is 400). Without it, both. An archived organization is never listed.
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.nextCursor of the previous page; omit for the first page

Response 200 OK

{
"data": [
{ "_id": "org-admin-user-ecr5aqmqq", "name": "Admin User's Organization", "status": "active", "...": "Organization object" }
],
"meta": { "total": 41, "limit": 50, "nextCursor": null, "requestId": "9bdf2457-3dbf-42ef-949f-d85d5f851215" }
}

Each item is a full Organization object. meta.total counts every matching organization; page with cursor while meta.hasMore is true.


GET /api/v1/organizations/:id​

Get a single organization by ID. An archived organization is not found (404).

Scope: organizations:read

Path Parameters

ParameterTypeRequiredDescription
idstringYesOrganization ID

Response 200 OK

{ "data": { "...": "Organization object" }, "meta": { "requestId": "2c6f1d8a-4b3e-4f0a-9e7d-5a1b8c3d2e10" } }

data is the full Organization object.


PATCH /api/v1/organizations/:id​

Update an organization's details.

Scope: organizations:write

Path Parameters

ParameterTypeRequiredDescription
idstringYesOrganization ID

Request Body

{
"name": "Acme Corporation",
"description": "Updated description",
"billingEmail": "billing@acme.example.com",
"settings": { "timezone": "Europe/London" }
}
FieldTypeRequiredDescription
namestringNoOrganization name: never empty or an email address (400 validation-error otherwise). Names need not be unique
descriptionstringNoOrganization description
billingEmailstringNoWhere billing notifications are sent
settingsobjectNoAny of timezone, currency, fiscalYearStart; merged into the current settings
statusstringNoactive, suspended or archived (on Strongly Cloud: platform administrators only). Archiving is refused (422 resource-in-use, naming what it holds) while the organization still holds a workload or other resource: transfer or delete them first. Archiving removes its Kubernetes namespace and suspends its memberships. An archived organization is never shown or changed through the API again: GET and PATCH answer 404.
alertThresholdsinteger[]NoCredits only: balances, in credits, at which the organization is alerted

Only an owner or admin of the organization, or a platform administrator, can update it. The credit fields exist only when billing is enabled; sending any of them otherwise returns 409 billing-disabled and changes nothing.

Response 200 OK

Returns the updated Organization object.


GET /api/v1/organizations/:id/members​

List all members of an organization.

Scope: organizations:read

Path Parameters

ParameterTypeRequiredDescription
idstringYesOrganization ID

Response 200 OK

{
"data": [
{
"_id": "mem_001",
"userId": "user_456",
"email": "sample@example.com",
"name": "Sample Person",
"role": "owner",
"status": "active",
"joinedAt": "2024-01-10T08:00:00Z"
},
{
"_id": "mem_002",
"userId": "user_789",
"email": "bob@example.com",
"name": "Bob Johnson",
"role": "member",
"status": "active",
"joinedAt": "2024-08-20T14:00:00Z"
}
],
"meta": { "requestId": "req_abc123" }
}

data holds the organization's active members. On Strongly Cloud each member also has platformRole and active (whether the account can sign in).

Every account belongs to exactly one organization, so nobody is added to one by id: a person joins an organization only by invitation, sent to an email address that has no account yet, and signs up into the organization from it. POST /organizations/:id/members is not a route (405, with Allow: GET).


DELETE /api/v1/organizations/:organizationId/members/:id​

Remove a member from the organization. The organization owner cannot be removed.

Scope: organizations:write

Path Parameters

ParameterTypeRequiredDescription
organizationIdstringYesOrganization ID
idstringYesUser ID of the member to remove

Response 200 OK

{
"data": {
"assetAction": "transfer",
"transferTo": "user_456",
"assetsHandled": {
"workflows": 2,
"projects": 1,
"volumes": 0,
"apps": 1,
"addons": 0,
"workspaces": 1,
"datasources": 0,
"prompts": 3,
"abTests": 0,
"routers": 0,
"aiModels": 0,
"guardrails": 0,
"mlModels": 0,
"total": 8
}
},
"meta": { "requestId": "req_abc123" }
}

The removed member's resources are transferred to the organization owner (transferTo); assetsHandled counts what was transferred, by type.


PATCH /api/v1/organizations/:organizationId/members/:id​

Update a member's role within the organization.

Scope: organizations:write

Path Parameters

ParameterTypeRequiredDescription
organizationIdstringYesOrganization ID
idstringYesUser ID of the member

Request Body

{
"role": "admin"
}
FieldTypeRequiredDescription
rolestringYesNew role: member, admin, billing

Response 200 OK

{
"data": {
"_id": "mem_002",
"organizationId": "org_xyz",
"userId": "user_789",
"role": "admin",
"joinedAt": "2024-08-20T14:00:00Z",
"status": "active"
},
"meta": { "requestId": "req_abc123" }
}

data is the member's updated membership.


POST /api/v1/organizations/:id/invitations​

Send an invitation to join the organization via email.

Scope: organizations:write

Path Parameters

ParameterTypeRequiredDescription
idstringYesOrganization ID

Request Body

{
"email": "newmember@example.com",
"role": "member"
}
FieldTypeRequiredDescription
emailstringYesEmail address to invite
rolestringYesRole to assign upon acceptance: member, admin, billing

Response 201 Created

The new invitation, status pending (its acceptance token is only in the email).


GET /api/v1/organizations/:id/invitations​

List the organization's pending invitations, newest first.

Scope: organizations:read

Path Parameters

ParameterTypeRequiredDescription
idstringYesOrganization ID

Response 200 OK

{
"data": [
{
"_id": "inv_abc001",
"organizationId": "org_xyz",
"email": "newmember@example.com",
"role": "member",
"status": "pending",
"invitedBy": "user_456",
"tokenExpiresAt": "2025-02-15T00:00:00Z",
"createdAt": "2025-02-01T14:22:00Z"
}
],
"meta": { "requestId": "req_abc123" }
}

DELETE /api/v1/organizations/:organizationId/invitations/:id​

Cancel a pending invitation.

Scope: organizations:write

Path Parameters

ParameterTypeRequiredDescription
organizationIdstringYesOrganization ID
idstringYesInvitation ID

Response 204 No Content


POST /api/v1/organizations/:organizationId/invitations/:id/resend​

Resend a pending invitation (Strongly Cloud only). The invitation gets a new link, valid for 7 days from now (the previous link stops working), and the invitation email is sent again. The invitation's resentAt and resentBy are set.

Scope: organizations:write

Path Parameters

ParameterTypeRequiredDescription
organizationIdstringYesOrganization ID
idstringYesInvitation ID

Response 200 OK

{
"data": { "resent": true },
"meta": { "requestId": "req_abc123" }
}

Errors

StatusCodeWhen
400validation-errorInvalid organization ID or invitation ID
403forbiddenYou are not an owner or admin of the invitation's organization (platform administrators can resend any invitation)
404not-foundNo pending invitation with this ID (it does not exist, or was already accepted or revoked)
500internal-errorThe platform is not Strongly Cloud; the message names resending invitations as part of Strongly Cloud team management

Credits​

Credits are the organization's prepaid balance on platforms with billing enabled. On a platform without billing, credits do not apply: nothing is charged against a balance, and every credit endpoint below (and the credit fields of PATCH /api/v1/organizations/:id) answers:

{
"type": "urn:strongly:problem:billing-disabled",
"title": "billing-disabled",
"status": 409,
"detail": "Billing is not enabled on this install, so credits and subscriptions do not apply.",
"code": "billing-disabled",
"requestId": "4866806e-f016-4672-b611-d8fb864a6e59"
}

Credits are separate from FinOps budgets: a budget never charges or deducts credits. All credit amounts are integers in credits: $1 = 100 credits, so 10000 is 10,000 credits ($100). Every amount field's name ends in Credits; only a purchase's chargeCents (what Stripe charges) is in US cents.

GET /api/v1/organizations/:id/credits​

Get the organization's credits. The organization's owner and platform administrators can read them. The rules for plan, grant and additional credits, the order they are used in and what happens below zero are on How Credits Work.

Scope: organizations:read

Response 200 OK

{
"data": {
"balanceCredits": 47000,
"planCreditsBalance": 12000,
"grantCreditsBalance": 30000,
"additionalCreditsBalance": 5000,
"overdraftCredits": 0,
"planMonths": [
{
"planPeriodId": "plan-Kq2x9TzLm4Pc7Rw1a-20261017T090000Z",
"label": "Pro plan",
"planTier": "pro",
"billingInterval": "monthly",
"startsAt": "2026-10-17T09:00:00.000Z",
"expiresAt": "2026-11-17T09:00:00.000Z",
"issuedCredits": 22000,
"upgradeCredits": 0,
"overdraftPaidCredits": 0,
"usedCredits": 10000,
"remainingCredits": 12000,
"current": true
}
],
"nextPlanMonth": null,
"grantPeriods": [
{
"grantId": "Xb2kq9TzLm4Pc7Rw1",
"periodIndex": 0,
"periodCount": 12,
"label": "Partner deal, year 1",
"startsAt": "2026-10-01T00:00:00.000Z",
"endsAt": "2026-11-01T00:00:00.000Z",
"expiresAt": "2026-11-01T00:00:00.000Z",
"issuedCredits": 50000,
"overdraftPaidCredits": 0,
"usedCredits": 20000,
"remainingCredits": 30000
}
],
"additionalCreditsLifetimeAdded": 10000,
"additionalCreditsLifetimeUsed": 5000,
"lifetimeAddedCredits": 82000,
"lifetimeUsedCredits": 35000,
"alertThresholdsCredits": [2000, 1000, 500, 0],
"resourcesStoppedAt": null,
"scheduledDeletionAt": null,
"autoPurchase": { "enabled": true, "thresholdCredits": 1000, "amountCredits": 5000, "maxPerMonth": 3 },
"allowance": null
},
"meta": { "requestId": "7c1d5e0a-2b7e-4f8e-9d59-1f0b3a6c2e11" }
}
FieldDescription
balanceCreditsplanCreditsBalance + grantCreditsBalance + additionalCreditsBalance, in credits.
planCreditsBalance, planMonths, nextPlanMonthPlan credits left, each plan month held (current is this month's; usedCredits is what was used of issuedCredits less overdraftPaidCredits; upgradeCredits is an upgrade's extra credits for the rest of the month, included in issuedCredits), and the next month to be added.
grantCreditsBalance, grantPeriodsGrant credit left, and each credit grant month held, with when its credit expires.
additionalCreditsBalanceAdditional credits, which never expire while the organization has a subscription (when it ends, every credit left is forfeited). On Strongly Cloud, purchased credits expire 12 months after their purchase, each on its own: see GET /organizations/:id/credit-purchases. Below zero, the organization owes credit; overdraft is what it owes.
additionalCreditsLifetimeAdded, additionalCreditsLifetimeUsed, lifetimeAddedCredits, lifetimeUsedCreditsTotals since the organization was created.
alertThresholdsCreditsBalances, in credits, at which the organization is alerted.
resourcesStoppedAt, scheduledDeletionAtWhen the organization's workloads were stopped for a used-up balance, and when they are deleted; null otherwise.
autoPurchaseThe subscription's automatic purchase of additional credits (enabled, thresholdCredits, amountCredits, maxPerMonth), or null.
allowanceStrongly Cloud: this month's allowance, the plan month and grant months together: allowanceCredits, usedCredits, remainingCredits, renewsAt and the lots it is made of. null elsewhere.

Errors

StatusCodeWhen
403forbiddenYou are not the organization's owner or a platform administrator
404not-foundNo organization has this ID
409billing-disabledBilling is not enabled on this platform

POST /api/v1/organizations/:id/credit-purchases​

Buy additional credits. You can buy additional credits in any amount from 1,000 credits ($10.00); $1 = 100 credits. A purchase made while the organization owes credit pays that off first. Additional credits never expire while you have a subscription. They are forfeited with the rest of your credits when your subscription ends. On Strongly Cloud, purchased credits instead expire 12 months after their purchase, each purchase on its own (see Credits). The organization's owner or an administrator of it.

Scope: organizations:write

Headers

HeaderRequiredDescription
Idempotency-KeyNoStrongly Cloud only, with paymentMethod saved-card: 8 to 255 characters naming this purchase. A retry with the same key charges the card once. Send one with every saved-card purchase.

Request Body

{ "credits": 10000, "paymentMethod": "saved-card" }
FieldTypeRequiredDescription
creditsintegerYesHow many credits to buy, a whole number, at least 1,000 ($10.00).
paymentMethodstringNoStrongly Cloud only. checkout (default): a Stripe Checkout page to pay at. saved-card: charge the organization's saved card now. Elsewhere only checkout is accepted.

Response 201 Created (checkout)

{ "data": { "sessionId": "cs_test_a1B2c3", "url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3", "amountCredits": 10000, "chargeCents": 10000 } }

amountCredits is the credits bought and chargeCents what Stripe charges for them, in US cents ($100.00 here). Open url to pay. The credits are added once the payment succeeds, as a credit_purchase transaction.

Response 201 Created (saved-card, Strongly Cloud only)

{ "data": { "purchaseId": "purchase-buy-org-acme-3f9a1c7e5b2d8a4f6c0e9b1d", "amountCredits": 10000, "chargeCents": 10000, "status": "succeeded", "expiresAt": "2027-11-06T15:04:05.000Z" } }

The card has been charged and the credits added. expiresAt is when this purchase's credit expires, 12 months after it.

Errors

StatusCodeWhen
400validation-error / invalid-amountcredits is not a whole number from 1,000, paymentMethod is not one this platform accepts, or Idempotency-Key is not 8 to 255 characters
402authentication-requiredsaved-card: the bank asks for the payment to be confirmed. Nothing is charged; pay with checkout instead
402card-declinedsaved-card: the card was declined. Nothing is charged
403forbiddenYou are not an owner or administrator of the organization
409billing-disabledBilling is not enabled on this platform
409no-saved-cardsaved-card: the organization has no saved card. Pay with checkout

GET /api/v1/organizations/:id/credit-purchases​

Strongly Cloud only (elsewhere 404). List the organization's purchases that still hold credit (bought or auto-refilled), the soonest-expiring first, the order they are used in after plan and grant credit. The organization's owner, its administrators and platform administrators can read them.

Scope: organizations:read

Query Parameters

ParameterTypeRequiredDescription
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.nextCursor of the previous page; omit for the first page

Response 200 OK

{
"data": [
{
"purchaseId": "purchase-buy-org-acme-3f9a1c7e5b2d8a4f6c0e9b1d",
"purchasedAt": "2026-11-06T15:04:05.000Z",
"expiresAt": "2027-11-06T15:04:05.000Z",
"issuedCredits": 10000,
"overdraftPaidCredits": 0,
"usedCredits": 2500,
"remainingCredits": 7500
}
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "0b8e4f3a-5d62-4c1e-a7f9-2e6d8c4b1a90" }
}
FieldDescription
purchasedAt, expiresAtWhen the purchase was made, and when what is left of it expires: 12 months later.
issuedCreditsWhat the purchase added.
overdraftPaidCreditsThe part of it that paid off what the organization owed.
usedCredits, remainingCreditsWhat has been used of it, and what is left.

The refill history is GET /organizations/:id/transactions with type=auto_purchase (failed refills included).

Errors

StatusCodeWhen
403forbiddenYou are not an owner or administrator of the organization or a platform administrator
404not-foundThe organization does not exist or is not visible to you

GET /api/v1/organizations/:id/credit-settings​

Strongly Cloud only (elsewhere 404). Get the organization's low-balance alert and auto-refill. Both are off until the owner or an administrator turns them on. Thresholds are a percent of the plan's monthly credits (baseCredits); thresholdCredits is the amount that percent is. The organization's owner, its administrators and platform administrators can read them.

Scope: organizations:read

Response 200 OK

{
"data": {
"baseCredits": 5000,
"lowBalanceAlert": { "enabled": true, "thresholdPercent": 20, "thresholdCredits": 1000 },
"autoRefill": {
"enabled": true,
"thresholdPercent": 10,
"thresholdCredits": 500,
"amountCredits": 10000,
"maxPerDay": 2,
"refillsToday": 0,
"disabledReason": null,
"disabledAt": null,
"lastRefillAt": null
},
"purchaseExpiryMonths": 12,
"canChange": true
}
}
FieldDescription
baseCreditsThe plan's monthly credits, which the percents are of.
lowBalanceAlertenabled (default false) and thresholdPercent (default 20). Each time the balance falls to the threshold, the owner and administrators are notified once, in the app always and by email to those whose Email me about governance is on; it is ready again once the balance is back above it. With it on, they are also told 14 days before a purchase's credit expires.
autoRefillenabled (default false), thresholdPercent (default 10), amountCredits (each refill), maxPerDay (default 2), refillsToday, lastRefillAt. Below the threshold amountCredits are bought with the saved card, at most maxPerDay a day. A declined card, or one that needs authentication, credits nothing and turns auto-refill off: disabledReason is payment_failed and disabledAt when, until it is turned on again.
purchaseExpiryMonthsHow long purchased credits last: 12.
canChangeWhether you may change the settings (the organization's owner or an administrator).

Errors

StatusCodeWhen
402payment-requiredThe organization has no plan yet
403forbiddenYou are not an owner or administrator of the organization or a platform administrator
404not-foundThe organization does not exist or is not visible to you

PATCH /api/v1/organizations/:id/credit-settings​

Strongly Cloud only (elsewhere 404). Change the low-balance alert and auto-refill; only the fields given change. Turning auto-refill on clears a payment_failed that turned it off. Returns the settings as GET does (without canChange). The organization's owner or an administrator of it. Confirm with the user before turning auto-refill on: it charges their saved card.

Scope: organizations:write

Request Body

{
"lowBalanceAlert": { "enabled": true, "thresholdPercent": 20 },
"autoRefill": { "enabled": true, "thresholdPercent": 10, "amountCredits": 10000, "maxPerDay": 2 }
}
FieldTypeRequiredDescription
lowBalanceAlert.enabledbooleanNoTurn the alert on or off.
lowBalanceAlert.thresholdPercentintegerNo1 to 100, of the plan's monthly credits.
autoRefill.enabledbooleanNoTurn auto-refill on or off.
autoRefill.thresholdPercentintegerNo1 to 100, of the plan's monthly credits.
autoRefill.amountCreditsintegerNoEach refill, in credits, a whole number, at least 1,000 ($10.00).
autoRefill.maxPerDayintegerNo1 to 10 refills a day.

Errors

StatusCodeWhen
400validation-errorA percent is not a whole number from 1 to 100, amountCredits is not a whole number from 1,000, or maxPerDay is not 1 to 10
402payment-requiredThe organization has no plan yet
403forbiddenYou are not an owner or administrator of the organization
404not-foundThe organization does not exist or is not visible to you

GET /api/v1/organizations/:id/transactions​

List the organization's credit transactions, newest first unless sorted, a page at a time. The organization's owner and platform administrators can read them.

Scope: organizations:read

Query Parameters

ParameterTypeRequiredDescription
typestringNoOnly transactions of this type (see below)
qstringNoOnly transactions whose description or type contains this text
sortstringNoOne of createdAt (default -createdAt), type, description, amountCredits, balanceAfterCredits; - for descending
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.nextCursor of the previous page; omit for the first page

Response 200 OK

{
"data": [
{
"_id": "hS3kq8WbLx2nTzP4c",
"organizationId": "org-acme",
"userId": "okRpaKPh8B9asdKb2",
"type": "usage_charge",
"status": "completed",
"amountCredits": -1250,
"balanceBeforeCredits": 13750,
"balanceAfterCredits": 12500,
"description": "Workspace ml-dev: 5 hours",
"reference": {
"resourceType": "workspace",
"resourceId": "ws-7fk2m",
"resourceName": "ml-dev",
"deductedFromGrants": 0,
"deductedFromMonthly": 1250,
"planDeductions": [{ "planPeriodId": "plan-Kq2x9TzLm4Pc7Rw1a-20261017T090000Z", "credits": 1250 }],
"deductedFromPurchased": 0
},
"createdAt": "2026-09-23T03:00:12.532Z"
}
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "0b8e4f3a-5d62-4c1e-a7f9-2e6d8c4b1a90" }
}
FieldDescription
typeusage_charge; subscription_credit (a plan month's credits, added when the month starts) or subscription_credit_expiry (what was left of them when the month ended); grant_credit (a credit grant month's credit, added when the month starts) or grant_expiry (what was left of it when it expired); credit_purchase, auto_purchase, admin_allocation, admin_adjustment, promo_credit (additional credits); credit_purchase_expiry (Strongly Cloud: what was left of a purchase when it expired, 12 months after it); upgrade_credit (an upgrade's extra plan credits for the rest of the month, expiring with it: reference.upgradeOf is the month, reference.fromPlanTier and reference.planTier the plans); overdraft_payoff (the part of an arriving credit that paid off what was owed: reference.paidCredits, of reference.sourceTransactionId; amountCredits is 0); credit_forfeiture (the credits left when the subscription ended, forfeited: reference.planCredits, reference.grantCredits, reference.additionalCredits). There is no refund type: no money is ever refunded (How Credits Work).
statuspending, completed or failed.
amountCreditsPositive adds credits, negative uses them.
balanceBeforeCredits, balanceAfterCreditsThe balance around the transaction.
referenceWhat the transaction is about: for a usage charge, how it split between grant credit (deductedFromGrants, per period grantDeductions), plan credits (deductedFromMonthly, per month planDeductions) and additional credits (deductedFromPurchased), and what of it the balance did not hold (overdrawnCredits); for arriving credit, what of it paid off an overdraft (overdraftPaidCredits); the administrator and note of an allocation, the Stripe payment of a purchase, or the grant month (grantId, grantLabel, periodIndex, periodCount, period, expiresAt) or plan month (planPeriodId, planTier, billingInterval) an entry is for.

Errors

StatusCodeWhen
403forbiddenYou are not a member of the organization or a platform administrator
409billing-disabledBilling is not enabled on this platform

Credit grants​

A credit grant gives an organization a set amount of credit every month for a number of months, for example 50,000 credits a month for the first year of a deal. Strongly sets up grants; the organization's owner and platform administrators read them. Grants exist only when billing is enabled (otherwise these endpoints answer 409 billing-disabled). Amounts are integers in credits and every month boundary is UTC.

How a grant moves the balance:

  • Issued when a month starts. Within minutes of a month's start, its credit is added to the balance and recorded as a grant_credit transaction. Each month is issued exactly once.
  • Order of use. Plan and grant credit is used first, the soonest-expiring first. Additional credits are used only after it runs out. A month's credit pays only for usage that happened during that month. See How Credits Work.
  • Unused credit expires at the month's end; it never rolls over. The expiry is applied once the month's last hours have been charged (usually within two hours of the month's end), so the month's own usage is paid by its own credit; what is left is recorded as a grant_expiry transaction.
  • Stacks with other credits. A grant never replaces plan or additional credits. A month that arrives while the organization owes credit pays that off first. When the balance is used up, the rule on How Credits Work applies.

Every create, change and end, and every month issued or expired, is written to the audit log.

The grant object​

{
"_id": "Xb2kq9TzLm4Pc7Rw1",
"organizationId": "org-acme",
"label": "Partner deal, year 1",
"amountCredits": 50000,
"period": "monthly",
"periodCount": 12,
"startsAt": "2026-11-01T00:00:00.000Z",
"endsAt": "2027-11-01T00:00:00.000Z",
"status": "active",
"issuedCredits": 50000,
"usedCredits": 12000,
"expiredCredits": 0,
"remainingCredits": 38000,
"periods": [
{
"index": 0,
"startsAt": "2026-11-01T00:00:00.000Z",
"endsAt": "2026-12-01T00:00:00.000Z",
"expiresAt": "2026-12-01T00:00:00.000Z",
"amountCredits": 50000,
"status": "issued",
"issuedCredits": 50000,
"usedCredits": 12000,
"expiredCredits": 0,
"remainingCredits": 38000,
"issuedAt": "2026-11-01T00:08:41.000Z",
"expiredAt": null
}
],
"createdBy": "admin-user-id",
"createdAt": "2026-10-17T15:02:11.000Z",
"updatedBy": "admin-user-id",
"updatedAt": "2026-10-17T15:02:11.000Z"
}

(The example shows only the first of its twelve months.)

FieldDescription
labelWhy the organization receives the grant. Shown on the grant and on each of its transactions.
amountCreditsThe credit each month not started yet receives.
periodmonthly. Months are counted from startsAt in UTC calendar months, the day clamped to the month's length: a grant starting 31 January has months starting 28 February (29 in a leap year), 31 March, 30 April.
periodCount, startsAt, endsAtHow many months, when the first starts (a UTC midnight) and when the last ends.
statusscheduled (not started), active, ended (ended early by an administrator) or completed.
issuedCredits, usedCredits, expiredCredits, remainingCreditsTotals over the months.
periods[].statusscheduled, issuing (started; the next billing pass adds its credit), issued or expired (closed).
periods[].expiresAtWhen what is left of the month's credit expires: the month's end.
endedAt, endedBySet when an administrator ended the grant early.

GET /api/v1/organizations/:id/credit-grants​

List the organization's credit grants, newest first. The organization's owner and platform administrators can read them.

Scope: organizations:read

Query Parameters: limit (default 50, maximum 200) and cursor (meta.nextCursor of the previous page).

Response 200 OK: { "data": [grant, ...], "meta": { "total", "limit", "nextCursor", "requestId" } }

Errors

StatusCodeWhen
403forbiddenYou are not the organization's owner or a platform administrator
404not-foundNo organization you can see has this ID
409billing-disabledBilling is not enabled on this platform

GET /api/v1/organizations/:organizationId/credit-grants/:id​

Get one credit grant with its months. The organization's owner and platform administrators can read it.

Scope: organizations:read

Response 200 OK: the grant. 404 not-found when the organization has no such grant.

Allowance resets​

Strongly Cloud only. An allowance reset refills an organization's allowance for this month (its plan month and grant months) to its full amount. Strongly gives an organization a reset with an expiry; the organization's owner or an admin applies it, once. If the balance is overdrawn when the reset is applied, the reset pays what is owed first.

The reset object​

{
"_id": "Rt4kq9TzLm4Pc7Rw2",
"organizationId": "org-acme",
"note": "Launch week",
"expiresAt": "2026-12-01T00:00:00.000Z",
"createdBy": "admin-user-id",
"createdAt": "2026-11-07T10:00:00.000Z",
"appliedAt": "2026-11-08T14:21:05.000Z",
"appliedBy": "owner-user-id",
"restoredCredits": 920,
"overdraftPaidCredits": 50,
"status": "applied"
}
FieldDescription
noteWhy the organization receives the reset.
expiresAtWhen it can no longer be applied.
statusavailable, applying, applied, expired or revoked.
appliedAt, appliedByWhen and by whom it was applied.
restoredCreditsThe credits it added.
overdraftPaidCreditsOf restoredCredits, what paid an overdrawn balance first.
revokedAt, revokedBySet when Strongly revoked it before it was applied.

GET /api/v1/organizations/:id/credit-resets​

List the organization's allowance resets, newest first. The organization's owner and admins and platform administrators can read them.

Scope: organizations:read

Query Parameters: limit (default 50, maximum 200) and cursor (meta.nextCursor of the previous page).

Response 200 OK: { "data": [reset, ...], "meta": { "total", "limit", "nextCursor", "requestId" } }

POST /api/v1/organizations/:organizationId/credit-resets/:id/apply​

Apply an available reset. The organization's owner or an admin can apply it; a workload's token cannot.

Scope: organizations:write

Response 200 OK: the reset as applied, with restoredCredits and overdraftPaidCredits.

Errors

StatusCodeWhen
403forbiddenYou are not the organization's owner or an admin
409conflictThe reset is expired, revoked or already applied, or nothing of the allowance is used