Generate a Fleet API key from Primo
1
Go to Settings > Developers
Scroll to the FleetDM API key section.
2
Enter a key name
Enter a Key name, for example the tool the key is for.
3
Click Generate key
4
Copy the token
Copy the token from the FleetDM API key created window. You can find it again later in the keys table.
Generate a Fleet API key from the Fleet dashboard
1
Open your Fleet dashboard
Open it from the cockpit via Settings > MDM > Open Fleet.
2
Go to My account
Click your avatar in the top-right corner and go to My account.
3
Scroll to API token
4
Click Get API token
5
Copy the token
The token is tied to your Fleet user account.
Generate a Fleet API key from the CLI
You can also create Fleet API keys programmatically using the Fleet CLI:Use the Fleet API key
Pass the token in theAuthorization header: