curl -X POST 'https://verification.didit.me/v3/bank/connections/5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35/manage-link/' \
-H 'x-api-key: YOUR_API_KEY'import requests
url = "https://verification.didit.me/v3/bank/connections/{id}/manage-link/"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://verification.didit.me/v3/bank/connections/{id}/manage-link/', 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://verification.didit.me/v3/bank/connections/{id}/manage-link/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/bank/connections/{id}/manage-link/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/bank/connections/{id}/manage-link/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/bank/connections/{id}/manage-link/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://verify.didit.me/bank/access/bam_9Wc3Rk7Tn2Xv5Lq1Hd8Zs4Py6Ma0",
"expires_at": "2026-11-21T12:25:00Z"
}创建银行管理链接 API:打开访问权限页面
Didit 的创建管理链接接口可返回一个有效期 15 分钟、仅可使用一次的链接,用于为已登录用户打开其银行访问权限页面。
curl -X POST 'https://verification.didit.me/v3/bank/connections/5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35/manage-link/' \
-H 'x-api-key: YOUR_API_KEY'import requests
url = "https://verification.didit.me/v3/bank/connections/{id}/manage-link/"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://verification.didit.me/v3/bank/connections/{id}/manage-link/', 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://verification.didit.me/v3/bank/connections/{id}/manage-link/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/bank/connections/{id}/manage-link/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/bank/connections/{id}/manage-link/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/bank/connections/{id}/manage-link/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://verify.didit.me/bank/access/bam_9Wc3Rk7Tn2Xv5Lq1Hd8Zs4Py6Ma0",
"expires_at": "2026-11-21T12:25:00Z"
}url 后,请立即打开。该链接会跳过身份证明步骤,因此切勿通过电子邮件发送或记录该链接。在 24 小时内,使用相同的 Idempotency-Key 和相同凭证重试相同的请求,将返回原始 URL。删除该连接后,重放将失效:此类重试会返回 409 idempotency_key_forgotten。链接被使用或过期后,如需为新的点击生成链接,请使用新的幂等键。
即使一次性连接的 manage_url 为 null,您仍可为其创建管理链接。采集完成后,页面会显示共享已结束。如需用于电子邮件或收据,请仅在存在 manage_url 时使用该持久链接。该链接需要验证身份,并且在预置的演示连接上可能不存在。
参见用户访问页面。授权
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
请求头
Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. If a deletion erased a resource named in the first request or its successful response, within 24 hours of that request's first successful response the key is refused whatever the request with 409 idempotency_key_forgotten and nothing runs. The first write already ran: if you only need its result, do not resend; to write again, send the request again with a new key. After 24 hours from the first successful response, the same key starts a new request. A write that runs and returns a 4xx or 5xx releases its key so you can retry with the same key. If Didit refuses a key before running the write, that refusal leaves the existing reservation in place. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.
1 - 255响应
The manage link.
A short-lived link to the person's own access page.