Skip to content

Get field schema for a record type

Request

🔐 Required role: RECD_R or RECD_C

📖 Data dictionary: Records and custom record types

Get field schema for a record type

Returns field definitions including types, validation, and foreign key relationships.

Business Applications:

  • Dynamic form generation
  • Field validation
  • Integration mapping
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
typestringrequired

Record type name, built-in or custom, as listed by GET /api/v1/records/types.

curl -i -X GET \
  'https://api.sandbox.aiwyn.app/api/v1/records/schema/{type}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'

Responses

Schema retrieved successfully

Bodyapplication/json
dataobject
errorobject or null
metaobject
Response
{ "data": { "entityType": "string", "fields": [ … ] }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }