Logo White

Organizations & Sites

Agencies and enterprises use Organization-scoped API keys to automate client onboarding, spin up new publications, manage team roles, and enforce monthly AI credit budgets per site.

GET/v1/organization

Get current organization

Returns organization details, active plan, site usage (sites_used / sites_limit), and team seat limits. Requires organizations:read.

Request

curl https://api.bloghunch.com/v1/organization \
  -H "Authorization: Bearer {org_token}"

POST/v1/publications

List & provision publications

List all accessible sites (GET /v1/publications, scope publication:read) or provision a new client site (POST /v1/publications, scope organizations:write).

Create site

curl -X POST https://api.bloghunch.com/v1/publications \
  -H "Authorization: Bearer {org_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Client Blog",
    "subdomain": "acme-client-blog",
    "tagline": "Official updates from Acme"
  }'
  • Get / Archive / Restore site: GET /v1/publications/{id}, POST /v1/publications/{id}/archive, POST /v1/publications/{id}/restore

Members & per-site AI credit budgets

  • List members: GET /v1/organization/members (organizations:read)
  • Update member role/scope: PATCH /v1/organization/members/{userId} (organizations:write)
  • Remove member: DELETE /v1/organization/members/{userId} (organizations:write)
  • Set site AI credit budget: PUT /v1/organization/sites/{publicationId}/budget (organizations:write) with { "monthly_credit_budget": 2500 }