Zum Inhalt springen
DeutschlandGPT

Permissions

Control which models, folders and Custom GPTs an API key can reach, set its spending limit, and see which role permissions the Platform API needs.

Every API key carries its own permissions. A new key starts narrow: it can use all models but only GDPR-compliant ones, and it has no access to document folders or Custom GPTs until you grant it. You set this when you click Add API key and change it later with Edit permissions.

Create API key dialog with model selection, permissions and spending limit

Who may manage keys

In an organisation, two role permissions govern the Platform API:

Role permissionAllows
Use the Platform API and manage API keysOpening the Platform API and creating, changing and deleting API keys
Manage credits and spending limitsBuying credits, payment methods, auto top-up and spending limits

Your administrator assigns them in the role settings.

Permission types

TypeControlsDefault for a new key
Model PermissionsWhich models the key may use for completions, embeddings, images and moreAll models
Only GDPR-compliant modelsLimits the key to models hosted in the EU or GermanyOn
Document Folder PermissionsWhich document folders the key may list, read and searchNone
Custom GPT PermissionsWhich Custom GPTs the key may list and useNone
Monthly Spending LimitMaximum monthly spend of the keyOff
Admin PermissionsAccess to usage export and audit log exportNone

If your organisation is subject to professional secrecy (§203 StGB), the key is always limited to GDPR-compliant models and to models covered by your §203 addendum. Both switches are on and can't be turned off.

Empty-list semantics in the API

When you read or set permissions through the API, an empty list means different things per resource:

  • Models: an empty or missing modelIds means the key can use all models. Add at least one ID to restrict it to those.
  • Document folders and Custom GPTs: governed by a separate restrictDocumentFolders / restrictCustomGpts flag, which is on by default. While it is on, an empty list means no access. Set it to false to grant access to all folders or Custom GPTs regardless of the list.

GET /v2/apiKeys returns every key you can see with its current permissions and spend.

Spending limits

In the dashboard you enter the limit in euros, as Limit (EUR). When a key reaches it, its requests return 402 until the next month or until you raise the limit. Other keys keep working.

The API reports amounts in microcents (1 EUR = 100,000,000 microcents):

EUR amountMicrocents
0.01 EUR1,000,000
1.00 EUR100,000,000
50.00 EUR5,000,000,000

The GET /v2/apiKeys response includes monthlySpendingLimit and currentMonthSpend for each key.

A key's limit is not the only cap. The workspace has its own monthly limit, and in an organisation each member can have a Chat budget per member that also covers the keys they created. All of them are listed under Budgets & limits.

System keys and user keys

  • User keys are created in the dashboard and appear under Your keys. Their permissions can be changed there.
  • System-managed keys are created by DeutschlandGPT for its own features. Their permissions can't be changed.

Admin scopes

Admin Permissions give a key access to admin-only endpoints. They can only be chosen when the key is created; Edit permissions doesn't offer them later.

Option in the dialogScopeGrants access toAvailable for
Export usage analyticsadmin:export_usageUsage analytics endpointsAll workspaces
Export audit logsadmin:export_audit_logsAudit log export endpointsEnterprise plan only

Only workspace admins, or the owner of a personal workspace, can create keys with admin scopes.

Keys with admin scopes can read workspace usage data and audit logs. Create them only for trusted services.

Organisation features

Folder permissions and Custom GPT permissions need an organisation workspace. A personal workspace has no shared folders or Custom GPTs to grant. Audit log export additionally needs the Enterprise plan.

Was this page helpful?
Permissions · DeutschlandGPT