post https://api.pandadoc.com/public/v1/workspaces//api-keys
This endpoint allows Org Admins to generate a new API key for a user.
Current API-Key will be disabled, if an API key already exists in the workspace.
- Only an Org Admin can generate an API keys.
- The API key will be generated for the Org admin who makes the request, if the
user_id
is not provided.- User must be in a workspace and has the Admin role, if you pass
user_id
.