About OpenAI Admin
The OpenAI Admin integration connects Serval workflows to OpenAI’s organization-management API. The shipped workflows invite and remove users, change organization roles, list and revoke invites, create and archive projects, list Admin API keys, report costs, read audit logs, and set the organization spend limit. Custom workflows can also manage project members, groups and service accounts, revoke project keys, adjust project rate limits and model permissions, set spend alerts, and pull usage data. It’s built for the IT or platform team that owns the OpenAI organization: provisioning, off-boarding, key hygiene, and spend monitoring. This is separate from Serval’s OpenAI workflow actions, which generate text inside workflows. The Admin integration never calls a model. Authentication: OpenAI Admin API key. One key per OpenAI organization, created under that organization’s Admin keys settings and pasted into the connect form. Serval reads which organization the key belongs to and names the connection after it, so a company with several OpenAI organizations connects each one as its own connection under OpenAI Admin. Serval stores the key securely and attaches it to every request; workflow code never sees the key. Standard project API keys can’t call administration endpoints, and Admin API keys can’t call inference endpoints. Data sync: On demand only. Serval calls OpenAI when a workflow runs. There is no background sync. What a workflow returns, such as a user list or audit events, stays in that run’s history and is visible to the people who can see the run.What the integration enables
openai/openai-openapi specification. See the OpenAI Administration API reference for every endpoint.
Get your credentials
This integration requires an OpenAI Admin API key, which only an organization owner can create. It’s a different credential from the project API keys used to call models.Sign in to the OpenAI Platform
Open the Admin keys page
Create an admin key
Copy the key immediately
Connect in Serval
Open the OpenAI Admin integration
Paste your admin key
Submit the form
Connect more than one organization
Each OpenAI organization needs its own Admin API key and its own connection. Repeat the steps above for every organization. The connections appear under OpenAI Admin, each named after its organization. When a team has more than one OpenAI Admin connection, a workflow in a package uses the connection that package links. A workflow in no package uses the team’s oldest connection, so put workflows that target a newer organization in a package that links that connection.Verifying the connection
When you submit the form, Serval verifies the key by listing one organization user and records the organization the key belongs to as the connection’s identity. The integration also ships three health checks you can run from the connection page:Gotchas and troubleshooting
Admin and project keys aren't interchangeable
Admin and project keys aren't interchangeable
Admin keys are organization-wide credentials
Admin keys are organization-wide credentials
A key from another organization can't be saved into an existing connection
A key from another organization can't be saved into an existing connection
Connections made before organization naming
Connections made before organization naming
OpenAI didn't say which organization the key belongs to
OpenAI didn't say which organization the key belongs to
openai-organization header on OpenAI’s response. If that header is missing, Serval neither creates nor saves the connection, so one organization’s key can’t land on another organization’s connection. Try again, and contact support@serval.com if it keeps happening.Audit logs need to be turned on in OpenAI
Audit logs need to be turned on in OpenAI
Key creation isn't modeled, on purpose
Key creation isn't modeled, on purpose
Certificate uploads aren't modeled
Certificate uploads aren't modeled
Filtering audit logs by time
Filtering audit logs by time
effective_at object with gt, gte, lt, and lte members in Unix seconds, and array filters named with brackets such as project_ids[]. Pass them as the typed action expects. Serval sends every array as bracketed repeated keys, the shape OpenAI’s own SDKs use, and range objects as effective_at[gte]=....List endpoints are paginated
List endpoints are paginated
has_more and a last_id cursor to pass as after. The costs and usage endpoints return next_page to pass as page instead. The shipped workflows page through every result for you.Organization and project roles
Organization and project roles
owner and reader, and project roles are owner and member. The shipped Update OpenAI User Role workflow changes the organization role. To change a project role, send a custom request to the project users endpoint. Custom roles, and assigning or revoking them, go through the roles endpoints under /v1/organization/roles.Need help? Contact support@serval.com for assistance with your OpenAI Admin integration.

