{
  "info": {
    "name": "Dynamics 365 — mcp.ai",
    "description": "REST API for the Dynamics 365 MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/dynamics365",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "dynamics365_dynamics365_get_all_invoices_action",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamics365/get/all/invoices/action",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamics365",
            "get",
            "all",
            "invoices",
            "action"
          ]
        },
        "description": "Get all invoices action",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filter\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_account",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/account",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "account"
          ]
        },
        "description": "Creates a new account entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"revenue\": 0,\n  \"user_id\": \"\",\n  \"description\": \"\",\n  \"creditonhold\": false,\n  \"accountcategorycode\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_case",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/case",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "case"
          ]
        },
        "description": "Creates a new case (incident) entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"user_id\": \"\",\n  \"description\": \"\",\n  \"prioritycode\": 0,\n  \"caseorigincode\": 0,\n  \"customerid_account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_contact",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/contact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "contact"
          ]
        },
        "description": "Creates a new contact entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"user_id\": \"\",\n  \"jobtitle\": \"\",\n  \"lastname\": \"\",\n  \"firstname\": \"\",\n  \"telephone1\": \"\",\n  \"mobilephone\": \"\",\n  \"address1_city\": \"\",\n  \"emailaddress1\": \"\",\n  \"address1_country\": \"\",\n  \"address1_postalcode\": \"\",\n  \"address1_stateorprovince\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/invoice",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "invoice"
          ]
        },
        "description": "Creates a new invoice entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"user_id\": \"\",\n  \"account_id\": \"\",\n  \"currency_id\": \"\",\n  \"description\": \"\",\n  \"price_level_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_lead",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/lead",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "lead"
          ]
        },
        "description": "Creates a new lead entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"subject\": \"\",\n  \"user_id\": \"\",\n  \"lastname\": \"\",\n  \"firstname\": \"\",\n  \"telephone1\": \"\",\n  \"companyname\": \"\",\n  \"emailaddress1\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_opportunity",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/opportunity",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "opportunity"
          ]
        },
        "description": "Creates a new opportunity entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"user_id\": \"\",\n  \"description\": \"\",\n  \"estimatedvalue\": 0,\n  \"customer_account\": \"\",\n  \"estimatedclosedate\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_create_sales_order",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/create/sales/order",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "create",
            "sales",
            "order"
          ]
        },
        "description": "Creates a new sales order entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"user_id\": \"\",\n  \"account_id\": \"\",\n  \"currency_id\": \"\",\n  \"description\": \"\",\n  \"price_level_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_get_a_invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/get/a/invoice",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "get",
            "a",
            "invoice"
          ]
        },
        "description": "Dynamicscrm get a invoice",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"invoice_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_get_a_lead",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/get/a/lead",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "get",
            "a",
            "lead"
          ]
        },
        "description": "Dynamicscrm get a lead",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"lead_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_get_all_leads",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/get/all/leads",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "get",
            "all",
            "leads"
          ]
        },
        "description": "Dynamicscrm get all leads",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filter\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_update_case",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/update/case",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "update",
            "case"
          ]
        },
        "description": "Updates an existing case (incident) entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"case_id\": \"\",\n  \"user_id\": \"\",\n  \"statuscode\": 0,\n  \"description\": \"\",\n  \"prioritycode\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_update_invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/update/invoice",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "update",
            "invoice"
          ]
        },
        "description": "Updates an existing invoice entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"duedate\": \"\",\n  \"user_id\": \"\",\n  \"invoice_id\": \"\",\n  \"description\": \"\",\n  \"totalamount\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_update_lead",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/update/lead",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "update",
            "lead"
          ]
        },
        "description": "Updates an existing lead entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"lead_id\": \"\",\n  \"subject\": \"\",\n  \"user_id\": \"\",\n  \"lastname\": \"\",\n  \"firstname\": \"\",\n  \"telephone1\": \"\",\n  \"companyname\": \"\",\n  \"emailaddress1\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_update_opportunity",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/update/opportunity",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "update",
            "opportunity"
          ]
        },
        "description": "Updates an existing opportunity entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"user_id\": \"\",\n  \"description\": \"\",\n  \"estimatedvalue\": 0,\n  \"opportunity_id\": \"\",\n  \"salesstagecode\": 0,\n  \"estimatedclosedate\": \"\",\n  \"opportunityratingcode\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "dynamics365_dynamicscrm_update_sales_order",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/dynamicscrm/update/sales/order",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "dynamicscrm",
            "update",
            "sales",
            "order"
          ]
        },
        "description": "Updates an existing sales order entity record in dynamics crm using the web api.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"user_id\": \"\",\n  \"description\": \"\",\n  \"freightamount\": 0,\n  \"salesorder_id\": \"\",\n  \"discountamount\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}