Skip to main content

Config for twilio

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

{
"accountSid": "account_id",
"authToken": "evenMoreSecret"
}

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": {
"accountSid": {
"title": "Account ID",
"type": "string",
"description": "Your Twilio account id",
"writeOnly": true,
"minLength": 1,
"examples": [
"account_id"
]
},
"authToken": {
"title": "Auth Token",
"type": "string",
"description": "Your Twilio auth token",
"writeOnly": true,
"minLength": 1,
"examples": [
"evenMoreSecret"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"accountSid",
"authToken"
]
}