Run a verification for a representative
code examples curl request post \\ \ url https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type} \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api detected app/api/v2/public/representatives/{uuid}/verifications/{type}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // created — run completed { "data" { "type" "idv", "provider" "id scan", "info" {} } }// accepted — run is pending // unauthorized { "message" "unauthorized " }// not found { "message" "not found" }// unprocessable content { "message" "the example field code is required ", "example field" \[ "the example field has already been taken " ] }// too many requests { "message" "too many attempts " }