Get configuration
code
GET /api/kyc/configReturns the ID types enabled for your organization in the current environment, along with the features available for each. Call this on startup to drive which ID options you present to users and which capture steps you run.
Authentication: Authorization: Bearer pk_… (required).
Request
shell
curl "https://identity.myaza.app/api/kyc/config" \
-H "Authorization: Bearer $MYAZA_KEY"Response 200 OK
json
{
"environment": "PRODUCTION",
"idTypes": [
{
"country": "NG",
"idType": "bvn",
"features": {
"documentVerification": false,
"livenessCheck": true,
"govDbCheck": true
}
},
{
"country": "NG",
"idType": "drivers-license",
"features": {
"documentVerification": true,
"livenessCheck": true,
"govDbCheck": true
}
}
],
"branding": {
"companyName": "Acme Inc.",
"logo": "https://identity.myaza.app/api/kyc/branding/logo/ast_123",
"primaryColor": "#5645F5"
}
}Fields
| Field | Type | Description |
|---|---|---|
environment | string | STAGING or PRODUCTION — derived from your API key. |
idTypes[] | array | The ID types enabled for your org. Disabled ones are omitted entirely. |
idTypes[].country | string | ISO country code: NG, GH, KE, ZA, CI. |
idTypes[].idType | string | The ID type identifier to send to POST /verify. |
idTypes[].features.documentVerification | boolean | Whether document image capture is enabled for this ID type. |
idTypes[].features.livenessCheck | boolean | Whether a liveness/selfie step is enabled. |
idTypes[].features.govDbCheck | boolean | Whether the ID is checked against the government database. |
branding | object | Your organization's branding, set under Settings → Organization. May be omitted if nothing is configured. |
branding.companyName | string | Your organization's display name. |
branding.logo | string | Absolute, public URL of your org logo. The SDKs render this when appearance.logo is set to 'default'. Omitted if no logo is uploaded. |
branding.primaryColor | string | Your org's brand color (hex), if set. |
Only enabled ID types are returned. If an ID type you expect is missing, enable it under Settings → Organization → ID Types (or ask Myaza to enable it for your account).
See Countries & ID types for the catalog of supported values.