apicheats.dev Cheat sheet Raw .md
POST

Try POST /organization/projects/{project_id}/service_accounts — OpenAI API

OpenAI playground

Create project service account

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.openai.com; the proxy stores and logs nothing about them.

Path

Body application/json

3 body fields
  • name · required · string — The name of the service account being created.
  • create_service_account_only · optional · boolean — Create the service account without default roles or an API key.
  • expires_in_seconds · optional · integer — Number of seconds until the initial API key expires. If omitted or null, the key does not expire unless the effective organization or project policy requires an expiration. When a policy sets a maximum lifetime, this value must be provided and must not exceed that limit. A non-null value cannot be used when `create_service_account_only` is true.