Schema
Read the workspace schema
GET
Find object and field API names, value formats, and built-in memory tools. Requires the read scope.
bearerAuthheader
AuthorizationBearer <token>A workspace API key.
Successful response.
application/json- response
workspace*objects*array<>valueFormats*builtIns*array<>curl -X GET 'https://retainer.tamloot.cc/v1/schema' \ -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY'Example Response
{ "workspace": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "slug": "string", "schemaVersion": -9007199254740991, "initialized": true, "templates": [ { "name": "string", "version": -9007199254740991, "appliedAt": "2019-08-24T14:15:22Z" } ] }, "objects": [ { "nameSingular": "string", "namePlural": "string", "labelSingular": "string", "labelPlural": "string", "description": "string", "labelField": "string", "class": "entity", "owner": "system", "isProtected": true, "fields": [ { "universalId": "47b43539-a01b-4328-9f99-1680f7644e61", "name": "string", "label": "string", "description": "string", "type": "text", "settings": { "options": [ { "value": "string", "label": "string" } ], "targetObject": "string", "targetObjects": [ "string" ], "inverseField": "string", "relationCardinality": "many_to_one", "onDelete": "set_null", "rollUpEvents": true, "maxValues": 1, "isInverse": true }, "isNullable": true, "isUnique": true, "isFilterable": true, "isSearchable": true, "readOnly": true, "owner": "system", "isProtected": true, "protectedOptions": [ "string" ], "coreRole": "title" } ], "eventColumns": [ "occurredAt" ] } ], "valueFormats": { "property1": "string", "property2": "string" }, "builtIns": [ { "name": "fact", "labelSingular": "string", "labelPlural": "string", "description": "string", "fields": [ { "name": "string", "type": "string", "description": "string" } ], "writeWith": [ "string" ], "readWith": [ "string" ], "profiles": [ "me" ] } ]}