Create API Key
create-api-keyGenerate a new RawTree API key for programmatic access or credential rotation. Choose from read-only, write-only, read-write, or admin permissions.
Instructions
Purpose: Create a new RawTree API key for the configured project.
NOT for: User login or creating projects. Use RawTree auth/CLI or the dashboard for those workflows.
Returns: The new API key token. The token is only shown once, so you MUST display it to the user.
Auth: Requires admin permission for unscoped project API key auth. When RAWTREE_ORG and RAWTREE_PROJECT are configured, this uses RawTree's scoped route.
When to use:
User needs a key for CI, an agent, a connector, or a script
User wants a read-only, write-only, read-write, or admin credential
User asks to rotate credentials by creating a replacement before revoking the old key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable API key name. | |
| permission | No | Permission level. Prefer read_only for query-only agents and write_only for ingest-only connectors. | read_write |