openai.admin covers organization resources and usage. openai.admin.projects
covers project-scoped API keys, service accounts, limits, permissions, users,
groups, roles, retention, spend alerts, and certificates.
Admin wrappers take positional resource IDs (project, group, user, role, and so on) followed by a trailing kebab-case map for optional body or query values, matching the rest of the library.
Organization spend limits use spend-limit-retrieve, spend-limit-update,
and spend-limit-delete. Project spend limits use the same functions in
openai.admin.projects, with a project ID. Create a service-account API key
with service-account-api-key-create and project and service-account IDs.
(admin/project-create client {:name "research"})
(admin/group-role-create client "group_..." {:role-id "role_..."})
(admin/group-user-retrieve client "group_..." "user_...")
(admin-projects/user-list client "proj_..." {:limit 20})
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |