{
  "opencollection": "1.0.0",
  "info": {
    "name": "SpotDraft V1 Contract APIs V2.1 Contract Metadata Definitions API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "V2.1 Contract Metadata Definitions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Contract Metadata Definitions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.eu.spotdraft.com/api/v2.1/public/key_pointers/",
            "params": [
              {
                "name": "contract_type_id",
                "value": "",
                "type": "query",
                "description": "ID of the Contract type."
              },
              {
                "name": "is_external",
                "value": "",
                "type": "query",
                "description": "Set to True to get only key pointers from external sections."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "client-id",
              "value": "{{client-id}}",
              "placement": "header"
            }
          },
          "docs": "Lists the contract metadata definitions configured for the workspace. These definitions describe which metadata fields exist; they do not return values for a specific contract. The underlying API paths still use legacy key-pointer naming for backward compatibility."
        },
        {
          "info": {
            "name": "Map Template Fields to Contract Metadata",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.eu.spotdraft.com/api/v2.1/public/key_pointers/field-name-mapping/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "client-id",
              "value": "{{client-id}}",
              "placement": "header"
            }
          },
          "docs": "Returns mappings between template **field names** and contract metadata **labels** for the workspace, optionally scoped by `contract_id` or `contract_type_id`. Used when renaming template variables or aligning metadata across versions."
        }
      ]
    }
  ],
  "bundled": true
}