Home / Servers / OpenAI API / create_project_service_account
Create project service account
An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.
Create project service account Creates a new service account in the project. By default, this also returns an unredacted API key for the service account. [POST /organization/projects/{project_id}/service_accounts]
Name on the gateway: openai_api__create_project_service_account · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
project_id required | string | The ID of the project. |
name required | string | The name of the service account being created. |
create_service_account_only | boolean | Create the service account without default roles or an API key. |
expires_in_seconds | integer | Number of seconds until the initial API key expires. If omitted or null, the… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "openai_api__create_project_service_account",
"arguments": {
"project_id": "…",
"name": "…"
}
}Or connect the OpenAI API server directly, which lists 371 tools including this one:
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create project service account tool with project_id set to ….