You can create an API client in Jamf Pro to generate a client secret, which can then be used by the Jamf Pro API to generate access tokens.
Requirements
At least one API role created in Jamf Pro
In Jamf Pro, click Settings
in the sidebar.
In the System section, click API roles and clients.
Click the APl Clients tab at the top of the pane.
Click New .
Enter a display name for the API client.
In the API Roles field, add the roles you want to assign to the client.
The client will have the cumulative privileges of all assigned roles.
Under Access Token Lifetime, enter the time in seconds that you want access tokens to be valid for.
Note:
Changing the Access Token Lifetime value at a later time does not affect any access tokens previously generated from the API client.
Similarly, deleting or disabling a client does not disallow access for previously generated access tokens that are still valid. Changes made to any API roles assigned to a client, however, will affect all access tokens immediately.
Click Save .
Click Edit .
Click Enable API Client to allow the client to be used to generate a client secret.