Returns a resource object of type field.
1GET https://site-api.datocms.com/fields/:field_id_or_api_key HTTP/1.12Authorization: Bearer YOUR-API-TOKEN3Accept: application/json4X-Api-Version: 3
1curl -g 'https://site-api.datocms.com/fields/:field_id_or_api_key' \2 \3 -H "Authorization: Bearer YOUR-API-TOKEN" \4 -H "Accept: application/json" \5 -H "X-Api-Version: 3"
1await fetch("https://site-api.datocms.com/fields/:field_id_or_api_key", {2 headers: {3 Authorization: "Bearer YOUR-API-TOKEN",4 Accept: "application/json",5 "X-Api-Version": "3",6 },7});
1HTTP/1.1 200 OK2Content-Type: application/json3Cache-Control: cache-control: max-age=0, private, must-revalidate4X-RateLimit-Limit: 305X-RateLimit-Remaining: 286 7{8 "data": {9 "type": "field",10 "id": "Pkg-oztERp6o-Rj76nYKJg",11 "attributes": {12 "label": "Title",13 "field_type": "string",14 "api_key": "title",15 "localized": true,16 "validators": {17 "required": {}18 },19 "position": 1,20 "hint": "This field will be used as post title",21 "default_value": {22 "en": "A default value",23 "it": "Un valore di default"24 },25 "appearance": {26 "editor": "single_line",27 "parameters": {28 "heading": false29 },30 "addons": [31 {32 "id": "1234",33 "field_extension": "lorem_ipsum",34 "parameters": {}35 }36 ]37 },38 "deep_filtering_enabled": true39 },40 "relationships": {41 "item_type": {42 "data": {43 "type": "item_type",44 "id": "DxMaW10UQiCmZcuuA-IkkA"45 }46 },47 "fieldset": {48 "data": null49 }50 }51 }52}