Refresh Identity Verification Check URL
curl --request POST \
--url https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")
.header("Authorization", "Bearer <token>")
.asString();val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")
.post(null)
.addHeader("Authorization", "Bearer <token>")
.build()
val response = client.newCall(request).execute()falseimport Foundation
let url = URL(string: "https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Authorization": "Bearer <token>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))using RestSharp;
var options = new RestClientOptions("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id_verification_check": {
"id": "<string>",
"identity_id": "<string>",
"verification_url": "<string>",
"reason": "ONBOARDING",
"request_id": "<string>",
"redirect_url": "<string>",
"status": "IN_PROGRESS",
"created_at": "2023-01-15T01:30:15.01Z",
"updated_at": "2023-01-15T01:30:15.01Z",
"labels": [
"<string>"
]
}
}Identity Verification
Refresh Identity Verification Check URL
Refresh the verification URL for an existing identity verification check.
POST
/
v2
/
identities
/
{identity_id}
/
id_verification
/
{id}
/
refresh_url
Refresh Identity Verification Check URL
curl --request POST \
--url https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")
.header("Authorization", "Bearer <token>")
.asString();val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")
.post(null)
.addHeader("Authorization", "Bearer <token>")
.build()
val response = client.newCall(request).execute()falseimport Foundation
let url = URL(string: "https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Authorization": "Bearer <token>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))using RestSharp;
var options = new RestClientOptions("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.prod.bastion.com/v2/identities/{identity_id}/id_verification/{id}/refresh_url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id_verification_check": {
"id": "<string>",
"identity_id": "<string>",
"verification_url": "<string>",
"reason": "ONBOARDING",
"request_id": "<string>",
"redirect_url": "<string>",
"status": "IN_PROGRESS",
"created_at": "2023-01-15T01:30:15.01Z",
"updated_at": "2023-01-15T01:30:15.01Z",
"labels": [
"<string>"
]
}
}Authorizations
Bearer authentication with an API token
Path Parameters
Unique identifier of the identity associated with the check
Unique identifier of the identity verification check to refresh
Response
Success
The refreshed identity verification check
Show child attributes
Show child attributes