Provider Sync

OpenAI Provider Sync

Sync OpenAI organization costs to a variable expense.

Pull platform spend from the OpenAI Organization Costs API.

Credentials

FieldWhere to find it
Admin API keyOpenAI platform → Settings → Admin keys (sk-admin-…)
Project IDOptional — leave blank for whole-org costs

API

GET https://api.openai.com/v1/organization/costs

Daily cost buckets, paginated. Recurex sums spend for the calendar month UTC.

Setup

  1. Create a variable USD expense (e.g. "OpenAI API")
  2. Open ActualsConnect provider → OpenAI
  3. Enter admin key and optional project ID
  4. Sync validates against the current month

Scope

  • Blank project ID = entire organization
  • With project ID = costs for that project only

Troubleshooting

ErrorFix
401 UnauthorizedUse an admin key, not a project key
No costs returnedVerify the org has usage in the period
Currency mismatchExpense must be USD