Partner API Docs
Billing-system-agnostic provisioning API. One integration covers account creation, plan management, SSO, and usage reporting for any billing platform.
14
Endpoints
REST
JSON over HTTPS
Bearer
Token auth
Agnostic
Any billing system
Authentication and base URL
Every request carries your reseller API key as a Bearer token. All data is automatically scoped to your reseller account.
Bearer token
Include your API key in every request header.
Authorization: Bearer {your_api_key}
Base URLs
https://brandforge.software/api/godmode/v1
Production
https://staging.brandforge.software/api/godmode/v1
Staging
Standard response envelope
Every response follows the same shape. Check success first, then read data for the payload or error on failure.
Success
{
"success": true,
"message": "Account created",
"data": { ... }
}
Error
{
"success": false,
"error": "Validation failed"
}
Full API reference
14 endpoints covering the complete account lifecycle. Every endpoint returns the standard envelope.
Connection
/provision/ping
Test that your API key is valid and the service is reachable. Use this as a health check in your provisioning module.
Parameters
None
Response 200
Standard envelope with success: true
Catalog
/provision/packages
Returns the plans available under your reseller account. Use the slug field as plan_code in subsequent calls.
Parameters
None
Response 200 · data[]
idstringInternal package IDnamestringDisplay name, e.g. "Solo Plan"slugstringUse as plan_codeproduct_idstring | nullYour billing product ID if mappedAccount
/provision/create
Provision a new customer account. Idempotent on email within a reseller. Send your external IDs to enable billing deep-links.
Request body
emailstring requiredCustomer emailfirst_namestring requiredCustomer first nameplan_codestring requiredSlug from /provision/packageslast_namestringCustomer last namecompany_namestringCompany namepasswordstringOmit to auto-generatedomainstringCustomer domainclient_idstringYour billing client IDservice_id_externalstringYour billing service IDproduct_idstringYour billing product IDResponse 201 · data
service_iduuidBrandForge service identifieremailstringConfirmed emailcompany_namestringCompany namestatusstring"active"plan_codestringActive plan slugdomainstring | nullCustomer domainErrors
409ConflictEmail already used by another account422ValidationMissing or invalid parameters/provision/suspend
Suspend the entire customer account. All plans and access are frozen.
Request body
service_iduuid requiredBrandForge service ID/provision/unsuspend
Reactivate a suspended account. Access is restored immediately.
Request body
service_iduuid requiredBrandForge service ID/provision/terminate
Cancel and permanently remove the customer account.
Request body
service_iduuid requiredBrandForge service ID/provision/link_account
Set or update external billing IDs on an existing account. Enables upgrade/downgrade deep-links from the BrandForge app back to your billing system.
Request body
service_iduuid requiredBrandForge service IDclient_idstringYour billing client IDservice_id_externalstringYour billing service IDplan_codestringCurrent plan slugproduct_idstringYour billing product IDPlans
/provision/add_plan
Add an additional plan to an account. Additive: existing plans are kept. Credits and limits sum across all active plans.
Request body
service_iduuid requiredBrandForge service IDplan_codestring requiredPlan slug to addproduct_idstringYour billing product IDResponse 200 · data
service_idstringConfirmed service IDstatusstring"active"added_planstringThe plan that was addedactive_plansstring[]All active plan slugs/provision/change_package
Replace the active plan (upgrade or downgrade). Credits and limits carry forward automatically.
Request body
service_iduuid requiredBrandForge service IDplan_codestring requiredNew plan slug/provision/suspend_plan
Suspend a single plan on a multi-plan account. Other plans stay active.
Request body
service_iduuid requiredBrandForge service IDplan_codestring requiredPlan slug to suspendResponse 200 · data
service_idstringConfirmed service IDplan_codestringThe suspended planstatusstringNew plan statusactive_plansstring[]Remaining active plans/provision/unsuspend_plan
Reactivate a suspended plan. The plan resumes with its previous credits and limits.
Request body
service_iduuid requiredBrandForge service IDplan_codestring requiredPlan slug to reactivate/provision/terminate_plan
Cancel and remove a single plan. Other plans on the account stay active.
Request body
service_iduuid requiredBrandForge service IDplan_codestring requiredPlan slug to terminateSession
/provision/sso
Generate a short-lived login URL. Open it in the customer's browser and they land authenticated in BrandForge. No second password required.
Request body
service_iduuid requiredBrandForge service IDResponse 200 · data
tokenstringOne-time SSO tokenlogin_urluriRedirect the customer hereplansPlanEntry[]Active plans with credits and workspace limitsStatus
/provision/status
Query a customer's current plan, credit usage, and workspace list. Useful for displaying usage in your client area.
Query parameters
service_iduuid requiredBrandForge service IDResponse 200 · data
API FAQ
Is the API billing-system specific?
No. The API is billing-system-agnostic. WHMCS, Upmind, Blesta, HostBill, or any custom platform all use the same endpoints.
How is authentication handled?
Every request carries your reseller API key as a Bearer token in the Authorization header. All data is automatically scoped to your reseller account.
Can a customer hold multiple plans?
Yes. The add_plan endpoint is additive. A customer may hold multiple plans and credits and limits sum across them. You can also suspend or terminate individual plans independently.
Is account creation idempotent?
Yes. The create endpoint is idempotent on email within a reseller. If the email already exists under your reseller, you get the existing account back instead of a duplicate.
What external IDs can I pass?
Three: client_id (your billing customer), service_id_external (your billing subscription), and product_id (your billing product). These enable deep-links from BrandForge back to your billing system for upgrades and downgrades.
Is there a staging environment?
Yes. Use https://staging.brandforge.software/api/godmode/v1 with your staging API key. Same endpoints, same behaviour, isolated data.
Connect your billing system to BrandForge in hours, not weeks
Grab your API key from the partner portal and start calling endpoints. Full lifecycle in 14 requests.
- REST + JSON
- Bearer auth
- Staging environment
- Any billing platform