POST
https://api.us.nylas.com/v3/iam/principals/{principal_id}/credentialsCreate IAM credential
Creates an API key for an active principal.
name and expires_at are required. expires_at must be in the future and no more than 10 years ahead.
This response is the only time Nylas returns the key's secret, so store it securely. Nylas rejects unknown fields and null values.
Requires an IAM API key with the iam.credentials.create permission. Application API keys and access tokens don't work.