Get an access token
curl --request POST \
--url https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "kc_live_a3f2c4",
"timestamp": "2026-05-26T07:30:00Z",
"signature": "9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f"
}
'import requests
url = "https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token"
payload = {
"client_id": "kc_live_a3f2c4",
"timestamp": "2026-05-26T07:30:00Z",
"signature": "9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
client_id: 'kc_live_a3f2c4',
timestamp: '2026-05-26T07:30:00Z',
signature: '9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f'
})
};
fetch('https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token', 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://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client_id' => 'kc_live_a3f2c4',
'timestamp' => '2026-05-26T07:30:00Z',
'signature' => '9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token"
payload := strings.NewReader("{\n \"client_id\": \"kc_live_a3f2c4\",\n \"timestamp\": \"2026-05-26T07:30:00Z\",\n \"signature\": \"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token")
.header("Content-Type", "application/json")
.body("{\n \"client_id\": \"kc_live_a3f2c4\",\n \"timestamp\": \"2026-05-26T07:30:00Z\",\n \"signature\": \"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_id\": \"kc_live_a3f2c4\",\n \"timestamp\": \"2026-05-26T07:30:00Z\",\n \"signature\": \"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f\"\n}"
response = http.request(request)
puts response.read_body{
"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJpc3MiOiJraWMtdmVyaWZ5IiwiYXVkIjoia3ljLWFwaSIsImV4cCI6MTcyNDgyMTYwMH0...",
"token_type": "Bearer",
"expires_in": 3600,
"audience": "kyc-api"
}{
"error": "INVALID_SIGNATURE",
"message": "signature did not match"
}{
"error": "INVALID_SIGNATURE",
"message": "signature did not match"
}Authentication
Get an access token
Sign {client_id}:{timestamp} with your client_secret using
HMAC-SHA256 and send the hex digest as signature. On success
you receive a Bearer token.
timestamp must be within 5 minutes of our server clock.
POST
/
api
/
v1
/
kyc
/
auth
/
get-auth-token
Get an access token
curl --request POST \
--url https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "kc_live_a3f2c4",
"timestamp": "2026-05-26T07:30:00Z",
"signature": "9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f"
}
'import requests
url = "https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token"
payload = {
"client_id": "kc_live_a3f2c4",
"timestamp": "2026-05-26T07:30:00Z",
"signature": "9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
client_id: 'kc_live_a3f2c4',
timestamp: '2026-05-26T07:30:00Z',
signature: '9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f'
})
};
fetch('https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token', 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://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client_id' => 'kc_live_a3f2c4',
'timestamp' => '2026-05-26T07:30:00Z',
'signature' => '9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token"
payload := strings.NewReader("{\n \"client_id\": \"kc_live_a3f2c4\",\n \"timestamp\": \"2026-05-26T07:30:00Z\",\n \"signature\": \"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token")
.header("Content-Type", "application/json")
.body("{\n \"client_id\": \"kc_live_a3f2c4\",\n \"timestamp\": \"2026-05-26T07:30:00Z\",\n \"signature\": \"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-apigw.singapay.id/api/v1/kyc/auth/get-auth-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_id\": \"kc_live_a3f2c4\",\n \"timestamp\": \"2026-05-26T07:30:00Z\",\n \"signature\": \"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f\"\n}"
response = http.request(request)
puts response.read_body{
"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJpc3MiOiJraWMtdmVyaWZ5IiwiYXVkIjoia3ljLWFwaSIsImV4cCI6MTcyNDgyMTYwMH0...",
"token_type": "Bearer",
"expires_in": 3600,
"audience": "kyc-api"
}{
"error": "INVALID_SIGNATURE",
"message": "signature did not match"
}{
"error": "INVALID_SIGNATURE",
"message": "signature did not match"
}Body
application/json
Credential ID from the KYC dashboard.
Example:
"kc_live_a3f2c4"
Current UTC time in RFC 3339. Must be within 5 minutes of our clock.
Example:
"2026-05-26T07:30:00Z"
Hex-encoded HMAC-SHA256 of {client_id}:{timestamp}, signed
with your client_secret.
Pattern:
^[0-9a-fA-F]{64}$Example:
"9d4e7a8b1f3c2e5d6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f"
Response
Access token issued.
Bearer token. Send it as Authorization: Bearer <access_token>
on every other request.
Available options:
Bearer Seconds until the token expires (usually 3600).
Required range:
x >= 1Example:
3600
Always kyc-api.
Available options:
kyc-api 