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

NameTypeDescription
project_id requiredstringThe ID of the project.
name requiredstringThe name of the service account being created.
create_service_account_onlybooleanCreate the service account without default roles or an API key.
expires_in_secondsintegerNumber 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:

call_tool arguments
{
  "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:

Run in your terminal
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 ….

More from OpenAI API