curl --request PATCH \
--url https://api.humanos.tech/request/resend/{requestId}import requests
url = "https://api.humanos.tech/request/resend/{requestId}"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.humanos.tech/request/resend/{requestId}', 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://api.humanos.tech/request/resend/{requestId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.humanos.tech/request/resend/{requestId}"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.humanos.tech/request/resend/{requestId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.humanos.tech/request/resend/{requestId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"ok": true
}{
"statusCode": 400,
"message": "Exactly one search parameter must be provided: contact, id, or internalId",
"error": "Bad Request"
}{
"statusCode": 402,
"message": "Insufficient credits for this action. Please top up your balance.",
"error": "Unknown Error"
}{
"statusCode": 403,
"message": "Request was canceled, the signing link expired, the maximum OTP attempts or resends were reached, or the minimum time between resends has not elapsed",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "SubjectOtp not found",
"error": "Not Found"
}{
"statusCode": 503,
"message": "Idempotency is temporarily unavailable. Retry with the same Idempotency-Key.",
"error": "Service Unavailable"
}Resend OTP
Resend a One-Time Password (OTP) to a subject for credential approval, via email or SMS.
Provide exactly one query parameter to identify the subject: contact, id, or internalId.
The endpoint validates:
- The request is not canceled
- Maximum attempts have not been reached, only successful OTP sends count towards resend limits
- Sufficient time has passed since the last successful resend
- Billing restrictions apply
curl --request PATCH \
--url https://api.humanos.tech/request/resend/{requestId}import requests
url = "https://api.humanos.tech/request/resend/{requestId}"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.humanos.tech/request/resend/{requestId}', 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://api.humanos.tech/request/resend/{requestId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.humanos.tech/request/resend/{requestId}"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.humanos.tech/request/resend/{requestId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.humanos.tech/request/resend/{requestId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"ok": true
}{
"statusCode": 400,
"message": "Exactly one search parameter must be provided: contact, id, or internalId",
"error": "Bad Request"
}{
"statusCode": 402,
"message": "Insufficient credits for this action. Please top up your balance.",
"error": "Unknown Error"
}{
"statusCode": 403,
"message": "Request was canceled, the signing link expired, the maximum OTP attempts or resends were reached, or the minimum time between resends has not elapsed",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "SubjectOtp not found",
"error": "Not Found"
}{
"statusCode": 503,
"message": "Idempotency is temporarily unavailable. Retry with the same Idempotency-Key.",
"error": "Service Unavailable"
}Headers
Optional. A unique value you choose, such as a UUID, that makes retries safe. For 24 hours, a request with the same Idempotency-Key value and the same path parameters, query and body returns the original response instead of running again. Values are scoped to your API key and to this endpoint. A 409 means the first request with this value is still running (this clears within 5 minutes), or the value was already used for a different request. A 503 with Retry-After means nothing ran: retry with the same value after that many seconds.
"a96d14c5-8e60-4f6b-9d80-5c18c0e4202a"
Pin request, response, and webhook shapes to a specific dated API version (YYYY-MM-DD). Omit to use the version pinned to your API key (set when the key is created; new keys default to the latest version). New integrations should target the latest version.
^\d{4}-\d{2}-\d{2}$"2026-11-02"
Path Parameters
Unique identifier of the credential request. Must be a valid MongoDB ObjectId.
"507f1f77bcf86cd799439011"
Query Parameters
User's VIA identifier
"did:web:humanos.tech:user:73ebefdd-a549-4873-aad9-def80c40c8c8"
Identifier to help you identify the user in your own system. We recommend using a unique value.
"internal-12345"
Contact email or phone, including documented synthetic request aliases
Response
Returns a confirmation that the OTP was sent successfully via email or SMS.
Whether the operation was successful
true