Crossmint keys create
Create a new API key
The keys create command allows you to create a new API key for your Crossmint project.
To use it, run the following command from your terminal
Server-side keys are view-once in Production, make sure to copy your API key secret when it’s displayed, as it won’t be shown again.
Client-side keys require selecting the app type and adding allowed origins—use domain URLs for web or package/bundle IDs for mobile.
Example
Start the API key creation process:
Select the type of key you want to create:
For client-side keys, select the application type:
Specify the allowed origins for your key.
- For web enter the domain, eg: https://crossmint.com
- For mobile enter your Android Package name or IOS Bundle ID, eg: com.company.appname
Select the scopes you want to add to the key by pressing space. Once you are ready, press enter to create the key:
The CLI will display the created API key information, this includes the Key ID and Client Secret: