Create Organization Api Key
Create an API key delegated from the calling credential.
The new key can never exceed the caller's own grant: its scopes, personal/service kind, and project scope are all constrained to the caller. Creation is audit-logged by the service layer.
Omitting project_id makes an organization-wide key. One may carry a project-bound scope (project:gateway_proxy, project:read_otlp, project:write_otlp) only alongside organization:create_api_key, and then only to pass on: it resolves no project, so it can grant the scope to the project keys it creates but never use it. The one exception is project:read_otlp beside project:read, which lets the key query every readable project through the MCP server. Any other pairing is rejected with 422.
Request
- Base URLhttps://logfire-api.pydantic.dev/api
- AuthOAuth 2Authorization codeapi/oauth/authorizeToken URL/api/oauth/tokenScopesorganization:create_api_key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"scopes": [
"organization:read_api_key"
]
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.