Create API Key
create-api-keyGenerates a new RawTree API key for a project with specified permissions like read-only, write-only, read-write, or admin. Use for CI, scripts, or agents.
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 value. The API key is only shown once, so you MUST display it to the user.
Auth: Uses POST /v1/keys and requires admin permission for project API key auth.
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 |