Skip to main content

Config for nexmo

Jobs that use the nexmo adaptor may require authentication. A "credential" for the nexmo 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.

{
"apiKey": "mYaP1K3y",
"apiSecret": "supersecret"
}

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": {
"apiKey": {
"title": "API Key",
"type": "string",
"description": "Your Nexmo API Key",
"writeOnly": true,
"minLength": 1,
"examples": [
"mYaP1K3y"
]
},
"apiSecret": {
"title": "API Secret",
"type": "string",
"description": "Your Nexmo API Secret key",
"writeOnly": true,
"minLength": 1,
"examples": [
"supersecret"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"apiKey",
"apiSecret"
]
}