Documentation Index
Fetch the complete documentation index at: https://docs.dakota.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Before processing payments, customers must complete KYB (Know Your Business) onboarding. This guide explains how to integrate Dakota Platform’s onboarding flow.
Looking for detailed onboarding guides? Check out our support articles for step-by-step walkthroughs:
Overview
The onboarding process involves:
- Creating a customer record (KYB automatically initiated)
- Redirecting customer to complete verification
- Monitoring KYB status via API or webhooks
Step 1: Create a Customer
First, create a customer record with basic business information.
Customer Creation Fields
| Field | Type | Required | Description | Example |
|---|
name | string | ✅ | Legal name of the business or individual | "Acme Corp" |
customer_type | string | ✅ | Type of customer account. Must be "business" or "individual" | "business" |
external_id | string | ❌ | Your internal identifier for this customer | "acme_001" |
Request Example
curl -X POST https://api.platform.dakota.xyz/customers \
-H "X-API-Key: your-api-key" \
-H "X-Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corp",
"customer_type": "business"
}'
const response = await fetch('https://api.platform.dakota.xyz/customers', {
method: 'POST',
headers: {
'X-API-Key': 'your-api-key',
'X-Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Acme Corp',
customer_type: 'business'
})
});
const customer = await response.json();
console.log('Created customer:', customer.data.id);
import requests
import uuid
response = requests.post(
'https://api.platform.dakota.xyz/customers',
headers={
'X-API-Key': 'your-api-key',
'X-Idempotency-Key': str(uuid.uuid4()),
'Content-Type': 'application/json'
},
json={
'name': 'Acme Corp',
'customer_type': 'business'
}
)
customer = response.json()
print(f'Created customer: {customer["data"]["id"]}')
package main
import (
"bytes"
"net/http"
"github.com/google/uuid"
)
func main() {
client := &http.Client{}
body := bytes.NewBufferString(`{
"name": "Acme Corp",
"customer_type": "business"
}`)
req, _ := http.NewRequest("POST", "https://api.platform.dakota.xyz/customers", body)
req.Header.Add("X-API-Key", "your-api-key")
req.Header.Add("X-Idempotency-Key", uuid.New().String())
req.Header.Add("Content-Type", "application/json")
resp, _ := client.Do(req)
defer resp.Body.Close()
}
use reqwest::header::{HeaderMap, HeaderValue};
use uuid::Uuid;
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::new();
let mut headers = HeaderMap::new();
headers.insert("X-API-Key", HeaderValue::from_static("your-api-key"));
headers.insert("X-Idempotency-Key", HeaderValue::from_str(&Uuid::new_v4().to_string())?);
headers.insert("Content-Type", HeaderValue::from_static("application/json"));
let body = json!({
"name": "Acme Corp",
"customer_type": "business"
});
let response = client
.post("https://api.platform.dakota.xyz/customers")
.headers(headers)
.json(&body)
.send()
.await?;
Ok(())
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
import java.util.UUID;
public class DakotaCustomerExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
String body = """
{
"name": "Acme Corp",
"customer_type": "business"
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.platform.dakota.xyz/customers"))
.header("X-API-Key", "your-api-key")
.header("X-Idempotency-Key", UUID.randomUUID().toString())
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
}
}
Response:
{
"id": "2Nq8G7xK9mR4Ls6DyJ1Uf3Tp",
"kyb_links": [],
"application_id": "2WGC9cKv9P4K8eGzqY6qJ3Xz7Qm",
"application_url": "https://apply.dakota.com/applications/2WGC9cKv9P4K8eGzqY6qJ3Xz7Qm?token=kJ8xN3zQ9mL2pR5vY7wC1aF4dG6hK0sT8uW3nB5eM9",
"application_expires_at": 1734567890000000000
}
Step 2: Application Process (Automatic)
An onboarding application is automatically created when you create a customer. The response includes an application_url that you can use to redirect your customer to Dakota’s hosted onboarding form.
Automatic Application Creation
When you create a customer, the system automatically:
- Creates an onboarding application
- Generates a secure
application_url with an embedded token
- Sets the initial application status to
"pending"
Response Fields
The customer creation response includes:
| Field | Description | Example |
|---|
id | Unique identifier for the customer | "2Nq8G7xK9mR4Ls6DyJ1Uf3Tp" |
kyb_links | Array of KYB provider links (if any) | [] |
application_id | Unique identifier for the onboarding application | "2WGC9cKv9P4K8eGzqY6qJ3Xz7Qm" |
application_url | Dakota-hosted onboarding URL with embedded auth token | "https://apply.dakota.com/applications/...?token=..." |
application_expires_at | Unix timestamp (nanoseconds) when the application token expires | 1734567890000000000 |
Using the Application URL
From the customer creation response, extract the onboarding URL:
const customer = await response.json();
const onboardingUrl = customer.application_url;
// Redirect customer to complete onboarding
window.location.href = onboardingUrl;
Step 3: Handle the Onboarding Flow
Direct your customer to the application_url to complete verification using Dakota’s hosted onboarding form. The customer will:
- Provide business information and documentation
- Add beneficial owners and control persons
- Upload required documents (ID, proof of address, etc.)
- Accept legal agreements (Terms of Service, Privacy Policy, etc.)
- Submit the application for review
- Receive approval or requests for additional information
Legal Agreements & Attestations
Compliance requirement: Before an application can be submitted, your customer must accept Dakota’s legal agreements. If you are building a custom onboarding flow using the API (rather than the hosted form), you are responsible for presenting these documents to your end users and collecting their consent before submitting attestations.
During onboarding, the following legal agreements must be presented and accepted:
| Attestation Type | Document | Description |
|---|
e_sign | E-Sign & Electronic Communications Notice | Consent to use electronic signatures — must be accepted first |
terms_of_service | Terms of Service | Dakota’s terms of service |
privacy_policy | Privacy Policy | Dakota’s privacy policy |
funds_transfer_agreement | Funds Transfer Agreement | Agreement governing fund transfers |
lead_bank_privacy_policy | Lead Bank Privacy Policy | Lead bank’s privacy policy |
information_accuracy | — | Attestation that all provided information is accurate |
Submitting Attestations via API
If you are using the API to build a custom onboarding experience, you must submit attestations using the Submit Attestation endpoint. The e_sign attestation must be submitted first — all other attestations will be rejected until e-sign consent is recorded.
# Step 1: Submit e_sign first (capture timestamp)
E_SIGN_TIMESTAMP=$(date +%s)
curl -s -X POST "https://api.platform.dakota.xyz/applications/${APPLICATION_ID}/attestations" \
-H "X-Application-Token: ${APPLICATION_TOKEN}" \
-H "X-Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d "{
\"attestation_type\": \"e_sign\",
\"timestamp\": ${E_SIGN_TIMESTAMP},
\"applicant_id\": \"${APPLICANT_ID}\"
}"
# Step 2: Wait to ensure a different timestamp, then submit remaining attestations
sleep 1
OTHER_TIMESTAMP=$(date +%s)
for TYPE in information_accuracy terms_of_service privacy_policy funds_transfer_agreement lead_bank_privacy_policy; do
curl -s -X POST "https://api.platform.dakota.xyz/applications/${APPLICATION_ID}/attestations" \
-H "X-Application-Token: ${APPLICATION_TOKEN}" \
-H "X-Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d "{
\"attestation_type\": \"${TYPE}\",
\"timestamp\": ${OTHER_TIMESTAMP},
\"applicant_id\": \"${APPLICANT_ID}\"
}"
done
// Step 1: Submit e_sign first
const eSignTimestamp = Math.floor(Date.now() / 1000);
await fetch(`https://api.platform.dakota.xyz/applications/${applicationId}/attestations`, {
method: 'POST',
headers: {
'X-Application-Token': applicationToken,
'X-Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json'
},
body: JSON.stringify({
attestation_type: 'e_sign',
timestamp: eSignTimestamp,
applicant_id: applicantId
})
});
// Step 2: Submit remaining attestations with a later timestamp
const otherTimestamp = eSignTimestamp + 1;
const otherTypes = [
'information_accuracy',
'terms_of_service',
'privacy_policy',
'funds_transfer_agreement',
'lead_bank_privacy_policy'
];
for (const type of otherTypes) {
await fetch(`https://api.platform.dakota.xyz/applications/${applicationId}/attestations`, {
method: 'POST',
headers: {
'X-Application-Token': applicationToken,
'X-Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json'
},
body: JSON.stringify({
attestation_type: type,
timestamp: otherTimestamp,
applicant_id: applicantId
})
});
}
import requests
import uuid
import time
# Step 1: Submit e_sign first
e_sign_timestamp = int(time.time())
requests.post(
f'https://api.platform.dakota.xyz/applications/{application_id}/attestations',
headers={
'X-Application-Token': application_token,
'X-Idempotency-Key': str(uuid.uuid4()),
'Content-Type': 'application/json',
},
json={
'attestation_type': 'e_sign',
'timestamp': e_sign_timestamp,
'applicant_id': applicant_id,
},
)
# Step 2: Submit remaining attestations with a later timestamp
other_timestamp = e_sign_timestamp + 1
other_types = [
'information_accuracy',
'terms_of_service',
'privacy_policy',
'funds_transfer_agreement',
'lead_bank_privacy_policy',
]
for attestation_type in other_types:
requests.post(
f'https://api.platform.dakota.xyz/applications/{application_id}/attestations',
headers={
'X-Application-Token': application_token,
'X-Idempotency-Key': str(uuid.uuid4()),
'Content-Type': 'application/json',
},
json={
'attestation_type': attestation_type,
'timestamp': other_timestamp,
'applicant_id': applicant_id,
},
)
- The
timestamp is the Unix epoch time (in seconds) when the user accepted the agreement.
- The
applicant_id is the individual making the attestation. For business applications, this must be a control person. For individual applications, this must be the individual themselves.
- Each attestation’s timestamp must be strictly after the
e_sign attestation timestamp — equal timestamps will be rejected.
- All 6 attestation types are required before an application can be submitted.
Checking Missing Attestations
You can check which attestations are still needed by retrieving the application with the validation include parameter:
curl "https://api.platform.dakota.xyz/applications/{application_id}?include=attestations,validation" \
-H "X-Application-Token: {application_token}"
The response validation.attestations field shows completed and missing attestations:
{
"attestations": {
"completed": [
{
"type": "e_sign",
"attested_at": "2024-01-17T15:30:00Z",
"attested_by": "John Doe"
}
],
"missing": [
"terms_of_service",
"privacy_policy"
]
}
}
Using the hosted onboarding form? If you redirect customers to the application_url, Dakota’s hosted form handles presenting all legal agreements and collecting attestations automatically. You only need to manage attestations manually if you are building a custom onboarding UI.
Step 4: Monitor Application Status
Check onboarding status programmatically:
curl -X GET https://api.platform.dakota.xyz/customers/{customer_id} \
-H "X-API-Key: your-api-key"
const response = await fetch(`https://api.platform.dakota.xyz/customers/${customerId}`, {
headers: {
'X-API-Key': 'your-api-key'
}
});
const customer = await response.json();
console.log('KYB Status:', customer.kyb_status);
import requests
response = requests.get(
f'https://api.platform.dakota.xyz/customers/{customer_id}',
headers={'X-API-Key': 'your-api-key'}
)
customer = response.json()
print(f'KYB Status: {customer["kyb_status"]}')
package main
import (
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.platform.dakota.xyz/customers/" + customerId, nil)
req.Header.Add("X-API-Key", "your-api-key")
resp, _ := client.Do(req)
defer resp.Body.Close()
}
use reqwest::header::{HeaderMap, HeaderValue};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::new();
let mut headers = HeaderMap::new();
headers.insert("X-API-Key", HeaderValue::from_static("your-api-key"));
let response = client
.get(&format!("https://api.platform.dakota.xyz/customers/{}", customer_id))
.headers(headers)
.send()
.await?;
Ok(())
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class DakotaKYBStatusExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.platform.dakota.xyz/customers/" + customerId))
.header("X-API-Key", "your-api-key")
.GET()
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
}
}
Response:
{
"id": "2Nq8G7xK9mR4Ls6DyJ1Uf3Tp",
"name": "Acme Corp",
"customer_type": "business",
"kyb_status": "active",
"kyb_links": [],
"application_id": "2WGC9cKv9P4K8eGzqY6qJ3Xz7Qm",
"created_at": 1705320600,
"updated_at": 1705324200
}
KYB Status Values
The kyb_status field indicates the customer’s verification status:
| Status | Description |
|---|
pending | KYB verification in progress |
active | Customer approved and can transact |
partner_review | Under manual review |
rejected | Verification failed |
frozen | Account suspended |
You can also check the application status directly via the Get Application endpoint for more detailed status information.
Best Practices
User Experience
- Clearly communicate the onboarding requirements
- Provide progress indicators
- Set expectations for processing time
- Offer support contact information
Error Handling
- Handle rejection gracefully
- Provide clear next steps
- Allow customers to restart if needed
- Log all onboarding events
Compliance
- Present all required legal agreements (ToS, Privacy Policy, etc.) to end users before collecting attestations
- Record the exact timestamp when each agreement was accepted
- Store audit trails
- Monitor for suspicious activity
- Keep records for compliance reporting
- Regular review of rejected applications
Required Documents
Typical documents required for business verification:
- Certificate of Incorporation
- Bank Statements
- Director/Officer Identification
- Beneficial Ownership Information
Troubleshooting
Common Issues
Onboarding Stuck in “Pending”
- Check if customer has accessed the onboarding URL
Repeated Rejections
- Ensure document quality meets requirements
- Consider manual review process
Webhook Not Received
- Verify webhook endpoint is responding with 200
- Check webhook signature validation
- Review webhook logs in dashboard
Any issues not covered here can be addressed by contacting Dakota Platform support.
Next Steps
After successful customer onboarding:
- Set up Recipients & Destinations - Configure payment targets
- Create Transactions - Process payments for approved customers
- Webhook Integration - Get real-time KYB status updates (see the full event list for all available events)
- Testing - Test your onboarding flow
API Reference
For detailed endpoint documentation, see: