Organization info

⚠️
Preview — this feature is being built; the design below is the spec.

GET /v1/organizations/me returns the organization an admin key belongs to: its id, name, plan, and the settings that affect API traffic. Use it to confirm a key points at the organization you expect, to show the plan in an internal dashboard, or as the first call of any admin script.

Endpoints

MethodPathPurposeRole
GET/v1/organizations/meRead the organization.Owner or Administrator
PATCH/v1/organizations/meChange the name or settings.Owner (some fields: Administrator, as noted)

Authenticate with Authorization: Bearer sk_admin_... and send syntic-beta: admin-2026-11-01.

The organization object

{
  "id": "org_01J9Z1B3D5F7H9K1M3P5",
  "type": "organization",
  "name": "Acme Store",
  "plan": {
    "name": "Business",
    "status": "active",
    "current_period_end": "2026-12-01T00:00:00Z",
    "monthly_token_allowance": 2000000
  },
  "usage_credits": {
    "enabled": true,
    "balance_usd": "184.2200",
    "monthly_spend_limit_usd": "500.00",
    "auto_reload": { "enabled": true, "trigger_usd": "20.00", "target_usd": "100.00" }
  },
  "rate_limit_tier": "2",
  "settings": {
    "zero_data_retention": false,
    "data_retention_days": null,
    "mfa_required": true,
    "sso_enforced": false,
    "default_workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q"
  },
  "member_count": 14,
  "workspace_count": 3,
  "created_at": "2025-04-17T11:20:00Z"
}
FieldDescription
idStarts with org_.
nameThe display name.
plan.nameThe plan exactly as named on the Syntic platform, for example Free, Starter, Business, Pro, Scale, Operations or Enterprise.
plan.statusactive, past_due, canceled or trialing.
plan.current_period_endWhen the current billing period ends and the monthly allowance resets.
plan.monthly_token_allowanceTokens per month included in the plan, or null for unlimited. See Pricing.
usage_creditsWhether credits are on, the balance, the organization’s monthly spend limit and auto-reload. Change limits with Spend limits.
rate_limit_tierstart, 1 to 4, or custom. See Rate-limit tiers.
settings.zero_data_retentionWhether the organization runs in zero data retention mode. Read-only here.
settings.data_retention_daysRetention for stored content: 7, 30, 90, 365 or null (feature defaults).
settings.mfa_requiredMembers must use a second factor.
settings.sso_enforcedSign-in must go through the organization’s single sign-on provider. Read-only here.
settings.default_workspace_idThe workspace that existing keys were placed in when workspaces launched.

Read the organization

curl -sS https://app.syntic.ai/v1/organizations/me \
  -H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
  -H "syntic-beta: admin-2026-11-01"

Change the organization

PATCH /v1/organizations/me

FieldWhoNotes
nameOwner1 to 100 characters.
settings.data_retention_daysOwner7, 30, 90, 365 or null.
settings.mfa_requiredOwner or AdministratorTurning it on asks members without a second factor to add one at next sign-in.

Plan changes, ownership transfer, zero data retention and single sign-on stay in the Console, because they involve payment or identity steps that need a person.

curl -sS -X PATCH https://app.syntic.ai/v1/organizations/me \
  -H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -H "syntic-beta: admin-2026-11-01" \
  -d '{"settings": {"data_retention_days": 30}}'

The response is the updated organization object. Each change writes an audit event (organization.updated, with the fields that changed).

Errors

Errors use the error envelope.

StatustypecodeWhen
400invalid_request_errorinvalid_parameterA value outside the allowed set; param names it.
400invalid_request_errorread_only_fieldA field that cannot be changed through the API.
403permission_erroradmin_key_requiredAn inference key was used.
403permission_errorrole_requiredAn Administrator’s key tried an Owner-only change.

Build notes for the platform team

  • Wrap the existing organization admin function; return the real platform plan name, never a marketing label.
  • Read credit and auto-reload fields from the same source the Console’s Billing page uses.
Was this page helpful?