Skip to main content

Config for mailgun

Jobs that use the mailgun adaptor may require authentication. A "credential" for the mailgun adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"domain": "sandbox-123.mailgun.org",
"apiKey": "otherThiNGfSECret"
}

Full Schema

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"domain": {
"title": "Domain Name",
"type": "string",
"description": "Mailgun API Domain Name",
"format": "string",
"minLength": 1,
"examples": [
"sandbox-123.mailgun.org"
]
},
"apiKey": {
"title": "API Key",
"type": "string",
"description": "Mailgun API Key",
"writeOnly": true,
"minLength": 1,
"examples": [
"otherThiNGfSECret"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"domain",
"apiKey"
]
}