curl --request POST \
--url https://app.instantcompliance.ai/api/v1/customers/{id}/certificate \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.instantcompliance.ai/api/v1/customers/{id}/certificate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.instantcompliance.ai/api/v1/customers/{id}/certificate', 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://app.instantcompliance.ai/api/v1/customers/{id}/certificate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.instantcompliance.ai/api/v1/customers/{id}/certificate"
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://app.instantcompliance.ai/api/v1/customers/{id}/certificate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.instantcompliance.ai/api/v1/customers/{id}/certificate")
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{
"certificate_id": "IC-7F3K-9QP2",
"created": true,
"issued_at": "2023-11-07T05:31:56Z",
"outcome": "VERIFIED",
"verification_url": "<string>",
"download_url": "<string>",
"download_url_expires_at": "2023-11-07T05:31:56Z",
"filename": "verification-certificate-jane-citizen-IC-7F3K-9QP2.pdf",
"content_type": "application/pdf"
}{
"certificate_id": "IC-7F3K-9QP2",
"created": true,
"issued_at": "2023-11-07T05:31:56Z",
"outcome": "VERIFIED",
"verification_url": "<string>",
"download_url": "<string>",
"download_url_expires_at": "2023-11-07T05:31:56Z",
"filename": "verification-certificate-jane-citizen-IC-7F3K-9QP2.pdf",
"content_type": "application/pdf"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or revoked API key."
}
}{
"error": {
"code": "forbidden_scope",
"message": "This API key does not have the required scope. customers:write",
"details": {
"required_scope": "customers:write"
}
}
}{
"error": {
"code": "not_found",
"message": "Customer not found."
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Slow down and retry shortly.",
"details": {
"limit": 60,
"window_seconds": 60
}
}
}Get a client's verification certificate
Ensure a current verification certificate exists for a verified
individual and return a 10-minute download link to its one-page PDF.
Reuses the latest certificate unless what it shows has changed;
otherwise issues a new one (201). Repeat calls are safe and return a freshly
signed link. Idempotency-Key is ignored on this route.
Requires the certificates:write scope. Individuals and sole traders
only.
curl --request POST \
--url https://app.instantcompliance.ai/api/v1/customers/{id}/certificate \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.instantcompliance.ai/api/v1/customers/{id}/certificate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.instantcompliance.ai/api/v1/customers/{id}/certificate', 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://app.instantcompliance.ai/api/v1/customers/{id}/certificate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.instantcompliance.ai/api/v1/customers/{id}/certificate"
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://app.instantcompliance.ai/api/v1/customers/{id}/certificate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.instantcompliance.ai/api/v1/customers/{id}/certificate")
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{
"certificate_id": "IC-7F3K-9QP2",
"created": true,
"issued_at": "2023-11-07T05:31:56Z",
"outcome": "VERIFIED",
"verification_url": "<string>",
"download_url": "<string>",
"download_url_expires_at": "2023-11-07T05:31:56Z",
"filename": "verification-certificate-jane-citizen-IC-7F3K-9QP2.pdf",
"content_type": "application/pdf"
}{
"certificate_id": "IC-7F3K-9QP2",
"created": true,
"issued_at": "2023-11-07T05:31:56Z",
"outcome": "VERIFIED",
"verification_url": "<string>",
"download_url": "<string>",
"download_url_expires_at": "2023-11-07T05:31:56Z",
"filename": "verification-certificate-jane-citizen-IC-7F3K-9QP2.pdf",
"content_type": "application/pdf"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or revoked API key."
}
}{
"error": {
"code": "forbidden_scope",
"message": "This API key does not have the required scope. customers:write",
"details": {
"required_scope": "customers:write"
}
}
}{
"error": {
"code": "not_found",
"message": "Customer not found."
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Slow down and retry shortly.",
"details": {
"limit": 60,
"window_seconds": 60
}
}
}What you get
- 201 when this call issued a new certificate, 200 when the latest one is still current. Calling again is always safe.
download_urlworks for 10 minutes and needs no login: treat it like a password until it expires. Each call signs a fresh link.filenameis unique per certificate — use it to avoid filing the same certificate twice.
When it isn’t available
details.reason | Meaning |
|---|---|
not_verified | The client hasn’t finished verification, a step is still open, a check hasn’t passed or been completed, or enhanced due diligence is outstanding. Try again later. |
not_available | Check the client in Instant Compliance. |
details.reason to decide when to retry. Don’t pass it on to the
client: whether and how a client is told about their verification is your
compliance team’s call.Authorizations
Bearer API key issued from Settings → Developers in your
Instant Compliance organisation. Format: ic_live_….
Path Parameters
Customer identifier. Accepts either Instant Compliance's UUID or your
own external_id.
Response
An existing, still-current certificate.
Public certificate code.
"IC-7F3K-9QP2"
True when this call issued the certificate.
VERIFIED Public page confirming the certificate is genuine.
Download link for the PDF. Expires after 10 minutes; anyone holding it can download until then.
Suggested file name; unique per certificate.
"verification-certificate-jane-citizen-IC-7F3K-9QP2.pdf"
application/pdf 
