Create, update, and manage entity records across standard and custom record types.
The Records API provides:
- Record operations: Create, update, and delete records for any entity type
- Schema discovery: Query available entity types and their field definitions
- Custom record types: Define and manage custom record type schemas
🔐 Required role:
RECD_C📖 Data dictionary: Records and custom record types
Create or update records (upsert)
Records are created if they don't exist, or updated if matched by systemRef.
Partial Success Behavior:
- Each record is processed independently
- Successful records are persisted even if others fail
- Check
summary.failedand individualrecords[].statusfor failures - Failed records include error details in
records[].error
Read-only and hidden custom fields: values sent for them are ignored and the stored values are kept.
Limits: Maximum 100 records per request.
Business Applications:
- Bulk record import
- Entity synchronization
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/records
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/records
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/records
curl -i -X POST \
https://api.sandbox.aiwyn.app/api/v1/records \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"records": [
{
"type": "Client",
"systemRef": {
"system": "CCH",
"reference": "C-12345"
},
"attributes": {
"name": "Acme Corporation",
"email": "contact@acme.com"
}
}
]
}'Response
{ "data": { "summary": {}, "records": [ … ] }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }