OpenAIOpenAI API
POST/organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys
Manage Createan APIkeyforaserviceaccount.
Contract-preserving POST Endpoint for Createan APIkeyforaserviceaccount in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.
All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.
Request
- operationId
CreateanAPIkeyforaserviceaccount- Server
https://api.openai.com/v1- Authentication
- ApiKeyAuth, AdminApiKeyAuth
Request parameters
project_id
pathstringrequired
project id value in the OpenAI API contract.
service_account_id
pathstringrequired
service account id value in the OpenAI API contract.
Request body
CreateProjectServiceAccountApiKeyBody
Content-Type: application/json
Properties: namescopes
Responses
200
ServiceAccountApiKeyBodyapplication/json
Successful supplier response.
Properties: created_atidnameobjectvalue
{
"created_at": 0,
"object": "organization.project.service_account.api_key"
}