Add SMTP Configuration​
Add a new SMTP configuration if nothing is set yet.
Request Body required
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 500 characters
Make sure to include the port.
Possible values: <= 200 characters
Possible values: <= 200 characters
Request Body required
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 500 characters
Make sure to include the port.
Possible values: <= 200 characters
Possible values: <= 200 characters
Request Body required
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 500 characters
Make sure to include the port.
Possible values: <= 200 characters
Possible values: <= 200 characters
- 200
- 403
- 404
- default
A successful response.
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-06-11T10:37:15.680Z",
"changeDate": "2024-06-11T10:37:15.680Z",
"resourceOwner": "69629023906488334"
},
"id": "string"
}
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-06-11T10:37:15.680Z",
"changeDate": "2024-06-11T10:37:15.680Z",
"resourceOwner": "69629023906488334"
},
"id": "string"
}
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-06-11T10:37:15.680Z",
"changeDate": "2024-06-11T10:37:15.680Z",
"resourceOwner": "69629023906488334"
},
"id": "string"
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /smtp
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/smtp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"senderAddress": "noreply@m.zitadel.cloud",
"senderName": "ZITADEL",
"tls": true,
"host": "smtp.postmarkapp.com:587",
"user": "197f0117-529e-443d-bf6c-0292dd9a02b7",
"password": "this-is-my-password",
"replyToAddress": "replyto@m.zitadel.cloud",
"description": "provider description"
}'