Create api key
create_api_keyMint an ingest key for one environment and return its value exactly once. A public key (spm_pub_) is safe in a browser bundle and may only send events and evaluate flags; a secret key (spm_sec_) is server-only and may additionally send the visitor's IP and user agent. Requires the admin scope and keys.write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Application id, or orgSlug/appSlug as returned by list_apps | |
| kind | Yes | public for browsers, secret for servers | |
| label | Yes | What this key is for, e.g. 'marketing site' | |
| environment | Yes |