Create a new SMTP or API credential for a tenant. The credential can be used to send emails via Ark on behalf of the tenant.
Important: The credential key is only returned once at creation time. Store it securely - you cannot retrieve it again.
Credential Types:
smtp - For SMTP-based email sending. Returns both key and smtpUsername.api - For API-based email sending. Returns only key.Use your API key from arkhq.io/org/credentials
Authorization: Bearer YOUR_API_KEYThe tenant ID
Name for the credential. Can only contain letters, numbers, hyphens, and underscores. Max 50 characters.
1 - 50^[a-zA-Z0-9_-]+$"production-smtp"
Type of credential:
smtp - For SMTP-based email sendingapi - For API-based email sendingsmtp, api "smtp"