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. When you click Add API key you only choose GDPR-compliant models only. Everything else is changed on the key's page under Overview and Limits.

Who may manage keys

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

Role permissionAllows
Use the Platform API and manage API keysOpening the Platform API, seeing every key, creating keys and changing or deleting the ones you created
Manage all Platform API keysChanging and deleting every key of the workspace, not just your own
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
ModelsWhich models the key may use for completions, embeddings, images and moreAll models
GDPR-compliant models onlyLimits 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 limitMaximum monthly spend of the keyOff
Endpoints (under Tools)Endpoints no model setting covers, such as Web search (/v2/search)On
Admin PermissionsAccess to usage export and audit log exportNone

GDPR-compliant models only excludes every model hosted outside the EU, also one you selected under Models: Choose models shows such models locked and the overview names one already chosen, and a request for one is refused with a 403 that says the key only allows EU-hosted models.

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. A request for a model hosted outside the EU is refused with a 403 that names §203 instead of the key setting.

Tools: endpoints a key may call

Some endpoints are not covered by Model Permissions, so the key has its own switch for them on its page under Tools › Endpoints. Web search (/v2/search) decides whether the key may call POST /v2/search. It is on for every key, including keys created before the switch existed. Switch it off to keep a key away from the web.

A request to a switched-off endpoint is refused with 403 and this body:

JSON
{
  "error": "This API key may not call POST /v2/search. Whoever manages the key can allow it on the key's page in the Platform API dashboard, under \"Tools\" › \"Endpoints\".",
  "code": "api_key_endpoint_not_permitted"
}

Only someone who may use web search in the chat can switch Web search on for a key. Anyone who may change the key can switch it off.

Through the API the switches are the endpointScopes list (endpoints:web_search for web search). GET /v2/apiKeys returns it for each key.

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 keys with their current permissions and spend: every key of the workspace if you may Manage credits and spending limits or the calling key can export usage data, otherwise only your own keys.

Spending limits

In the dashboard you enter the limit in euros: as Limit (EUR) when you create the key, later on the key's page under Limits as Monthly limit. When a key reaches it, its requests return 402 until the next month or until you raise the limit. Other keys keep working. There is also a Daily limit, which resets every day at midnight German time.

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. Change their permissions on their page.
  • System-managed keys are created by DeutschlandGPT for its own features. They are in the same list; 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. The key's page shows them under Tools; they can't be changed there.

Option when creatingScopeGrants 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?