Delete credential
DELETE
/api/domains/{domain}/credentials/{credential}
const url = 'https://smtp-app.kirim.email/api/domains/example.com/credentials/92703823-f3a4-48e2-8e87-7adf25454800';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://smtp-app.kirim.email/api/domains/example.com/credentials/92703823-f3a4-48e2-8e87-7adf25454800 \ --header 'Authorization: Basic <credentials>'Delete a specific SMTP credential
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
Example
example.comDomain name that must be owned by the authenticated user. The domain must be verified and properly configured for email sending.
credential
required
string format: uuid
Example
92703823-f3a4-48e2-8e87-7adf25454800Credential GUID (user_smtp_guid)
Responses
Section titled “Responses”Credential deleted successfully
Headers
Section titled “Headers”X-RateLimit-Limit
integer
Maximum requests per minute
X-RateLimit-Remaining
integer
Remaining requests in current window
Unauthorized - Invalid or missing authentication credentials
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Unauthorized"}Forbidden - Credential does not belong to the specified domain
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Credential does not belong to the specified domain"}Credential not found
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Credential not found"}Too Many Requests - Rate limit exceeded. Retry after the specified time.
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Too many attempts. Please try again later."}Headers
Section titled “Headers”Retry-After
integer
Seconds until rate limit resets
X-RateLimit-Limit
integer
Maximum requests per minute
X-RateLimit-Remaining
integer
Remaining requests in current window
Server Error - Unexpected error occurred
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "An error occurred while processing the request."}