API ReferenceKyb
Update KYB fields
Updates fields on a pending KYB application. At least one field must be provided. You cannot update an application that has already been approved or rejected.
Authorization
privy AuthorizationBearer <token>
Privy JWT authentication for dashboard and management endpoints. This is used internally by the Bag Dashboard and is not intended for direct API integrations. Use API keys instead.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://api.justusebag.xyz/api/kyb" \ -H "Content-Type: application/json" \ -d '{ "businessName": "Acme Corp Inc.", "website": "https://acme.example.com" }'{
"status": "success",
"message": "KYB application updated"
}{
"status": "error",
"message": "amount: Amount must be a positive number up to 999,999,999.99; network: Invalid enum value",
"code": "BAD_REQUEST"
}{
"status": "error",
"message": "Invalid or revoked API key",
"code": "UNAUTHORIZED",
"hint": "Include a valid API key in the Authorization header: Bearer bag_live_sk_..."
}