Verification
Update SMS verification config
PUT
/
api
/
verification
/
config
Update SMS verification config
curl --request PUT \
--url https://spitshake.io/api/verification/config \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"twilio_account_sid": "<string>",
"twilio_auth_token": "<string>",
"twilio_phone_number": "<string>",
"telnyx_api_key": "<string>",
"telnyx_from_number": "<string>",
"telnyx_messaging_profile_id": "<string>",
"vonage_api_key": "<string>",
"vonage_api_secret": "<string>",
"vonage_from": "<string>"
}
'import requests
url = "https://spitshake.io/api/verification/config"
payload = {
"twilio_account_sid": "<string>",
"twilio_auth_token": "<string>",
"twilio_phone_number": "<string>",
"telnyx_api_key": "<string>",
"telnyx_from_number": "<string>",
"telnyx_messaging_profile_id": "<string>",
"vonage_api_key": "<string>",
"vonage_api_secret": "<string>",
"vonage_from": "<string>"
}
headers = {
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Auth-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
twilio_account_sid: '<string>',
twilio_auth_token: '<string>',
twilio_phone_number: '<string>',
telnyx_api_key: '<string>',
telnyx_from_number: '<string>',
telnyx_messaging_profile_id: '<string>',
vonage_api_key: '<string>',
vonage_api_secret: '<string>',
vonage_from: '<string>'
})
};
fetch('https://spitshake.io/api/verification/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://spitshake.io/api/verification/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'twilio_account_sid' => '<string>',
'twilio_auth_token' => '<string>',
'twilio_phone_number' => '<string>',
'telnyx_api_key' => '<string>',
'telnyx_from_number' => '<string>',
'telnyx_messaging_profile_id' => '<string>',
'vonage_api_key' => '<string>',
'vonage_api_secret' => '<string>',
'vonage_from' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://spitshake.io/api/verification/config"
payload := strings.NewReader("{\n \"twilio_account_sid\": \"<string>\",\n \"twilio_auth_token\": \"<string>\",\n \"twilio_phone_number\": \"<string>\",\n \"telnyx_api_key\": \"<string>\",\n \"telnyx_from_number\": \"<string>\",\n \"telnyx_messaging_profile_id\": \"<string>\",\n \"vonage_api_key\": \"<string>\",\n \"vonage_api_secret\": \"<string>\",\n \"vonage_from\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Auth-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://spitshake.io/api/verification/config")
.header("X-Auth-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"twilio_account_sid\": \"<string>\",\n \"twilio_auth_token\": \"<string>\",\n \"twilio_phone_number\": \"<string>\",\n \"telnyx_api_key\": \"<string>\",\n \"telnyx_from_number\": \"<string>\",\n \"telnyx_messaging_profile_id\": \"<string>\",\n \"vonage_api_key\": \"<string>\",\n \"vonage_api_secret\": \"<string>\",\n \"vonage_from\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://spitshake.io/api/verification/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Auth-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"twilio_account_sid\": \"<string>\",\n \"twilio_auth_token\": \"<string>\",\n \"twilio_phone_number\": \"<string>\",\n \"telnyx_api_key\": \"<string>\",\n \"telnyx_from_number\": \"<string>\",\n \"telnyx_messaging_profile_id\": \"<string>\",\n \"vonage_api_key\": \"<string>\",\n \"vonage_api_secret\": \"<string>\",\n \"vonage_from\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"provider": "<string>",
"configured": true
}Authorizations
ApiTokenSessionCookie
API token generated at Settings > API
Body
application/json
Bring your own sender. A present value is stored encrypted; an explicit null or ""
removes that key. Required per provider - twilio: twilio_account_sid,
twilio_auth_token, twilio_phone_number; telnyx: telnyx_api_key,
telnyx_from_number (optional telnyx_messaging_profile_id); vonage:
vonage_api_key, vonage_api_secret, vonage_from.
Available options:
twilio, telnyx, vonage ⌘I
Update SMS verification config
curl --request PUT \
--url https://spitshake.io/api/verification/config \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"twilio_account_sid": "<string>",
"twilio_auth_token": "<string>",
"twilio_phone_number": "<string>",
"telnyx_api_key": "<string>",
"telnyx_from_number": "<string>",
"telnyx_messaging_profile_id": "<string>",
"vonage_api_key": "<string>",
"vonage_api_secret": "<string>",
"vonage_from": "<string>"
}
'import requests
url = "https://spitshake.io/api/verification/config"
payload = {
"twilio_account_sid": "<string>",
"twilio_auth_token": "<string>",
"twilio_phone_number": "<string>",
"telnyx_api_key": "<string>",
"telnyx_from_number": "<string>",
"telnyx_messaging_profile_id": "<string>",
"vonage_api_key": "<string>",
"vonage_api_secret": "<string>",
"vonage_from": "<string>"
}
headers = {
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Auth-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
twilio_account_sid: '<string>',
twilio_auth_token: '<string>',
twilio_phone_number: '<string>',
telnyx_api_key: '<string>',
telnyx_from_number: '<string>',
telnyx_messaging_profile_id: '<string>',
vonage_api_key: '<string>',
vonage_api_secret: '<string>',
vonage_from: '<string>'
})
};
fetch('https://spitshake.io/api/verification/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://spitshake.io/api/verification/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'twilio_account_sid' => '<string>',
'twilio_auth_token' => '<string>',
'twilio_phone_number' => '<string>',
'telnyx_api_key' => '<string>',
'telnyx_from_number' => '<string>',
'telnyx_messaging_profile_id' => '<string>',
'vonage_api_key' => '<string>',
'vonage_api_secret' => '<string>',
'vonage_from' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://spitshake.io/api/verification/config"
payload := strings.NewReader("{\n \"twilio_account_sid\": \"<string>\",\n \"twilio_auth_token\": \"<string>\",\n \"twilio_phone_number\": \"<string>\",\n \"telnyx_api_key\": \"<string>\",\n \"telnyx_from_number\": \"<string>\",\n \"telnyx_messaging_profile_id\": \"<string>\",\n \"vonage_api_key\": \"<string>\",\n \"vonage_api_secret\": \"<string>\",\n \"vonage_from\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Auth-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://spitshake.io/api/verification/config")
.header("X-Auth-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"twilio_account_sid\": \"<string>\",\n \"twilio_auth_token\": \"<string>\",\n \"twilio_phone_number\": \"<string>\",\n \"telnyx_api_key\": \"<string>\",\n \"telnyx_from_number\": \"<string>\",\n \"telnyx_messaging_profile_id\": \"<string>\",\n \"vonage_api_key\": \"<string>\",\n \"vonage_api_secret\": \"<string>\",\n \"vonage_from\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://spitshake.io/api/verification/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Auth-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"twilio_account_sid\": \"<string>\",\n \"twilio_auth_token\": \"<string>\",\n \"twilio_phone_number\": \"<string>\",\n \"telnyx_api_key\": \"<string>\",\n \"telnyx_from_number\": \"<string>\",\n \"telnyx_messaging_profile_id\": \"<string>\",\n \"vonage_api_key\": \"<string>\",\n \"vonage_api_secret\": \"<string>\",\n \"vonage_from\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"provider": "<string>",
"configured": true
}
