Credentials
Update a credential
Update a credential's name or hold status.
Hold Status:
- When hold: true, the credential is disabled and cannot be used to send emails.
- When hold: false, the credential is active and can send emails.
- Use this to temporarily disable a credential without deleting it.
patch/tenants/{tenantId}/credentials/{credentialId}
Path parameters
tenantIdstring required
The tenant ID
credentialIdinteger required
The credential ID (numeric)
Request body
Example request
{
"name": "production-smtp-v2",
"hold": true
}Response
Credential updated
Example response
{
"data": {
"id": 123,
"name": "production-smtp",
"type": "smtp",
"lastUsedAt": "2026-02-03T10:30:00Z",
"createdAt": "2026-01-15T08:00:00Z",
"updatedAt": "2026-02-03T10:30:00Z",
"key": "cred_a1b2c3d4e5f6g7h8i9j0...",
"smtpUsername": "cm6abc123def456/cred_a1b2c3d4e5f6g7h8i9j0..."
},
"meta": {
"requestId": "req_V1StGXR8_Z5jdHi6"
}
}