- API reference
- IAM credentials
- Get IAM credential
GET
https://api.us.nylas.com/v3/iam/principals/{principal_id}/credentials/{credential_id}Get IAM credential
Returns an API key's details.
The response never includes the key's secret.
Requires an IAM API key with the iam.credentials.read permission. Application API keys and access tokens don't work.
Example:
{"id":"8Lp2QwVm4rT6sYxN0cDzB","principal_id":"9Xf3LmQa2rP7sTuV0wYzB","type":"api_key","name":"Support worker key","status":"active","expires_at":1799193600,"created_at":1791417600,"updated_at":1791417600}The request is invalid, or the organization has reached its quota.
The API key's principal is missing the required permission or an Organization binding.
The change conflicts with the principal's or API key's current state.